@merkl/api 0.20.2 → 0.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cache/declaration.d.ts +2 -2
- package/dist/src/cache/declaration.js +2 -2
- package/dist/src/eden/index.d.ts +1179 -2529
- package/dist/src/engine/dynamicData/utils/getEulerV2Vaults.d.ts +0 -1
- package/dist/src/engine/dynamicData/utils/getEulerV2Vaults.js +77 -40
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.js +6 -1
- package/dist/src/index.d.ts +97 -367
- package/dist/src/jobs/update-euler-vaults.d.ts +1 -1
- package/dist/src/jobs/update-euler-vaults.js +5 -121
- package/dist/src/modules/v4/icon/icon.model.d.ts +4 -0
- package/dist/src/modules/v4/icon/icon.model.js +1 -0
- package/dist/src/modules/v4/icon/icon.service.d.ts +5 -0
- package/dist/src/modules/v4/icon/icon.service.js +15 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +97 -367
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +4 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +97 -367
- package/dist/src/modules/v4/token/token.service.js +6 -9
- package/dist/src/routes/v3/euler.d.ts +0 -6
- package/dist/src/routes/v3/euler.js +3 -3
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -493,47 +493,44 @@ declare const eden: {
|
|
493
493
|
};
|
494
494
|
fetch?: RequestInit | undefined;
|
495
495
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
496
|
-
200:
|
497
|
-
|
498
|
-
|
499
|
-
name: string;
|
500
|
-
url: string;
|
501
|
-
description: string;
|
502
|
-
tags: string[];
|
503
|
-
icon: string;
|
504
|
-
} | null | undefined;
|
505
|
-
depositUrl?: string | undefined;
|
506
|
-
explorerAddress?: string | undefined;
|
507
|
-
aprRecord?: {
|
508
|
-
timestamp: string | bigint;
|
496
|
+
200: {
|
497
|
+
apr: number;
|
498
|
+
aprRecord: {
|
509
499
|
cumulated: number;
|
500
|
+
timestamp: bigint;
|
510
501
|
breakdowns: {
|
511
502
|
id: number;
|
512
|
-
type: "
|
503
|
+
type: import("@db/api").$Enums.AprType;
|
504
|
+
uuid: string;
|
513
505
|
identifier: string;
|
514
506
|
value: number;
|
515
507
|
aprRecordId: string;
|
516
508
|
}[];
|
517
|
-
}
|
518
|
-
tvlRecord
|
509
|
+
};
|
510
|
+
tvlRecord: {
|
511
|
+
id: string;
|
519
512
|
total: number;
|
520
|
-
timestamp:
|
513
|
+
timestamp: bigint;
|
521
514
|
breakdowns: {
|
522
515
|
id: number;
|
523
|
-
type: "
|
516
|
+
type: import("@db/api").$Enums.TvlType;
|
517
|
+
uuid: string;
|
524
518
|
identifier: string;
|
525
519
|
value: number;
|
526
520
|
tvlRecordId: string;
|
527
521
|
}[];
|
528
|
-
}
|
529
|
-
rewardsRecord
|
522
|
+
};
|
523
|
+
rewardsRecord: {
|
530
524
|
id: string;
|
531
525
|
total: number;
|
532
|
-
timestamp:
|
526
|
+
timestamp: bigint;
|
533
527
|
breakdowns: {
|
534
528
|
id: number;
|
529
|
+
uuid: string;
|
530
|
+
value: number;
|
531
|
+
campaignId: string;
|
532
|
+
dailyRewardsRecordId: string;
|
535
533
|
token: {
|
536
|
-
price?: number | null | undefined;
|
537
534
|
symbol: string;
|
538
535
|
id: string;
|
539
536
|
name: string | null;
|
@@ -541,21 +538,90 @@ declare const eden: {
|
|
541
538
|
address: string;
|
542
539
|
chainId: number;
|
543
540
|
decimals: number;
|
541
|
+
displaySymbol: string;
|
544
542
|
verified: boolean;
|
545
543
|
isTest: boolean;
|
544
|
+
isPoint: boolean;
|
545
|
+
isNative: boolean;
|
546
|
+
price: number | null;
|
546
547
|
};
|
547
|
-
|
548
|
-
campaignId: string;
|
549
|
-
amount: string | bigint;
|
550
|
-
dailyRewardsRecordId: string;
|
548
|
+
amount: bigint;
|
551
549
|
}[];
|
552
|
-
}
|
550
|
+
};
|
551
|
+
campaigns: {
|
552
|
+
params: any;
|
553
|
+
chain: {
|
554
|
+
id: number;
|
555
|
+
name: string;
|
556
|
+
icon: string;
|
557
|
+
};
|
558
|
+
endTimestamp: number;
|
559
|
+
startTimestamp: number;
|
560
|
+
rewardToken: {
|
561
|
+
symbol: string;
|
562
|
+
id: string;
|
563
|
+
name: string | null;
|
564
|
+
icon: string;
|
565
|
+
address: string;
|
566
|
+
chainId: number;
|
567
|
+
decimals: number;
|
568
|
+
verified: boolean;
|
569
|
+
isTest: boolean;
|
570
|
+
isPoint: boolean;
|
571
|
+
isNative: boolean;
|
572
|
+
} & {
|
573
|
+
price?: number | null | undefined;
|
574
|
+
};
|
575
|
+
distributionChain: {
|
576
|
+
id: number;
|
577
|
+
name: string;
|
578
|
+
icon: string;
|
579
|
+
} | undefined;
|
580
|
+
campaignStatus: {
|
581
|
+
computedUntil: number;
|
582
|
+
processingStarted: number;
|
583
|
+
error: string;
|
584
|
+
status: import("@db/api").$Enums.RunStatus;
|
585
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
586
|
+
campaignId: string;
|
587
|
+
} | undefined;
|
588
|
+
creatorAddress: string;
|
589
|
+
creator: {
|
590
|
+
tags: string[];
|
591
|
+
address: string;
|
592
|
+
creatorId: string | null;
|
593
|
+
};
|
594
|
+
createdAt: string;
|
595
|
+
Opportunity: {
|
596
|
+
id: string;
|
597
|
+
name: string;
|
598
|
+
type: string;
|
599
|
+
status: import("@db/api").$Enums.Status;
|
600
|
+
tags: string[];
|
601
|
+
identifier: string;
|
602
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
603
|
+
chainId: number;
|
604
|
+
depositUrl: string | null;
|
605
|
+
explorerAddress: string | null;
|
606
|
+
mainProtocolId: string | null;
|
607
|
+
tvl: number;
|
608
|
+
apr: number;
|
609
|
+
dailyRewards: number;
|
610
|
+
};
|
611
|
+
id: string;
|
612
|
+
type: string;
|
613
|
+
subType: number | null;
|
614
|
+
computeChainId: number;
|
615
|
+
distributionChainId: number;
|
616
|
+
campaignId: string;
|
617
|
+
rewardTokenId: string;
|
618
|
+
amount: string;
|
619
|
+
opportunityId: string;
|
620
|
+
}[] | undefined;
|
553
621
|
id: string;
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
tokens: {
|
558
|
-
price?: number | null | undefined;
|
622
|
+
depositUrl: string | undefined;
|
623
|
+
explorerAddress: string | undefined;
|
624
|
+
tokens: ({
|
559
625
|
symbol: string;
|
560
626
|
id: string;
|
561
627
|
name: string | null;
|
@@ -565,24 +631,96 @@ declare const eden: {
|
|
565
631
|
decimals: number;
|
566
632
|
verified: boolean;
|
567
633
|
isTest: boolean;
|
568
|
-
|
569
|
-
|
570
|
-
|
634
|
+
isPoint: boolean;
|
635
|
+
isNative: boolean;
|
636
|
+
} & {
|
637
|
+
price?: number | null | undefined;
|
638
|
+
})[];
|
571
639
|
chain: {
|
572
640
|
id: number;
|
573
641
|
name: string;
|
574
642
|
icon: string;
|
575
643
|
};
|
576
|
-
|
644
|
+
protocol: {
|
645
|
+
id: string;
|
646
|
+
name: string;
|
647
|
+
url: string;
|
648
|
+
description: string;
|
649
|
+
tags: string[];
|
650
|
+
icon: string;
|
651
|
+
} | undefined;
|
652
|
+
name: string;
|
653
|
+
type: string;
|
654
|
+
status: import("@db/api").$Enums.Status;
|
655
|
+
tags: string[];
|
656
|
+
identifier: string;
|
657
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
577
658
|
chainId: number;
|
578
659
|
tvl: number;
|
579
|
-
apr: number;
|
580
660
|
dailyRewards: number;
|
581
|
-
}
|
582
|
-
}
|
583
|
-
|
584
|
-
|
585
|
-
|
661
|
+
}[];
|
662
|
+
}>>;
|
663
|
+
};
|
664
|
+
count: {
|
665
|
+
get: (options: {
|
666
|
+
headers?: Record<string, unknown> | undefined;
|
667
|
+
query: {
|
668
|
+
name?: string | undefined;
|
669
|
+
type?: string | undefined;
|
670
|
+
status?: string | undefined;
|
671
|
+
sort?: string | undefined;
|
672
|
+
tokens?: string | undefined;
|
673
|
+
items?: number | undefined;
|
674
|
+
tags?: string | undefined;
|
675
|
+
identifier?: string | undefined;
|
676
|
+
page?: number | undefined;
|
677
|
+
action?: string | undefined;
|
678
|
+
campaignId?: string | undefined;
|
679
|
+
creatorAddress?: string | undefined;
|
680
|
+
chainId?: string | undefined;
|
681
|
+
mainProtocolId?: string | undefined;
|
682
|
+
campaigns?: boolean | undefined;
|
683
|
+
point?: boolean | undefined;
|
684
|
+
test?: boolean | undefined;
|
685
|
+
rewardTokenSymbol?: string | undefined;
|
686
|
+
order?: string | undefined;
|
687
|
+
minimumTvl?: number | undefined;
|
688
|
+
};
|
689
|
+
fetch?: RequestInit | undefined;
|
690
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
691
|
+
200: number;
|
692
|
+
}>>;
|
693
|
+
};
|
694
|
+
campaigns: {
|
695
|
+
get: (options: {
|
696
|
+
headers?: Record<string, unknown> | undefined;
|
697
|
+
query: {
|
698
|
+
type?: string | undefined;
|
699
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
700
|
+
items?: number | undefined;
|
701
|
+
subType?: number | undefined;
|
702
|
+
page?: number | undefined;
|
703
|
+
types?: string[] | undefined;
|
704
|
+
campaignId?: string | undefined;
|
705
|
+
opportunityId?: string | undefined;
|
706
|
+
startTimestamp?: string | undefined;
|
707
|
+
endTimestamp?: string | undefined;
|
708
|
+
creatorAddress?: string | undefined;
|
709
|
+
chainId?: number | undefined;
|
710
|
+
creatorId?: string | undefined;
|
711
|
+
mainParameter?: string | undefined;
|
712
|
+
point?: boolean | undefined;
|
713
|
+
tokenAddress?: string | undefined;
|
714
|
+
test?: boolean | undefined;
|
715
|
+
creatorTag?: string | undefined;
|
716
|
+
distributionChainIds?: number[] | undefined;
|
717
|
+
tokenSymbol?: string | undefined;
|
718
|
+
withOpportunity?: boolean | undefined;
|
719
|
+
createdAfter?: Date | null | undefined;
|
720
|
+
};
|
721
|
+
fetch?: RequestInit | undefined;
|
722
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
723
|
+
200: {
|
586
724
|
protocol?: {
|
587
725
|
id: string;
|
588
726
|
name: string;
|
@@ -667,243 +805,45 @@ declare const eden: {
|
|
667
805
|
tvl: number;
|
668
806
|
apr: number;
|
669
807
|
dailyRewards: number;
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
808
|
+
campaigns: {
|
809
|
+
creator?: {
|
810
|
+
tags?: string[] | undefined;
|
811
|
+
creatorId?: string | null | undefined;
|
812
|
+
address: string;
|
813
|
+
} | undefined;
|
814
|
+
campaignStatus?: {
|
815
|
+
error?: string | undefined;
|
816
|
+
details?: any;
|
817
|
+
status: string;
|
818
|
+
campaignId: string;
|
819
|
+
computedUntil: string | number;
|
820
|
+
processingStarted: string | number;
|
821
|
+
} | undefined;
|
822
|
+
distributionChain?: {
|
823
|
+
id: number;
|
674
824
|
name: string;
|
675
|
-
url: string;
|
676
|
-
description: string;
|
677
|
-
tags: string[];
|
678
825
|
icon: string;
|
679
|
-
} | null | undefined;
|
680
|
-
depositUrl?: string | undefined;
|
681
|
-
explorerAddress?: string | undefined;
|
682
|
-
aprRecord?: {
|
683
|
-
timestamp: string | bigint;
|
684
|
-
cumulated: number;
|
685
|
-
breakdowns: {
|
686
|
-
id: number;
|
687
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
688
|
-
identifier: string;
|
689
|
-
value: number;
|
690
|
-
aprRecordId: string;
|
691
|
-
}[];
|
692
|
-
} | undefined;
|
693
|
-
tvlRecord?: {
|
694
|
-
total: number;
|
695
|
-
timestamp: string | bigint;
|
696
|
-
breakdowns: {
|
697
|
-
id: number;
|
698
|
-
type: "TOKEN" | "PROTOCOL";
|
699
|
-
identifier: string;
|
700
|
-
value: number;
|
701
|
-
tvlRecordId: string;
|
702
|
-
}[];
|
703
|
-
} | undefined;
|
704
|
-
rewardsRecord?: {
|
705
|
-
id: string;
|
706
|
-
total: number;
|
707
|
-
timestamp: string | bigint;
|
708
|
-
breakdowns: {
|
709
|
-
id: number;
|
710
|
-
token: {
|
711
|
-
price?: number | null | undefined;
|
712
|
-
symbol: string;
|
713
|
-
id: string;
|
714
|
-
name: string | null;
|
715
|
-
icon: string;
|
716
|
-
address: string;
|
717
|
-
chainId: number;
|
718
|
-
decimals: number;
|
719
|
-
verified: boolean;
|
720
|
-
isTest: boolean;
|
721
|
-
};
|
722
|
-
value: number;
|
723
|
-
campaignId: string;
|
724
|
-
amount: string | bigint;
|
725
|
-
dailyRewardsRecordId: string;
|
726
|
-
}[];
|
727
826
|
} | undefined;
|
728
827
|
id: string;
|
729
|
-
name: string;
|
730
828
|
type: string;
|
731
|
-
|
732
|
-
|
733
|
-
price?: number | null | undefined;
|
734
|
-
symbol: string;
|
735
|
-
id: string;
|
736
|
-
name: string | null;
|
737
|
-
icon: string;
|
738
|
-
address: string;
|
739
|
-
chainId: number;
|
740
|
-
decimals: number;
|
741
|
-
verified: boolean;
|
742
|
-
isTest: boolean;
|
743
|
-
}[];
|
744
|
-
tags: string[];
|
745
|
-
identifier: string;
|
829
|
+
params: any;
|
830
|
+
subType: number | null;
|
746
831
|
chain: {
|
747
832
|
id: number;
|
748
833
|
name: string;
|
749
834
|
icon: string;
|
750
835
|
};
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
description: string;
|
763
|
-
tags: string[];
|
764
|
-
icon: string;
|
765
|
-
} | null | undefined;
|
766
|
-
depositUrl?: string | undefined;
|
767
|
-
explorerAddress?: string | undefined;
|
768
|
-
aprRecord?: {
|
769
|
-
timestamp: string | bigint;
|
770
|
-
cumulated: number;
|
771
|
-
breakdowns: {
|
772
|
-
id: number;
|
773
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
774
|
-
identifier: string;
|
775
|
-
value: number;
|
776
|
-
aprRecordId: string;
|
777
|
-
}[];
|
778
|
-
} | undefined;
|
779
|
-
tvlRecord?: {
|
780
|
-
total: number;
|
781
|
-
timestamp: string | bigint;
|
782
|
-
breakdowns: {
|
783
|
-
id: number;
|
784
|
-
type: "TOKEN" | "PROTOCOL";
|
785
|
-
identifier: string;
|
786
|
-
value: number;
|
787
|
-
tvlRecordId: string;
|
788
|
-
}[];
|
789
|
-
} | undefined;
|
790
|
-
rewardsRecord?: {
|
791
|
-
id: string;
|
792
|
-
total: number;
|
793
|
-
timestamp: string | bigint;
|
794
|
-
breakdowns: {
|
795
|
-
id: number;
|
796
|
-
token: {
|
797
|
-
price?: number | null | undefined;
|
798
|
-
symbol: string;
|
799
|
-
id: string;
|
800
|
-
name: string | null;
|
801
|
-
icon: string;
|
802
|
-
address: string;
|
803
|
-
chainId: number;
|
804
|
-
decimals: number;
|
805
|
-
verified: boolean;
|
806
|
-
isTest: boolean;
|
807
|
-
};
|
808
|
-
value: number;
|
809
|
-
campaignId: string;
|
810
|
-
amount: string | bigint;
|
811
|
-
dailyRewardsRecordId: string;
|
812
|
-
}[];
|
813
|
-
} | undefined;
|
814
|
-
id: string;
|
815
|
-
name: string;
|
816
|
-
type: string;
|
817
|
-
status: string;
|
818
|
-
tokens: {
|
819
|
-
price?: number | null | undefined;
|
820
|
-
symbol: string;
|
821
|
-
id: string;
|
822
|
-
name: string | null;
|
823
|
-
icon: string;
|
824
|
-
address: string;
|
825
|
-
chainId: number;
|
826
|
-
decimals: number;
|
827
|
-
verified: boolean;
|
828
|
-
isTest: boolean;
|
829
|
-
}[];
|
830
|
-
tags: string[];
|
831
|
-
identifier: string;
|
832
|
-
chain: {
|
833
|
-
id: number;
|
834
|
-
name: string;
|
835
|
-
icon: string;
|
836
|
-
};
|
837
|
-
action: string;
|
838
|
-
chainId: number;
|
839
|
-
tvl: number;
|
840
|
-
apr: number;
|
841
|
-
dailyRewards: number;
|
842
|
-
} | null)[];
|
843
|
-
} | {
|
844
|
-
200: {
|
845
|
-
200: ({
|
846
|
-
protocol?: {
|
847
|
-
id: string;
|
848
|
-
name: string;
|
849
|
-
url: string;
|
850
|
-
description: string;
|
851
|
-
tags: string[];
|
852
|
-
icon: string;
|
853
|
-
} | null | undefined;
|
854
|
-
depositUrl?: string | undefined;
|
855
|
-
explorerAddress?: string | undefined;
|
856
|
-
aprRecord?: {
|
857
|
-
timestamp: string | bigint;
|
858
|
-
cumulated: number;
|
859
|
-
breakdowns: {
|
860
|
-
id: number;
|
861
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
862
|
-
identifier: string;
|
863
|
-
value: number;
|
864
|
-
aprRecordId: string;
|
865
|
-
}[];
|
866
|
-
} | undefined;
|
867
|
-
tvlRecord?: {
|
868
|
-
total: number;
|
869
|
-
timestamp: string | bigint;
|
870
|
-
breakdowns: {
|
871
|
-
id: number;
|
872
|
-
type: "TOKEN" | "PROTOCOL";
|
873
|
-
identifier: string;
|
874
|
-
value: number;
|
875
|
-
tvlRecordId: string;
|
876
|
-
}[];
|
877
|
-
} | undefined;
|
878
|
-
rewardsRecord?: {
|
879
|
-
id: string;
|
880
|
-
total: number;
|
881
|
-
timestamp: string | bigint;
|
882
|
-
breakdowns: {
|
883
|
-
id: number;
|
884
|
-
token: {
|
885
|
-
price?: number | null | undefined;
|
886
|
-
symbol: string;
|
887
|
-
id: string;
|
888
|
-
name: string | null;
|
889
|
-
icon: string;
|
890
|
-
address: string;
|
891
|
-
chainId: number;
|
892
|
-
decimals: number;
|
893
|
-
verified: boolean;
|
894
|
-
isTest: boolean;
|
895
|
-
};
|
896
|
-
value: number;
|
897
|
-
campaignId: string;
|
898
|
-
amount: string | bigint;
|
899
|
-
dailyRewardsRecordId: string;
|
900
|
-
}[];
|
901
|
-
} | undefined;
|
902
|
-
id: string;
|
903
|
-
name: string;
|
904
|
-
type: string;
|
905
|
-
status: string;
|
906
|
-
tokens: {
|
836
|
+
computeChainId: number;
|
837
|
+
distributionChainId: number;
|
838
|
+
campaignId: string;
|
839
|
+
rewardTokenId: string;
|
840
|
+
amount: string;
|
841
|
+
opportunityId: string;
|
842
|
+
startTimestamp: string | number;
|
843
|
+
endTimestamp: string | number;
|
844
|
+
creatorAddress: string;
|
845
|
+
createdAt: string;
|
846
|
+
rewardToken: {
|
907
847
|
price?: number | null | undefined;
|
908
848
|
symbol: string;
|
909
849
|
id: string;
|
@@ -914,24 +854,23 @@ declare const eden: {
|
|
914
854
|
decimals: number;
|
915
855
|
verified: boolean;
|
916
856
|
isTest: boolean;
|
917
|
-
}[];
|
918
|
-
tags: string[];
|
919
|
-
identifier: string;
|
920
|
-
chain: {
|
921
|
-
id: number;
|
922
|
-
name: string;
|
923
|
-
icon: string;
|
924
857
|
};
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
858
|
+
}[];
|
859
|
+
}[];
|
860
|
+
readonly 404: {
|
861
|
+
name: string;
|
862
|
+
message: string;
|
863
|
+
};
|
864
|
+
readonly 500: {
|
865
|
+
info: string;
|
866
|
+
code: string;
|
867
|
+
httpCode: number;
|
931
868
|
};
|
932
869
|
}>>;
|
933
870
|
};
|
934
|
-
|
871
|
+
aggregate: ((params: {
|
872
|
+
field: string | number;
|
873
|
+
}) => {
|
935
874
|
get: (options: {
|
936
875
|
headers?: Record<string, unknown> | undefined;
|
937
876
|
query: {
|
@@ -958,218 +897,9 @@ declare const eden: {
|
|
958
897
|
};
|
959
898
|
fetch?: RequestInit | undefined;
|
960
899
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
961
|
-
200:
|
962
|
-
|
963
|
-
|
964
|
-
campaigns: {
|
965
|
-
get: (options: {
|
966
|
-
headers?: Record<string, unknown> | undefined;
|
967
|
-
query: {
|
968
|
-
type?: string | undefined;
|
969
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
970
|
-
items?: number | undefined;
|
971
|
-
subType?: number | undefined;
|
972
|
-
page?: number | undefined;
|
973
|
-
types?: string[] | undefined;
|
974
|
-
campaignId?: string | undefined;
|
975
|
-
opportunityId?: string | undefined;
|
976
|
-
startTimestamp?: string | undefined;
|
977
|
-
endTimestamp?: string | undefined;
|
978
|
-
creatorAddress?: string | undefined;
|
979
|
-
chainId?: number | undefined;
|
980
|
-
creatorId?: string | undefined;
|
981
|
-
mainParameter?: string | undefined;
|
982
|
-
point?: boolean | undefined;
|
983
|
-
tokenAddress?: string | undefined;
|
984
|
-
test?: boolean | undefined;
|
985
|
-
creatorTag?: string | undefined;
|
986
|
-
distributionChainIds?: number[] | undefined;
|
987
|
-
tokenSymbol?: string | undefined;
|
988
|
-
withOpportunity?: boolean | undefined;
|
989
|
-
createdAfter?: Date | null | undefined;
|
990
|
-
};
|
991
|
-
fetch?: RequestInit | undefined;
|
992
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
993
|
-
200: {
|
994
|
-
protocol?: {
|
995
|
-
id: string;
|
996
|
-
name: string;
|
997
|
-
url: string;
|
998
|
-
description: string;
|
999
|
-
tags: string[];
|
1000
|
-
icon: string;
|
1001
|
-
} | null | undefined;
|
1002
|
-
depositUrl?: string | undefined;
|
1003
|
-
explorerAddress?: string | undefined;
|
1004
|
-
aprRecord?: {
|
1005
|
-
timestamp: string | bigint;
|
1006
|
-
cumulated: number;
|
1007
|
-
breakdowns: {
|
1008
|
-
id: number;
|
1009
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
1010
|
-
identifier: string;
|
1011
|
-
value: number;
|
1012
|
-
aprRecordId: string;
|
1013
|
-
}[];
|
1014
|
-
} | undefined;
|
1015
|
-
tvlRecord?: {
|
1016
|
-
total: number;
|
1017
|
-
timestamp: string | bigint;
|
1018
|
-
breakdowns: {
|
1019
|
-
id: number;
|
1020
|
-
type: "TOKEN" | "PROTOCOL";
|
1021
|
-
identifier: string;
|
1022
|
-
value: number;
|
1023
|
-
tvlRecordId: string;
|
1024
|
-
}[];
|
1025
|
-
} | undefined;
|
1026
|
-
rewardsRecord?: {
|
1027
|
-
id: string;
|
1028
|
-
total: number;
|
1029
|
-
timestamp: string | bigint;
|
1030
|
-
breakdowns: {
|
1031
|
-
id: number;
|
1032
|
-
token: {
|
1033
|
-
price?: number | null | undefined;
|
1034
|
-
symbol: string;
|
1035
|
-
id: string;
|
1036
|
-
name: string | null;
|
1037
|
-
icon: string;
|
1038
|
-
address: string;
|
1039
|
-
chainId: number;
|
1040
|
-
decimals: number;
|
1041
|
-
verified: boolean;
|
1042
|
-
isTest: boolean;
|
1043
|
-
};
|
1044
|
-
value: number;
|
1045
|
-
campaignId: string;
|
1046
|
-
amount: string | bigint;
|
1047
|
-
dailyRewardsRecordId: string;
|
1048
|
-
}[];
|
1049
|
-
} | undefined;
|
1050
|
-
id: string;
|
1051
|
-
name: string;
|
1052
|
-
type: string;
|
1053
|
-
status: string;
|
1054
|
-
tokens: {
|
1055
|
-
price?: number | null | undefined;
|
1056
|
-
symbol: string;
|
1057
|
-
id: string;
|
1058
|
-
name: string | null;
|
1059
|
-
icon: string;
|
1060
|
-
address: string;
|
1061
|
-
chainId: number;
|
1062
|
-
decimals: number;
|
1063
|
-
verified: boolean;
|
1064
|
-
isTest: boolean;
|
1065
|
-
}[];
|
1066
|
-
tags: string[];
|
1067
|
-
identifier: string;
|
1068
|
-
chain: {
|
1069
|
-
id: number;
|
1070
|
-
name: string;
|
1071
|
-
icon: string;
|
1072
|
-
};
|
1073
|
-
action: string;
|
1074
|
-
chainId: number;
|
1075
|
-
tvl: number;
|
1076
|
-
apr: number;
|
1077
|
-
dailyRewards: number;
|
1078
|
-
campaigns: {
|
1079
|
-
creator?: {
|
1080
|
-
tags?: string[] | undefined;
|
1081
|
-
creatorId?: string | null | undefined;
|
1082
|
-
address: string;
|
1083
|
-
} | undefined;
|
1084
|
-
campaignStatus?: {
|
1085
|
-
error?: string | undefined;
|
1086
|
-
details?: any;
|
1087
|
-
status: string;
|
1088
|
-
campaignId: string;
|
1089
|
-
computedUntil: string | number;
|
1090
|
-
processingStarted: string | number;
|
1091
|
-
} | undefined;
|
1092
|
-
distributionChain?: {
|
1093
|
-
id: number;
|
1094
|
-
name: string;
|
1095
|
-
icon: string;
|
1096
|
-
} | undefined;
|
1097
|
-
id: string;
|
1098
|
-
type: string;
|
1099
|
-
params: any;
|
1100
|
-
subType: number | null;
|
1101
|
-
chain: {
|
1102
|
-
id: number;
|
1103
|
-
name: string;
|
1104
|
-
icon: string;
|
1105
|
-
};
|
1106
|
-
computeChainId: number;
|
1107
|
-
distributionChainId: number;
|
1108
|
-
campaignId: string;
|
1109
|
-
rewardTokenId: string;
|
1110
|
-
amount: string;
|
1111
|
-
opportunityId: string;
|
1112
|
-
startTimestamp: string | number;
|
1113
|
-
endTimestamp: string | number;
|
1114
|
-
creatorAddress: string;
|
1115
|
-
createdAt: string;
|
1116
|
-
rewardToken: {
|
1117
|
-
price?: number | null | undefined;
|
1118
|
-
symbol: string;
|
1119
|
-
id: string;
|
1120
|
-
name: string | null;
|
1121
|
-
icon: string;
|
1122
|
-
address: string;
|
1123
|
-
chainId: number;
|
1124
|
-
decimals: number;
|
1125
|
-
verified: boolean;
|
1126
|
-
isTest: boolean;
|
1127
|
-
};
|
1128
|
-
}[];
|
1129
|
-
}[];
|
1130
|
-
readonly 404: {
|
1131
|
-
name: string;
|
1132
|
-
message: string;
|
1133
|
-
};
|
1134
|
-
readonly 500: {
|
1135
|
-
info: string;
|
1136
|
-
code: string;
|
1137
|
-
httpCode: number;
|
1138
|
-
};
|
1139
|
-
}>>;
|
1140
|
-
};
|
1141
|
-
aggregate: ((params: {
|
1142
|
-
field: string | number;
|
1143
|
-
}) => {
|
1144
|
-
get: (options: {
|
1145
|
-
headers?: Record<string, unknown> | undefined;
|
1146
|
-
query: {
|
1147
|
-
name?: string | undefined;
|
1148
|
-
type?: string | undefined;
|
1149
|
-
status?: string | undefined;
|
1150
|
-
sort?: string | undefined;
|
1151
|
-
tokens?: string | undefined;
|
1152
|
-
items?: number | undefined;
|
1153
|
-
tags?: string | undefined;
|
1154
|
-
identifier?: string | undefined;
|
1155
|
-
page?: number | undefined;
|
1156
|
-
action?: string | undefined;
|
1157
|
-
campaignId?: string | undefined;
|
1158
|
-
creatorAddress?: string | undefined;
|
1159
|
-
chainId?: string | undefined;
|
1160
|
-
mainProtocolId?: string | undefined;
|
1161
|
-
campaigns?: boolean | undefined;
|
1162
|
-
point?: boolean | undefined;
|
1163
|
-
test?: boolean | undefined;
|
1164
|
-
rewardTokenSymbol?: string | undefined;
|
1165
|
-
order?: string | undefined;
|
1166
|
-
minimumTvl?: number | undefined;
|
1167
|
-
};
|
1168
|
-
fetch?: RequestInit | undefined;
|
1169
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1170
|
-
200: {
|
1171
|
-
sum: string;
|
1172
|
-
};
|
900
|
+
200: {
|
901
|
+
sum: string;
|
902
|
+
};
|
1173
903
|
}>>;
|
1174
904
|
}) & {
|
1175
905
|
max: ((params: {
|
@@ -4519,47 +4249,44 @@ declare const eden: {
|
|
4519
4249
|
};
|
4520
4250
|
fetch?: RequestInit | undefined;
|
4521
4251
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4522
|
-
200:
|
4523
|
-
|
4524
|
-
|
4525
|
-
name: string;
|
4526
|
-
url: string;
|
4527
|
-
description: string;
|
4528
|
-
tags: string[];
|
4529
|
-
icon: string;
|
4530
|
-
} | null | undefined;
|
4531
|
-
depositUrl?: string | undefined;
|
4532
|
-
explorerAddress?: string | undefined;
|
4533
|
-
aprRecord?: {
|
4534
|
-
timestamp: string | bigint;
|
4252
|
+
200: {
|
4253
|
+
apr: number;
|
4254
|
+
aprRecord: {
|
4535
4255
|
cumulated: number;
|
4256
|
+
timestamp: bigint;
|
4536
4257
|
breakdowns: {
|
4537
4258
|
id: number;
|
4538
|
-
type: "
|
4259
|
+
type: import("@db/api").$Enums.AprType;
|
4260
|
+
uuid: string;
|
4539
4261
|
identifier: string;
|
4540
4262
|
value: number;
|
4541
4263
|
aprRecordId: string;
|
4542
4264
|
}[];
|
4543
|
-
}
|
4544
|
-
tvlRecord
|
4265
|
+
};
|
4266
|
+
tvlRecord: {
|
4267
|
+
id: string;
|
4545
4268
|
total: number;
|
4546
|
-
timestamp:
|
4269
|
+
timestamp: bigint;
|
4547
4270
|
breakdowns: {
|
4548
4271
|
id: number;
|
4549
|
-
type: "
|
4272
|
+
type: import("@db/api").$Enums.TvlType;
|
4273
|
+
uuid: string;
|
4550
4274
|
identifier: string;
|
4551
4275
|
value: number;
|
4552
4276
|
tvlRecordId: string;
|
4553
4277
|
}[];
|
4554
|
-
}
|
4555
|
-
rewardsRecord
|
4278
|
+
};
|
4279
|
+
rewardsRecord: {
|
4556
4280
|
id: string;
|
4557
4281
|
total: number;
|
4558
|
-
timestamp:
|
4282
|
+
timestamp: bigint;
|
4559
4283
|
breakdowns: {
|
4560
4284
|
id: number;
|
4285
|
+
uuid: string;
|
4286
|
+
value: number;
|
4287
|
+
campaignId: string;
|
4288
|
+
dailyRewardsRecordId: string;
|
4561
4289
|
token: {
|
4562
|
-
price?: number | null | undefined;
|
4563
4290
|
symbol: string;
|
4564
4291
|
id: string;
|
4565
4292
|
name: string | null;
|
@@ -4567,48 +4294,189 @@ declare const eden: {
|
|
4567
4294
|
address: string;
|
4568
4295
|
chainId: number;
|
4569
4296
|
decimals: number;
|
4297
|
+
displaySymbol: string;
|
4570
4298
|
verified: boolean;
|
4571
4299
|
isTest: boolean;
|
4300
|
+
isPoint: boolean;
|
4301
|
+
isNative: boolean;
|
4302
|
+
price: number | null;
|
4572
4303
|
};
|
4573
|
-
|
4574
|
-
campaignId: string;
|
4575
|
-
amount: string | bigint;
|
4576
|
-
dailyRewardsRecordId: string;
|
4304
|
+
amount: bigint;
|
4577
4305
|
}[];
|
4578
|
-
} | undefined;
|
4579
|
-
id: string;
|
4580
|
-
name: string;
|
4581
|
-
type: string;
|
4582
|
-
status: string;
|
4583
|
-
tokens: {
|
4584
|
-
price?: number | null | undefined;
|
4585
|
-
symbol: string;
|
4586
|
-
id: string;
|
4587
|
-
name: string | null;
|
4588
|
-
icon: string;
|
4589
|
-
address: string;
|
4590
|
-
chainId: number;
|
4591
|
-
decimals: number;
|
4592
|
-
verified: boolean;
|
4593
|
-
isTest: boolean;
|
4594
|
-
}[];
|
4595
|
-
tags: string[];
|
4596
|
-
identifier: string;
|
4597
|
-
chain: {
|
4598
|
-
id: number;
|
4599
|
-
name: string;
|
4600
|
-
icon: string;
|
4601
4306
|
};
|
4602
|
-
|
4603
|
-
|
4604
|
-
|
4605
|
-
|
4307
|
+
campaigns: {
|
4308
|
+
params: any;
|
4309
|
+
chain: {
|
4310
|
+
id: number;
|
4311
|
+
name: string;
|
4312
|
+
icon: string;
|
4313
|
+
};
|
4314
|
+
endTimestamp: number;
|
4315
|
+
startTimestamp: number;
|
4316
|
+
rewardToken: {
|
4317
|
+
symbol: string;
|
4318
|
+
id: string;
|
4319
|
+
name: string | null;
|
4320
|
+
icon: string;
|
4321
|
+
address: string;
|
4322
|
+
chainId: number;
|
4323
|
+
decimals: number;
|
4324
|
+
verified: boolean;
|
4325
|
+
isTest: boolean;
|
4326
|
+
isPoint: boolean;
|
4327
|
+
isNative: boolean;
|
4328
|
+
} & {
|
4329
|
+
price?: number | null | undefined;
|
4330
|
+
};
|
4331
|
+
distributionChain: {
|
4332
|
+
id: number;
|
4333
|
+
name: string;
|
4334
|
+
icon: string;
|
4335
|
+
} | undefined;
|
4336
|
+
campaignStatus: {
|
4337
|
+
computedUntil: number;
|
4338
|
+
processingStarted: number;
|
4339
|
+
error: string;
|
4340
|
+
status: import("@db/api").$Enums.RunStatus;
|
4341
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
4342
|
+
campaignId: string;
|
4343
|
+
} | undefined;
|
4344
|
+
creatorAddress: string;
|
4345
|
+
creator: {
|
4346
|
+
tags: string[];
|
4347
|
+
address: string;
|
4348
|
+
creatorId: string | null;
|
4349
|
+
};
|
4350
|
+
createdAt: string;
|
4351
|
+
Opportunity: {
|
4352
|
+
id: string;
|
4353
|
+
name: string;
|
4354
|
+
type: string;
|
4355
|
+
status: import("@db/api").$Enums.Status;
|
4356
|
+
tags: string[];
|
4357
|
+
identifier: string;
|
4358
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4359
|
+
chainId: number;
|
4360
|
+
depositUrl: string | null;
|
4361
|
+
explorerAddress: string | null;
|
4362
|
+
mainProtocolId: string | null;
|
4363
|
+
tvl: number;
|
4364
|
+
apr: number;
|
4365
|
+
dailyRewards: number;
|
4366
|
+
};
|
4367
|
+
id: string;
|
4368
|
+
type: string;
|
4369
|
+
subType: number | null;
|
4370
|
+
computeChainId: number;
|
4371
|
+
distributionChainId: number;
|
4372
|
+
campaignId: string;
|
4373
|
+
rewardTokenId: string;
|
4374
|
+
amount: string;
|
4375
|
+
opportunityId: string;
|
4376
|
+
}[] | undefined;
|
4377
|
+
id: string;
|
4378
|
+
depositUrl: string | undefined;
|
4379
|
+
explorerAddress: string | undefined;
|
4380
|
+
tokens: ({
|
4381
|
+
symbol: string;
|
4382
|
+
id: string;
|
4383
|
+
name: string | null;
|
4384
|
+
icon: string;
|
4385
|
+
address: string;
|
4386
|
+
chainId: number;
|
4387
|
+
decimals: number;
|
4388
|
+
verified: boolean;
|
4389
|
+
isTest: boolean;
|
4390
|
+
isPoint: boolean;
|
4391
|
+
isNative: boolean;
|
4392
|
+
} & {
|
4393
|
+
price?: number | null | undefined;
|
4394
|
+
})[];
|
4395
|
+
chain: {
|
4396
|
+
id: number;
|
4397
|
+
name: string;
|
4398
|
+
icon: string;
|
4399
|
+
};
|
4400
|
+
protocol: {
|
4401
|
+
id: string;
|
4402
|
+
name: string;
|
4403
|
+
url: string;
|
4404
|
+
description: string;
|
4405
|
+
tags: string[];
|
4406
|
+
icon: string;
|
4407
|
+
} | undefined;
|
4408
|
+
name: string;
|
4409
|
+
type: string;
|
4410
|
+
status: import("@db/api").$Enums.Status;
|
4411
|
+
tags: string[];
|
4412
|
+
identifier: string;
|
4413
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4414
|
+
chainId: number;
|
4415
|
+
tvl: number;
|
4606
4416
|
dailyRewards: number;
|
4607
|
-
}
|
4608
|
-
}
|
4609
|
-
|
4610
|
-
|
4611
|
-
|
4417
|
+
}[];
|
4418
|
+
}>>;
|
4419
|
+
};
|
4420
|
+
count: {
|
4421
|
+
get: (options: {
|
4422
|
+
headers?: Record<string, unknown> | undefined;
|
4423
|
+
query: {
|
4424
|
+
name?: string | undefined;
|
4425
|
+
type?: string | undefined;
|
4426
|
+
status?: string | undefined;
|
4427
|
+
sort?: string | undefined;
|
4428
|
+
tokens?: string | undefined;
|
4429
|
+
items?: number | undefined;
|
4430
|
+
tags?: string | undefined;
|
4431
|
+
identifier?: string | undefined;
|
4432
|
+
page?: number | undefined;
|
4433
|
+
action?: string | undefined;
|
4434
|
+
campaignId?: string | undefined;
|
4435
|
+
creatorAddress?: string | undefined;
|
4436
|
+
chainId?: string | undefined;
|
4437
|
+
mainProtocolId?: string | undefined;
|
4438
|
+
campaigns?: boolean | undefined;
|
4439
|
+
point?: boolean | undefined;
|
4440
|
+
test?: boolean | undefined;
|
4441
|
+
rewardTokenSymbol?: string | undefined;
|
4442
|
+
order?: string | undefined;
|
4443
|
+
minimumTvl?: number | undefined;
|
4444
|
+
};
|
4445
|
+
fetch?: RequestInit | undefined;
|
4446
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4447
|
+
200: number;
|
4448
|
+
}>>;
|
4449
|
+
};
|
4450
|
+
campaigns: {
|
4451
|
+
get: (options: {
|
4452
|
+
headers?: Record<string, unknown> | undefined;
|
4453
|
+
query: {
|
4454
|
+
type?: string | undefined;
|
4455
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
4456
|
+
items?: number | undefined;
|
4457
|
+
subType?: number | undefined;
|
4458
|
+
page?: number | undefined;
|
4459
|
+
types?: string[] | undefined;
|
4460
|
+
campaignId?: string | undefined;
|
4461
|
+
opportunityId?: string | undefined;
|
4462
|
+
startTimestamp?: string | undefined;
|
4463
|
+
endTimestamp?: string | undefined;
|
4464
|
+
creatorAddress?: string | undefined;
|
4465
|
+
chainId?: number | undefined;
|
4466
|
+
creatorId?: string | undefined;
|
4467
|
+
mainParameter?: string | undefined;
|
4468
|
+
point?: boolean | undefined;
|
4469
|
+
tokenAddress?: string | undefined;
|
4470
|
+
test?: boolean | undefined;
|
4471
|
+
creatorTag?: string | undefined;
|
4472
|
+
distributionChainIds?: number[] | undefined;
|
4473
|
+
tokenSymbol?: string | undefined;
|
4474
|
+
withOpportunity?: boolean | undefined;
|
4475
|
+
createdAfter?: Date | null | undefined;
|
4476
|
+
};
|
4477
|
+
fetch?: RequestInit | undefined;
|
4478
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4479
|
+
200: {
|
4612
4480
|
protocol?: {
|
4613
4481
|
id: string;
|
4614
4482
|
name: string;
|
@@ -4693,243 +4561,45 @@ declare const eden: {
|
|
4693
4561
|
tvl: number;
|
4694
4562
|
apr: number;
|
4695
4563
|
dailyRewards: number;
|
4696
|
-
|
4697
|
-
|
4698
|
-
|
4699
|
-
|
4700
|
-
|
4701
|
-
url: string;
|
4702
|
-
description: string;
|
4703
|
-
tags: string[];
|
4704
|
-
icon: string;
|
4705
|
-
} | null | undefined;
|
4706
|
-
depositUrl?: string | undefined;
|
4707
|
-
explorerAddress?: string | undefined;
|
4708
|
-
aprRecord?: {
|
4709
|
-
timestamp: string | bigint;
|
4710
|
-
cumulated: number;
|
4711
|
-
breakdowns: {
|
4712
|
-
id: number;
|
4713
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
4714
|
-
identifier: string;
|
4715
|
-
value: number;
|
4716
|
-
aprRecordId: string;
|
4717
|
-
}[];
|
4564
|
+
campaigns: {
|
4565
|
+
creator?: {
|
4566
|
+
tags?: string[] | undefined;
|
4567
|
+
creatorId?: string | null | undefined;
|
4568
|
+
address: string;
|
4718
4569
|
} | undefined;
|
4719
|
-
|
4720
|
-
|
4721
|
-
|
4722
|
-
|
4723
|
-
|
4724
|
-
|
4725
|
-
|
4726
|
-
value: number;
|
4727
|
-
tvlRecordId: string;
|
4728
|
-
}[];
|
4570
|
+
campaignStatus?: {
|
4571
|
+
error?: string | undefined;
|
4572
|
+
details?: any;
|
4573
|
+
status: string;
|
4574
|
+
campaignId: string;
|
4575
|
+
computedUntil: string | number;
|
4576
|
+
processingStarted: string | number;
|
4729
4577
|
} | undefined;
|
4730
|
-
|
4731
|
-
id:
|
4732
|
-
|
4733
|
-
|
4734
|
-
breakdowns: {
|
4735
|
-
id: number;
|
4736
|
-
token: {
|
4737
|
-
price?: number | null | undefined;
|
4738
|
-
symbol: string;
|
4739
|
-
id: string;
|
4740
|
-
name: string | null;
|
4741
|
-
icon: string;
|
4742
|
-
address: string;
|
4743
|
-
chainId: number;
|
4744
|
-
decimals: number;
|
4745
|
-
verified: boolean;
|
4746
|
-
isTest: boolean;
|
4747
|
-
};
|
4748
|
-
value: number;
|
4749
|
-
campaignId: string;
|
4750
|
-
amount: string | bigint;
|
4751
|
-
dailyRewardsRecordId: string;
|
4752
|
-
}[];
|
4578
|
+
distributionChain?: {
|
4579
|
+
id: number;
|
4580
|
+
name: string;
|
4581
|
+
icon: string;
|
4753
4582
|
} | undefined;
|
4754
4583
|
id: string;
|
4755
|
-
name: string;
|
4756
4584
|
type: string;
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
|
4762
|
-
name: string | null;
|
4763
|
-
icon: string;
|
4764
|
-
address: string;
|
4765
|
-
chainId: number;
|
4766
|
-
decimals: number;
|
4767
|
-
verified: boolean;
|
4768
|
-
isTest: boolean;
|
4769
|
-
}[];
|
4770
|
-
tags: string[];
|
4771
|
-
identifier: string;
|
4772
|
-
chain: {
|
4773
|
-
id: number;
|
4774
|
-
name: string;
|
4585
|
+
params: any;
|
4586
|
+
subType: number | null;
|
4587
|
+
chain: {
|
4588
|
+
id: number;
|
4589
|
+
name: string;
|
4775
4590
|
icon: string;
|
4776
4591
|
};
|
4777
|
-
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
description: string;
|
4789
|
-
tags: string[];
|
4790
|
-
icon: string;
|
4791
|
-
} | null | undefined;
|
4792
|
-
depositUrl?: string | undefined;
|
4793
|
-
explorerAddress?: string | undefined;
|
4794
|
-
aprRecord?: {
|
4795
|
-
timestamp: string | bigint;
|
4796
|
-
cumulated: number;
|
4797
|
-
breakdowns: {
|
4798
|
-
id: number;
|
4799
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
4800
|
-
identifier: string;
|
4801
|
-
value: number;
|
4802
|
-
aprRecordId: string;
|
4803
|
-
}[];
|
4804
|
-
} | undefined;
|
4805
|
-
tvlRecord?: {
|
4806
|
-
total: number;
|
4807
|
-
timestamp: string | bigint;
|
4808
|
-
breakdowns: {
|
4809
|
-
id: number;
|
4810
|
-
type: "TOKEN" | "PROTOCOL";
|
4811
|
-
identifier: string;
|
4812
|
-
value: number;
|
4813
|
-
tvlRecordId: string;
|
4814
|
-
}[];
|
4815
|
-
} | undefined;
|
4816
|
-
rewardsRecord?: {
|
4817
|
-
id: string;
|
4818
|
-
total: number;
|
4819
|
-
timestamp: string | bigint;
|
4820
|
-
breakdowns: {
|
4821
|
-
id: number;
|
4822
|
-
token: {
|
4823
|
-
price?: number | null | undefined;
|
4824
|
-
symbol: string;
|
4825
|
-
id: string;
|
4826
|
-
name: string | null;
|
4827
|
-
icon: string;
|
4828
|
-
address: string;
|
4829
|
-
chainId: number;
|
4830
|
-
decimals: number;
|
4831
|
-
verified: boolean;
|
4832
|
-
isTest: boolean;
|
4833
|
-
};
|
4834
|
-
value: number;
|
4835
|
-
campaignId: string;
|
4836
|
-
amount: string | bigint;
|
4837
|
-
dailyRewardsRecordId: string;
|
4838
|
-
}[];
|
4839
|
-
} | undefined;
|
4840
|
-
id: string;
|
4841
|
-
name: string;
|
4842
|
-
type: string;
|
4843
|
-
status: string;
|
4844
|
-
tokens: {
|
4845
|
-
price?: number | null | undefined;
|
4846
|
-
symbol: string;
|
4847
|
-
id: string;
|
4848
|
-
name: string | null;
|
4849
|
-
icon: string;
|
4850
|
-
address: string;
|
4851
|
-
chainId: number;
|
4852
|
-
decimals: number;
|
4853
|
-
verified: boolean;
|
4854
|
-
isTest: boolean;
|
4855
|
-
}[];
|
4856
|
-
tags: string[];
|
4857
|
-
identifier: string;
|
4858
|
-
chain: {
|
4859
|
-
id: number;
|
4860
|
-
name: string;
|
4861
|
-
icon: string;
|
4862
|
-
};
|
4863
|
-
action: string;
|
4864
|
-
chainId: number;
|
4865
|
-
tvl: number;
|
4866
|
-
apr: number;
|
4867
|
-
dailyRewards: number;
|
4868
|
-
} | null)[];
|
4869
|
-
} | {
|
4870
|
-
200: {
|
4871
|
-
200: ({
|
4872
|
-
protocol?: {
|
4873
|
-
id: string;
|
4874
|
-
name: string;
|
4875
|
-
url: string;
|
4876
|
-
description: string;
|
4877
|
-
tags: string[];
|
4878
|
-
icon: string;
|
4879
|
-
} | null | undefined;
|
4880
|
-
depositUrl?: string | undefined;
|
4881
|
-
explorerAddress?: string | undefined;
|
4882
|
-
aprRecord?: {
|
4883
|
-
timestamp: string | bigint;
|
4884
|
-
cumulated: number;
|
4885
|
-
breakdowns: {
|
4886
|
-
id: number;
|
4887
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
4888
|
-
identifier: string;
|
4889
|
-
value: number;
|
4890
|
-
aprRecordId: string;
|
4891
|
-
}[];
|
4892
|
-
} | undefined;
|
4893
|
-
tvlRecord?: {
|
4894
|
-
total: number;
|
4895
|
-
timestamp: string | bigint;
|
4896
|
-
breakdowns: {
|
4897
|
-
id: number;
|
4898
|
-
type: "TOKEN" | "PROTOCOL";
|
4899
|
-
identifier: string;
|
4900
|
-
value: number;
|
4901
|
-
tvlRecordId: string;
|
4902
|
-
}[];
|
4903
|
-
} | undefined;
|
4904
|
-
rewardsRecord?: {
|
4905
|
-
id: string;
|
4906
|
-
total: number;
|
4907
|
-
timestamp: string | bigint;
|
4908
|
-
breakdowns: {
|
4909
|
-
id: number;
|
4910
|
-
token: {
|
4911
|
-
price?: number | null | undefined;
|
4912
|
-
symbol: string;
|
4913
|
-
id: string;
|
4914
|
-
name: string | null;
|
4915
|
-
icon: string;
|
4916
|
-
address: string;
|
4917
|
-
chainId: number;
|
4918
|
-
decimals: number;
|
4919
|
-
verified: boolean;
|
4920
|
-
isTest: boolean;
|
4921
|
-
};
|
4922
|
-
value: number;
|
4923
|
-
campaignId: string;
|
4924
|
-
amount: string | bigint;
|
4925
|
-
dailyRewardsRecordId: string;
|
4926
|
-
}[];
|
4927
|
-
} | undefined;
|
4928
|
-
id: string;
|
4929
|
-
name: string;
|
4930
|
-
type: string;
|
4931
|
-
status: string;
|
4932
|
-
tokens: {
|
4592
|
+
computeChainId: number;
|
4593
|
+
distributionChainId: number;
|
4594
|
+
campaignId: string;
|
4595
|
+
rewardTokenId: string;
|
4596
|
+
amount: string;
|
4597
|
+
opportunityId: string;
|
4598
|
+
startTimestamp: string | number;
|
4599
|
+
endTimestamp: string | number;
|
4600
|
+
creatorAddress: string;
|
4601
|
+
createdAt: string;
|
4602
|
+
rewardToken: {
|
4933
4603
|
price?: number | null | undefined;
|
4934
4604
|
symbol: string;
|
4935
4605
|
id: string;
|
@@ -4940,233 +4610,23 @@ declare const eden: {
|
|
4940
4610
|
decimals: number;
|
4941
4611
|
verified: boolean;
|
4942
4612
|
isTest: boolean;
|
4943
|
-
}[];
|
4944
|
-
tags: string[];
|
4945
|
-
identifier: string;
|
4946
|
-
chain: {
|
4947
|
-
id: number;
|
4948
|
-
name: string;
|
4949
|
-
icon: string;
|
4950
4613
|
};
|
4951
|
-
|
4952
|
-
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4614
|
+
}[];
|
4615
|
+
}[];
|
4616
|
+
readonly 404: {
|
4617
|
+
name: string;
|
4618
|
+
message: string;
|
4619
|
+
};
|
4620
|
+
readonly 500: {
|
4621
|
+
info: string;
|
4622
|
+
code: string;
|
4623
|
+
httpCode: number;
|
4957
4624
|
};
|
4958
4625
|
}>>;
|
4959
4626
|
};
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
query: {
|
4964
|
-
name?: string | undefined;
|
4965
|
-
type?: string | undefined;
|
4966
|
-
status?: string | undefined;
|
4967
|
-
sort?: string | undefined;
|
4968
|
-
tokens?: string | undefined;
|
4969
|
-
items?: number | undefined;
|
4970
|
-
tags?: string | undefined;
|
4971
|
-
identifier?: string | undefined;
|
4972
|
-
page?: number | undefined;
|
4973
|
-
action?: string | undefined;
|
4974
|
-
campaignId?: string | undefined;
|
4975
|
-
creatorAddress?: string | undefined;
|
4976
|
-
chainId?: string | undefined;
|
4977
|
-
mainProtocolId?: string | undefined;
|
4978
|
-
campaigns?: boolean | undefined;
|
4979
|
-
point?: boolean | undefined;
|
4980
|
-
test?: boolean | undefined;
|
4981
|
-
rewardTokenSymbol?: string | undefined;
|
4982
|
-
order?: string | undefined;
|
4983
|
-
minimumTvl?: number | undefined;
|
4984
|
-
};
|
4985
|
-
fetch?: RequestInit | undefined;
|
4986
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4987
|
-
200: number;
|
4988
|
-
}>>;
|
4989
|
-
};
|
4990
|
-
campaigns: {
|
4991
|
-
get: (options: {
|
4992
|
-
headers?: Record<string, unknown> | undefined;
|
4993
|
-
query: {
|
4994
|
-
type?: string | undefined;
|
4995
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
4996
|
-
items?: number | undefined;
|
4997
|
-
subType?: number | undefined;
|
4998
|
-
page?: number | undefined;
|
4999
|
-
types?: string[] | undefined;
|
5000
|
-
campaignId?: string | undefined;
|
5001
|
-
opportunityId?: string | undefined;
|
5002
|
-
startTimestamp?: string | undefined;
|
5003
|
-
endTimestamp?: string | undefined;
|
5004
|
-
creatorAddress?: string | undefined;
|
5005
|
-
chainId?: number | undefined;
|
5006
|
-
creatorId?: string | undefined;
|
5007
|
-
mainParameter?: string | undefined;
|
5008
|
-
point?: boolean | undefined;
|
5009
|
-
tokenAddress?: string | undefined;
|
5010
|
-
test?: boolean | undefined;
|
5011
|
-
creatorTag?: string | undefined;
|
5012
|
-
distributionChainIds?: number[] | undefined;
|
5013
|
-
tokenSymbol?: string | undefined;
|
5014
|
-
withOpportunity?: boolean | undefined;
|
5015
|
-
createdAfter?: Date | null | undefined;
|
5016
|
-
};
|
5017
|
-
fetch?: RequestInit | undefined;
|
5018
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5019
|
-
200: {
|
5020
|
-
protocol?: {
|
5021
|
-
id: string;
|
5022
|
-
name: string;
|
5023
|
-
url: string;
|
5024
|
-
description: string;
|
5025
|
-
tags: string[];
|
5026
|
-
icon: string;
|
5027
|
-
} | null | undefined;
|
5028
|
-
depositUrl?: string | undefined;
|
5029
|
-
explorerAddress?: string | undefined;
|
5030
|
-
aprRecord?: {
|
5031
|
-
timestamp: string | bigint;
|
5032
|
-
cumulated: number;
|
5033
|
-
breakdowns: {
|
5034
|
-
id: number;
|
5035
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
5036
|
-
identifier: string;
|
5037
|
-
value: number;
|
5038
|
-
aprRecordId: string;
|
5039
|
-
}[];
|
5040
|
-
} | undefined;
|
5041
|
-
tvlRecord?: {
|
5042
|
-
total: number;
|
5043
|
-
timestamp: string | bigint;
|
5044
|
-
breakdowns: {
|
5045
|
-
id: number;
|
5046
|
-
type: "TOKEN" | "PROTOCOL";
|
5047
|
-
identifier: string;
|
5048
|
-
value: number;
|
5049
|
-
tvlRecordId: string;
|
5050
|
-
}[];
|
5051
|
-
} | undefined;
|
5052
|
-
rewardsRecord?: {
|
5053
|
-
id: string;
|
5054
|
-
total: number;
|
5055
|
-
timestamp: string | bigint;
|
5056
|
-
breakdowns: {
|
5057
|
-
id: number;
|
5058
|
-
token: {
|
5059
|
-
price?: number | null | undefined;
|
5060
|
-
symbol: string;
|
5061
|
-
id: string;
|
5062
|
-
name: string | null;
|
5063
|
-
icon: string;
|
5064
|
-
address: string;
|
5065
|
-
chainId: number;
|
5066
|
-
decimals: number;
|
5067
|
-
verified: boolean;
|
5068
|
-
isTest: boolean;
|
5069
|
-
};
|
5070
|
-
value: number;
|
5071
|
-
campaignId: string;
|
5072
|
-
amount: string | bigint;
|
5073
|
-
dailyRewardsRecordId: string;
|
5074
|
-
}[];
|
5075
|
-
} | undefined;
|
5076
|
-
id: string;
|
5077
|
-
name: string;
|
5078
|
-
type: string;
|
5079
|
-
status: string;
|
5080
|
-
tokens: {
|
5081
|
-
price?: number | null | undefined;
|
5082
|
-
symbol: string;
|
5083
|
-
id: string;
|
5084
|
-
name: string | null;
|
5085
|
-
icon: string;
|
5086
|
-
address: string;
|
5087
|
-
chainId: number;
|
5088
|
-
decimals: number;
|
5089
|
-
verified: boolean;
|
5090
|
-
isTest: boolean;
|
5091
|
-
}[];
|
5092
|
-
tags: string[];
|
5093
|
-
identifier: string;
|
5094
|
-
chain: {
|
5095
|
-
id: number;
|
5096
|
-
name: string;
|
5097
|
-
icon: string;
|
5098
|
-
};
|
5099
|
-
action: string;
|
5100
|
-
chainId: number;
|
5101
|
-
tvl: number;
|
5102
|
-
apr: number;
|
5103
|
-
dailyRewards: number;
|
5104
|
-
campaigns: {
|
5105
|
-
creator?: {
|
5106
|
-
tags?: string[] | undefined;
|
5107
|
-
creatorId?: string | null | undefined;
|
5108
|
-
address: string;
|
5109
|
-
} | undefined;
|
5110
|
-
campaignStatus?: {
|
5111
|
-
error?: string | undefined;
|
5112
|
-
details?: any;
|
5113
|
-
status: string;
|
5114
|
-
campaignId: string;
|
5115
|
-
computedUntil: string | number;
|
5116
|
-
processingStarted: string | number;
|
5117
|
-
} | undefined;
|
5118
|
-
distributionChain?: {
|
5119
|
-
id: number;
|
5120
|
-
name: string;
|
5121
|
-
icon: string;
|
5122
|
-
} | undefined;
|
5123
|
-
id: string;
|
5124
|
-
type: string;
|
5125
|
-
params: any;
|
5126
|
-
subType: number | null;
|
5127
|
-
chain: {
|
5128
|
-
id: number;
|
5129
|
-
name: string;
|
5130
|
-
icon: string;
|
5131
|
-
};
|
5132
|
-
computeChainId: number;
|
5133
|
-
distributionChainId: number;
|
5134
|
-
campaignId: string;
|
5135
|
-
rewardTokenId: string;
|
5136
|
-
amount: string;
|
5137
|
-
opportunityId: string;
|
5138
|
-
startTimestamp: string | number;
|
5139
|
-
endTimestamp: string | number;
|
5140
|
-
creatorAddress: string;
|
5141
|
-
createdAt: string;
|
5142
|
-
rewardToken: {
|
5143
|
-
price?: number | null | undefined;
|
5144
|
-
symbol: string;
|
5145
|
-
id: string;
|
5146
|
-
name: string | null;
|
5147
|
-
icon: string;
|
5148
|
-
address: string;
|
5149
|
-
chainId: number;
|
5150
|
-
decimals: number;
|
5151
|
-
verified: boolean;
|
5152
|
-
isTest: boolean;
|
5153
|
-
};
|
5154
|
-
}[];
|
5155
|
-
}[];
|
5156
|
-
readonly 404: {
|
5157
|
-
name: string;
|
5158
|
-
message: string;
|
5159
|
-
};
|
5160
|
-
readonly 500: {
|
5161
|
-
info: string;
|
5162
|
-
code: string;
|
5163
|
-
httpCode: number;
|
5164
|
-
};
|
5165
|
-
}>>;
|
5166
|
-
};
|
5167
|
-
aggregate: ((params: {
|
5168
|
-
field: string | number;
|
5169
|
-
}) => {
|
4627
|
+
aggregate: ((params: {
|
4628
|
+
field: string | number;
|
4629
|
+
}) => {
|
5170
4630
|
get: (options: {
|
5171
4631
|
headers?: Record<string, unknown> | undefined;
|
5172
4632
|
query: {
|
@@ -8994,47 +8454,44 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8994
8454
|
};
|
8995
8455
|
headers: unknown;
|
8996
8456
|
response: {
|
8997
|
-
200:
|
8998
|
-
|
8999
|
-
|
9000
|
-
name: string;
|
9001
|
-
url: string;
|
9002
|
-
description: string;
|
9003
|
-
tags: string[];
|
9004
|
-
icon: string;
|
9005
|
-
} | null | undefined;
|
9006
|
-
depositUrl?: string | undefined;
|
9007
|
-
explorerAddress?: string | undefined;
|
9008
|
-
aprRecord?: {
|
9009
|
-
timestamp: string | bigint;
|
8457
|
+
200: {
|
8458
|
+
apr: number;
|
8459
|
+
aprRecord: {
|
9010
8460
|
cumulated: number;
|
8461
|
+
timestamp: bigint;
|
9011
8462
|
breakdowns: {
|
9012
8463
|
id: number;
|
9013
|
-
type: "
|
8464
|
+
type: import("@db/api").$Enums.AprType;
|
8465
|
+
uuid: string;
|
9014
8466
|
identifier: string;
|
9015
8467
|
value: number;
|
9016
8468
|
aprRecordId: string;
|
9017
8469
|
}[];
|
9018
|
-
}
|
9019
|
-
tvlRecord
|
8470
|
+
};
|
8471
|
+
tvlRecord: {
|
8472
|
+
id: string;
|
9020
8473
|
total: number;
|
9021
|
-
timestamp:
|
8474
|
+
timestamp: bigint;
|
9022
8475
|
breakdowns: {
|
9023
8476
|
id: number;
|
9024
|
-
type: "
|
8477
|
+
type: import("@db/api").$Enums.TvlType;
|
8478
|
+
uuid: string;
|
9025
8479
|
identifier: string;
|
9026
8480
|
value: number;
|
9027
8481
|
tvlRecordId: string;
|
9028
8482
|
}[];
|
9029
|
-
}
|
9030
|
-
rewardsRecord
|
8483
|
+
};
|
8484
|
+
rewardsRecord: {
|
9031
8485
|
id: string;
|
9032
8486
|
total: number;
|
9033
|
-
timestamp:
|
8487
|
+
timestamp: bigint;
|
9034
8488
|
breakdowns: {
|
9035
8489
|
id: number;
|
8490
|
+
uuid: string;
|
8491
|
+
value: number;
|
8492
|
+
campaignId: string;
|
8493
|
+
dailyRewardsRecordId: string;
|
9036
8494
|
token: {
|
9037
|
-
price?: number | null | undefined;
|
9038
8495
|
symbol: string;
|
9039
8496
|
id: string;
|
9040
8497
|
name: string | null;
|
@@ -9042,110 +8499,90 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9042
8499
|
address: string;
|
9043
8500
|
chainId: number;
|
9044
8501
|
decimals: number;
|
8502
|
+
displaySymbol: string;
|
9045
8503
|
verified: boolean;
|
9046
8504
|
isTest: boolean;
|
8505
|
+
isPoint: boolean;
|
8506
|
+
isNative: boolean;
|
8507
|
+
price: number | null;
|
9047
8508
|
};
|
9048
|
-
|
9049
|
-
campaignId: string;
|
9050
|
-
amount: string | bigint;
|
9051
|
-
dailyRewardsRecordId: string;
|
8509
|
+
amount: bigint;
|
9052
8510
|
}[];
|
9053
|
-
} | undefined;
|
9054
|
-
id: string;
|
9055
|
-
name: string;
|
9056
|
-
type: string;
|
9057
|
-
status: string;
|
9058
|
-
tokens: {
|
9059
|
-
price?: number | null | undefined;
|
9060
|
-
symbol: string;
|
9061
|
-
id: string;
|
9062
|
-
name: string | null;
|
9063
|
-
icon: string;
|
9064
|
-
address: string;
|
9065
|
-
chainId: number;
|
9066
|
-
decimals: number;
|
9067
|
-
verified: boolean;
|
9068
|
-
isTest: boolean;
|
9069
|
-
}[];
|
9070
|
-
tags: string[];
|
9071
|
-
identifier: string;
|
9072
|
-
chain: {
|
9073
|
-
id: number;
|
9074
|
-
name: string;
|
9075
|
-
icon: string;
|
9076
8511
|
};
|
9077
|
-
|
9078
|
-
|
9079
|
-
|
9080
|
-
apr: number;
|
9081
|
-
dailyRewards: number;
|
9082
|
-
} | null)[];
|
9083
|
-
} | {
|
9084
|
-
200: never;
|
9085
|
-
} | {
|
9086
|
-
200: (Response | ({
|
9087
|
-
protocol?: {
|
9088
|
-
id: string;
|
9089
|
-
name: string;
|
9090
|
-
url: string;
|
9091
|
-
description: string;
|
9092
|
-
tags: string[];
|
9093
|
-
icon: string;
|
9094
|
-
} | null | undefined;
|
9095
|
-
depositUrl?: string | undefined;
|
9096
|
-
explorerAddress?: string | undefined;
|
9097
|
-
aprRecord?: {
|
9098
|
-
timestamp: string | bigint;
|
9099
|
-
cumulated: number;
|
9100
|
-
breakdowns: {
|
9101
|
-
id: number;
|
9102
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
9103
|
-
identifier: string;
|
9104
|
-
value: number;
|
9105
|
-
aprRecordId: string;
|
9106
|
-
}[];
|
9107
|
-
} | undefined;
|
9108
|
-
tvlRecord?: {
|
9109
|
-
total: number;
|
9110
|
-
timestamp: string | bigint;
|
9111
|
-
breakdowns: {
|
8512
|
+
campaigns: {
|
8513
|
+
params: any;
|
8514
|
+
chain: {
|
9112
8515
|
id: number;
|
9113
|
-
|
9114
|
-
|
9115
|
-
|
9116
|
-
|
9117
|
-
|
9118
|
-
|
9119
|
-
|
9120
|
-
|
9121
|
-
|
9122
|
-
|
9123
|
-
|
8516
|
+
name: string;
|
8517
|
+
icon: string;
|
8518
|
+
};
|
8519
|
+
endTimestamp: number;
|
8520
|
+
startTimestamp: number;
|
8521
|
+
rewardToken: {
|
8522
|
+
symbol: string;
|
8523
|
+
id: string;
|
8524
|
+
name: string | null;
|
8525
|
+
icon: string;
|
8526
|
+
address: string;
|
8527
|
+
chainId: number;
|
8528
|
+
decimals: number;
|
8529
|
+
verified: boolean;
|
8530
|
+
isTest: boolean;
|
8531
|
+
isPoint: boolean;
|
8532
|
+
isNative: boolean;
|
8533
|
+
} & {
|
8534
|
+
price?: number | null | undefined;
|
8535
|
+
};
|
8536
|
+
distributionChain: {
|
9124
8537
|
id: number;
|
9125
|
-
|
9126
|
-
|
9127
|
-
|
9128
|
-
|
9129
|
-
|
9130
|
-
|
9131
|
-
|
9132
|
-
|
9133
|
-
|
9134
|
-
verified: boolean;
|
9135
|
-
isTest: boolean;
|
9136
|
-
};
|
9137
|
-
value: number;
|
8538
|
+
name: string;
|
8539
|
+
icon: string;
|
8540
|
+
} | undefined;
|
8541
|
+
campaignStatus: {
|
8542
|
+
computedUntil: number;
|
8543
|
+
processingStarted: number;
|
8544
|
+
error: string;
|
8545
|
+
status: import("@db/api").$Enums.RunStatus;
|
8546
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
9138
8547
|
campaignId: string;
|
9139
|
-
|
9140
|
-
|
9141
|
-
|
9142
|
-
|
8548
|
+
} | undefined;
|
8549
|
+
creatorAddress: string;
|
8550
|
+
creator: {
|
8551
|
+
tags: string[];
|
8552
|
+
address: string;
|
8553
|
+
creatorId: string | null;
|
8554
|
+
};
|
8555
|
+
createdAt: string;
|
8556
|
+
Opportunity: {
|
8557
|
+
id: string;
|
8558
|
+
name: string;
|
8559
|
+
type: string;
|
8560
|
+
status: import("@db/api").$Enums.Status;
|
8561
|
+
tags: string[];
|
8562
|
+
identifier: string;
|
8563
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
8564
|
+
chainId: number;
|
8565
|
+
depositUrl: string | null;
|
8566
|
+
explorerAddress: string | null;
|
8567
|
+
mainProtocolId: string | null;
|
8568
|
+
tvl: number;
|
8569
|
+
apr: number;
|
8570
|
+
dailyRewards: number;
|
8571
|
+
};
|
8572
|
+
id: string;
|
8573
|
+
type: string;
|
8574
|
+
subType: number | null;
|
8575
|
+
computeChainId: number;
|
8576
|
+
distributionChainId: number;
|
8577
|
+
campaignId: string;
|
8578
|
+
rewardTokenId: string;
|
8579
|
+
amount: string;
|
8580
|
+
opportunityId: string;
|
8581
|
+
}[] | undefined;
|
9143
8582
|
id: string;
|
9144
|
-
|
9145
|
-
|
9146
|
-
|
9147
|
-
tokens: {
|
9148
|
-
price?: number | null | undefined;
|
8583
|
+
depositUrl: string | undefined;
|
8584
|
+
explorerAddress: string | undefined;
|
8585
|
+
tokens: ({
|
9149
8586
|
symbol: string;
|
9150
8587
|
id: string;
|
9151
8588
|
name: string | null;
|
@@ -9155,335 +8592,88 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9155
8592
|
decimals: number;
|
9156
8593
|
verified: boolean;
|
9157
8594
|
isTest: boolean;
|
9158
|
-
|
9159
|
-
|
9160
|
-
|
8595
|
+
isPoint: boolean;
|
8596
|
+
isNative: boolean;
|
8597
|
+
} & {
|
8598
|
+
price?: number | null | undefined;
|
8599
|
+
})[];
|
9161
8600
|
chain: {
|
9162
8601
|
id: number;
|
9163
8602
|
name: string;
|
9164
8603
|
icon: string;
|
9165
8604
|
};
|
9166
|
-
|
9167
|
-
chainId: number;
|
9168
|
-
tvl: number;
|
9169
|
-
apr: number;
|
9170
|
-
dailyRewards: number;
|
9171
|
-
} | null)[] | {
|
9172
|
-
200: ({
|
9173
|
-
protocol?: {
|
9174
|
-
id: string;
|
9175
|
-
name: string;
|
9176
|
-
url: string;
|
9177
|
-
description: string;
|
9178
|
-
tags: string[];
|
9179
|
-
icon: string;
|
9180
|
-
} | null | undefined;
|
9181
|
-
depositUrl?: string | undefined;
|
9182
|
-
explorerAddress?: string | undefined;
|
9183
|
-
aprRecord?: {
|
9184
|
-
timestamp: string | bigint;
|
9185
|
-
cumulated: number;
|
9186
|
-
breakdowns: {
|
9187
|
-
id: number;
|
9188
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
9189
|
-
identifier: string;
|
9190
|
-
value: number;
|
9191
|
-
aprRecordId: string;
|
9192
|
-
}[];
|
9193
|
-
} | undefined;
|
9194
|
-
tvlRecord?: {
|
9195
|
-
total: number;
|
9196
|
-
timestamp: string | bigint;
|
9197
|
-
breakdowns: {
|
9198
|
-
id: number;
|
9199
|
-
type: "TOKEN" | "PROTOCOL";
|
9200
|
-
identifier: string;
|
9201
|
-
value: number;
|
9202
|
-
tvlRecordId: string;
|
9203
|
-
}[];
|
9204
|
-
} | undefined;
|
9205
|
-
rewardsRecord?: {
|
9206
|
-
id: string;
|
9207
|
-
total: number;
|
9208
|
-
timestamp: string | bigint;
|
9209
|
-
breakdowns: {
|
9210
|
-
id: number;
|
9211
|
-
token: {
|
9212
|
-
price?: number | null | undefined;
|
9213
|
-
symbol: string;
|
9214
|
-
id: string;
|
9215
|
-
name: string | null;
|
9216
|
-
icon: string;
|
9217
|
-
address: string;
|
9218
|
-
chainId: number;
|
9219
|
-
decimals: number;
|
9220
|
-
verified: boolean;
|
9221
|
-
isTest: boolean;
|
9222
|
-
};
|
9223
|
-
value: number;
|
9224
|
-
campaignId: string;
|
9225
|
-
amount: string | bigint;
|
9226
|
-
dailyRewardsRecordId: string;
|
9227
|
-
}[];
|
9228
|
-
} | undefined;
|
8605
|
+
protocol: {
|
9229
8606
|
id: string;
|
9230
8607
|
name: string;
|
9231
|
-
|
9232
|
-
|
9233
|
-
tokens: {
|
9234
|
-
price?: number | null | undefined;
|
9235
|
-
symbol: string;
|
9236
|
-
id: string;
|
9237
|
-
name: string | null;
|
9238
|
-
icon: string;
|
9239
|
-
address: string;
|
9240
|
-
chainId: number;
|
9241
|
-
decimals: number;
|
9242
|
-
verified: boolean;
|
9243
|
-
isTest: boolean;
|
9244
|
-
}[];
|
8608
|
+
url: string;
|
8609
|
+
description: string;
|
9245
8610
|
tags: string[];
|
9246
|
-
|
9247
|
-
|
9248
|
-
|
9249
|
-
|
9250
|
-
|
9251
|
-
|
9252
|
-
|
9253
|
-
|
9254
|
-
|
9255
|
-
|
9256
|
-
|
9257
|
-
|
9258
|
-
|
9259
|
-
|
9260
|
-
|
9261
|
-
|
9262
|
-
|
9263
|
-
|
9264
|
-
|
9265
|
-
|
9266
|
-
|
9267
|
-
|
9268
|
-
|
9269
|
-
|
9270
|
-
|
9271
|
-
|
9272
|
-
|
9273
|
-
|
9274
|
-
|
9275
|
-
|
9276
|
-
|
9277
|
-
|
9278
|
-
|
9279
|
-
|
9280
|
-
|
9281
|
-
|
9282
|
-
|
9283
|
-
|
9284
|
-
|
9285
|
-
|
9286
|
-
|
9287
|
-
|
9288
|
-
|
9289
|
-
|
9290
|
-
|
9291
|
-
|
9292
|
-
|
9293
|
-
|
9294
|
-
|
9295
|
-
|
9296
|
-
|
9297
|
-
|
9298
|
-
|
9299
|
-
|
9300
|
-
|
9301
|
-
|
9302
|
-
|
9303
|
-
|
9304
|
-
|
9305
|
-
|
9306
|
-
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9310
|
-
|
9311
|
-
|
9312
|
-
dailyRewardsRecordId: string;
|
9313
|
-
}[];
|
9314
|
-
} | undefined;
|
9315
|
-
id: string;
|
9316
|
-
name: string;
|
9317
|
-
type: string;
|
9318
|
-
status: string;
|
9319
|
-
tokens: {
|
9320
|
-
price?: number | null | undefined;
|
9321
|
-
symbol: string;
|
9322
|
-
id: string;
|
9323
|
-
name: string | null;
|
9324
|
-
icon: string;
|
9325
|
-
address: string;
|
9326
|
-
chainId: number;
|
9327
|
-
decimals: number;
|
9328
|
-
verified: boolean;
|
9329
|
-
isTest: boolean;
|
9330
|
-
}[];
|
9331
|
-
tags: string[];
|
9332
|
-
identifier: string;
|
9333
|
-
chain: {
|
9334
|
-
id: number;
|
9335
|
-
name: string;
|
9336
|
-
icon: string;
|
9337
|
-
};
|
9338
|
-
action: string;
|
9339
|
-
chainId: number;
|
9340
|
-
tvl: number;
|
9341
|
-
apr: number;
|
9342
|
-
dailyRewards: number;
|
9343
|
-
} | null)[];
|
9344
|
-
} | {
|
9345
|
-
200: {
|
9346
|
-
200: ({
|
9347
|
-
protocol?: {
|
9348
|
-
id: string;
|
9349
|
-
name: string;
|
9350
|
-
url: string;
|
9351
|
-
description: string;
|
9352
|
-
tags: string[];
|
9353
|
-
icon: string;
|
9354
|
-
} | null | undefined;
|
9355
|
-
depositUrl?: string | undefined;
|
9356
|
-
explorerAddress?: string | undefined;
|
9357
|
-
aprRecord?: {
|
9358
|
-
timestamp: string | bigint;
|
9359
|
-
cumulated: number;
|
9360
|
-
breakdowns: {
|
9361
|
-
id: number;
|
9362
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
9363
|
-
identifier: string;
|
9364
|
-
value: number;
|
9365
|
-
aprRecordId: string;
|
9366
|
-
}[];
|
9367
|
-
} | undefined;
|
9368
|
-
tvlRecord?: {
|
9369
|
-
total: number;
|
9370
|
-
timestamp: string | bigint;
|
9371
|
-
breakdowns: {
|
9372
|
-
id: number;
|
9373
|
-
type: "TOKEN" | "PROTOCOL";
|
9374
|
-
identifier: string;
|
9375
|
-
value: number;
|
9376
|
-
tvlRecordId: string;
|
9377
|
-
}[];
|
9378
|
-
} | undefined;
|
9379
|
-
rewardsRecord?: {
|
9380
|
-
id: string;
|
9381
|
-
total: number;
|
9382
|
-
timestamp: string | bigint;
|
9383
|
-
breakdowns: {
|
9384
|
-
id: number;
|
9385
|
-
token: {
|
9386
|
-
price?: number | null | undefined;
|
9387
|
-
symbol: string;
|
9388
|
-
id: string;
|
9389
|
-
name: string | null;
|
9390
|
-
icon: string;
|
9391
|
-
address: string;
|
9392
|
-
chainId: number;
|
9393
|
-
decimals: number;
|
9394
|
-
verified: boolean;
|
9395
|
-
isTest: boolean;
|
9396
|
-
};
|
9397
|
-
value: number;
|
9398
|
-
campaignId: string;
|
9399
|
-
amount: string | bigint;
|
9400
|
-
dailyRewardsRecordId: string;
|
9401
|
-
}[];
|
9402
|
-
} | undefined;
|
9403
|
-
id: string;
|
9404
|
-
name: string;
|
9405
|
-
type: string;
|
9406
|
-
status: string;
|
9407
|
-
tokens: {
|
9408
|
-
price?: number | null | undefined;
|
9409
|
-
symbol: string;
|
9410
|
-
id: string;
|
9411
|
-
name: string | null;
|
9412
|
-
icon: string;
|
9413
|
-
address: string;
|
9414
|
-
chainId: number;
|
9415
|
-
decimals: number;
|
9416
|
-
verified: boolean;
|
9417
|
-
isTest: boolean;
|
9418
|
-
}[];
|
9419
|
-
tags: string[];
|
9420
|
-
identifier: string;
|
9421
|
-
chain: {
|
9422
|
-
id: number;
|
9423
|
-
name: string;
|
9424
|
-
icon: string;
|
9425
|
-
};
|
9426
|
-
action: string;
|
9427
|
-
chainId: number;
|
9428
|
-
tvl: number;
|
9429
|
-
apr: number;
|
9430
|
-
dailyRewards: number;
|
9431
|
-
} | null)[];
|
9432
|
-
};
|
9433
|
-
};
|
9434
|
-
};
|
9435
|
-
};
|
9436
|
-
};
|
9437
|
-
} & {
|
9438
|
-
opportunities: {
|
9439
|
-
count: {
|
9440
|
-
get: {
|
9441
|
-
body: unknown;
|
9442
|
-
params: {};
|
9443
|
-
query: {
|
9444
|
-
name?: string | undefined;
|
9445
|
-
type?: string | undefined;
|
9446
|
-
status?: string | undefined;
|
9447
|
-
sort?: string | undefined;
|
9448
|
-
tokens?: string | undefined;
|
9449
|
-
items?: number | undefined;
|
9450
|
-
tags?: string | undefined;
|
9451
|
-
identifier?: string | undefined;
|
9452
|
-
page?: number | undefined;
|
9453
|
-
action?: string | undefined;
|
9454
|
-
campaignId?: string | undefined;
|
9455
|
-
creatorAddress?: string | undefined;
|
9456
|
-
chainId?: string | undefined;
|
9457
|
-
mainProtocolId?: string | undefined;
|
9458
|
-
campaigns?: boolean | undefined;
|
9459
|
-
point?: boolean | undefined;
|
9460
|
-
test?: boolean | undefined;
|
9461
|
-
rewardTokenSymbol?: string | undefined;
|
9462
|
-
order?: string | undefined;
|
9463
|
-
minimumTvl?: number | undefined;
|
9464
|
-
};
|
9465
|
-
headers: unknown;
|
9466
|
-
response: {
|
9467
|
-
200: number;
|
9468
|
-
};
|
9469
|
-
};
|
9470
|
-
};
|
9471
|
-
};
|
9472
|
-
} & {
|
9473
|
-
opportunities: {
|
9474
|
-
":id": {
|
9475
|
-
get: {
|
9476
|
-
body: unknown;
|
9477
|
-
params: {
|
9478
|
-
id: string;
|
9479
|
-
};
|
9480
|
-
query: {
|
9481
|
-
point?: boolean | undefined;
|
9482
|
-
test?: boolean | undefined;
|
9483
|
-
};
|
9484
|
-
headers: unknown;
|
9485
|
-
response: {
|
9486
|
-
200: {
|
8611
|
+
icon: string;
|
8612
|
+
} | undefined;
|
8613
|
+
name: string;
|
8614
|
+
type: string;
|
8615
|
+
status: import("@db/api").$Enums.Status;
|
8616
|
+
tags: string[];
|
8617
|
+
identifier: string;
|
8618
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
8619
|
+
chainId: number;
|
8620
|
+
tvl: number;
|
8621
|
+
dailyRewards: number;
|
8622
|
+
}[];
|
8623
|
+
};
|
8624
|
+
};
|
8625
|
+
};
|
8626
|
+
};
|
8627
|
+
} & {
|
8628
|
+
opportunities: {
|
8629
|
+
count: {
|
8630
|
+
get: {
|
8631
|
+
body: unknown;
|
8632
|
+
params: {};
|
8633
|
+
query: {
|
8634
|
+
name?: string | undefined;
|
8635
|
+
type?: string | undefined;
|
8636
|
+
status?: string | undefined;
|
8637
|
+
sort?: string | undefined;
|
8638
|
+
tokens?: string | undefined;
|
8639
|
+
items?: number | undefined;
|
8640
|
+
tags?: string | undefined;
|
8641
|
+
identifier?: string | undefined;
|
8642
|
+
page?: number | undefined;
|
8643
|
+
action?: string | undefined;
|
8644
|
+
campaignId?: string | undefined;
|
8645
|
+
creatorAddress?: string | undefined;
|
8646
|
+
chainId?: string | undefined;
|
8647
|
+
mainProtocolId?: string | undefined;
|
8648
|
+
campaigns?: boolean | undefined;
|
8649
|
+
point?: boolean | undefined;
|
8650
|
+
test?: boolean | undefined;
|
8651
|
+
rewardTokenSymbol?: string | undefined;
|
8652
|
+
order?: string | undefined;
|
8653
|
+
minimumTvl?: number | undefined;
|
8654
|
+
};
|
8655
|
+
headers: unknown;
|
8656
|
+
response: {
|
8657
|
+
200: number;
|
8658
|
+
};
|
8659
|
+
};
|
8660
|
+
};
|
8661
|
+
};
|
8662
|
+
} & {
|
8663
|
+
opportunities: {
|
8664
|
+
":id": {
|
8665
|
+
get: {
|
8666
|
+
body: unknown;
|
8667
|
+
params: {
|
8668
|
+
id: string;
|
8669
|
+
};
|
8670
|
+
query: {
|
8671
|
+
point?: boolean | undefined;
|
8672
|
+
test?: boolean | undefined;
|
8673
|
+
};
|
8674
|
+
headers: unknown;
|
8675
|
+
response: {
|
8676
|
+
200: {
|
9487
8677
|
protocol?: {
|
9488
8678
|
id: string;
|
9489
8679
|
name: string;
|
@@ -15024,47 +14214,44 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15024
14214
|
};
|
15025
14215
|
fetch?: RequestInit | undefined;
|
15026
14216
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15027
|
-
200:
|
15028
|
-
|
15029
|
-
|
15030
|
-
name: string;
|
15031
|
-
url: string;
|
15032
|
-
description: string;
|
15033
|
-
tags: string[];
|
15034
|
-
icon: string;
|
15035
|
-
} | null | undefined;
|
15036
|
-
depositUrl?: string | undefined;
|
15037
|
-
explorerAddress?: string | undefined;
|
15038
|
-
aprRecord?: {
|
15039
|
-
timestamp: string | bigint;
|
14217
|
+
200: {
|
14218
|
+
apr: number;
|
14219
|
+
aprRecord: {
|
15040
14220
|
cumulated: number;
|
14221
|
+
timestamp: bigint;
|
15041
14222
|
breakdowns: {
|
15042
14223
|
id: number;
|
15043
|
-
type: "
|
14224
|
+
type: import("@db/api").$Enums.AprType;
|
14225
|
+
uuid: string;
|
15044
14226
|
identifier: string;
|
15045
14227
|
value: number;
|
15046
14228
|
aprRecordId: string;
|
15047
14229
|
}[];
|
15048
|
-
}
|
15049
|
-
tvlRecord
|
14230
|
+
};
|
14231
|
+
tvlRecord: {
|
14232
|
+
id: string;
|
15050
14233
|
total: number;
|
15051
|
-
timestamp:
|
14234
|
+
timestamp: bigint;
|
15052
14235
|
breakdowns: {
|
15053
14236
|
id: number;
|
15054
|
-
type: "
|
14237
|
+
type: import("@db/api").$Enums.TvlType;
|
14238
|
+
uuid: string;
|
15055
14239
|
identifier: string;
|
15056
14240
|
value: number;
|
15057
14241
|
tvlRecordId: string;
|
15058
14242
|
}[];
|
15059
|
-
}
|
15060
|
-
rewardsRecord
|
14243
|
+
};
|
14244
|
+
rewardsRecord: {
|
15061
14245
|
id: string;
|
15062
14246
|
total: number;
|
15063
|
-
timestamp:
|
14247
|
+
timestamp: bigint;
|
15064
14248
|
breakdowns: {
|
15065
14249
|
id: number;
|
14250
|
+
uuid: string;
|
14251
|
+
value: number;
|
14252
|
+
campaignId: string;
|
14253
|
+
dailyRewardsRecordId: string;
|
15066
14254
|
token: {
|
15067
|
-
price?: number | null | undefined;
|
15068
14255
|
symbol: string;
|
15069
14256
|
id: string;
|
15070
14257
|
name: string | null;
|
@@ -15072,21 +14259,90 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15072
14259
|
address: string;
|
15073
14260
|
chainId: number;
|
15074
14261
|
decimals: number;
|
14262
|
+
displaySymbol: string;
|
15075
14263
|
verified: boolean;
|
15076
14264
|
isTest: boolean;
|
14265
|
+
isPoint: boolean;
|
14266
|
+
isNative: boolean;
|
14267
|
+
price: number | null;
|
15077
14268
|
};
|
15078
|
-
|
15079
|
-
campaignId: string;
|
15080
|
-
amount: string | bigint;
|
15081
|
-
dailyRewardsRecordId: string;
|
14269
|
+
amount: bigint;
|
15082
14270
|
}[];
|
15083
|
-
}
|
14271
|
+
};
|
14272
|
+
campaigns: {
|
14273
|
+
params: any;
|
14274
|
+
chain: {
|
14275
|
+
id: number;
|
14276
|
+
name: string;
|
14277
|
+
icon: string;
|
14278
|
+
};
|
14279
|
+
endTimestamp: number;
|
14280
|
+
startTimestamp: number;
|
14281
|
+
rewardToken: {
|
14282
|
+
symbol: string;
|
14283
|
+
id: string;
|
14284
|
+
name: string | null;
|
14285
|
+
icon: string;
|
14286
|
+
address: string;
|
14287
|
+
chainId: number;
|
14288
|
+
decimals: number;
|
14289
|
+
verified: boolean;
|
14290
|
+
isTest: boolean;
|
14291
|
+
isPoint: boolean;
|
14292
|
+
isNative: boolean;
|
14293
|
+
} & {
|
14294
|
+
price?: number | null | undefined;
|
14295
|
+
};
|
14296
|
+
distributionChain: {
|
14297
|
+
id: number;
|
14298
|
+
name: string;
|
14299
|
+
icon: string;
|
14300
|
+
} | undefined;
|
14301
|
+
campaignStatus: {
|
14302
|
+
computedUntil: number;
|
14303
|
+
processingStarted: number;
|
14304
|
+
error: string;
|
14305
|
+
status: import("@db/api").$Enums.RunStatus;
|
14306
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
14307
|
+
campaignId: string;
|
14308
|
+
} | undefined;
|
14309
|
+
creatorAddress: string;
|
14310
|
+
creator: {
|
14311
|
+
tags: string[];
|
14312
|
+
address: string;
|
14313
|
+
creatorId: string | null;
|
14314
|
+
};
|
14315
|
+
createdAt: string;
|
14316
|
+
Opportunity: {
|
14317
|
+
id: string;
|
14318
|
+
name: string;
|
14319
|
+
type: string;
|
14320
|
+
status: import("@db/api").$Enums.Status;
|
14321
|
+
tags: string[];
|
14322
|
+
identifier: string;
|
14323
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
14324
|
+
chainId: number;
|
14325
|
+
depositUrl: string | null;
|
14326
|
+
explorerAddress: string | null;
|
14327
|
+
mainProtocolId: string | null;
|
14328
|
+
tvl: number;
|
14329
|
+
apr: number;
|
14330
|
+
dailyRewards: number;
|
14331
|
+
};
|
14332
|
+
id: string;
|
14333
|
+
type: string;
|
14334
|
+
subType: number | null;
|
14335
|
+
computeChainId: number;
|
14336
|
+
distributionChainId: number;
|
14337
|
+
campaignId: string;
|
14338
|
+
rewardTokenId: string;
|
14339
|
+
amount: string;
|
14340
|
+
opportunityId: string;
|
14341
|
+
}[] | undefined;
|
15084
14342
|
id: string;
|
15085
|
-
|
15086
|
-
|
15087
|
-
|
15088
|
-
tokens: {
|
15089
|
-
price?: number | null | undefined;
|
14343
|
+
depositUrl: string | undefined;
|
14344
|
+
explorerAddress: string | undefined;
|
14345
|
+
tokens: ({
|
15090
14346
|
symbol: string;
|
15091
14347
|
id: string;
|
15092
14348
|
name: string | null;
|
@@ -15096,24 +14352,96 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15096
14352
|
decimals: number;
|
15097
14353
|
verified: boolean;
|
15098
14354
|
isTest: boolean;
|
15099
|
-
|
15100
|
-
|
15101
|
-
|
14355
|
+
isPoint: boolean;
|
14356
|
+
isNative: boolean;
|
14357
|
+
} & {
|
14358
|
+
price?: number | null | undefined;
|
14359
|
+
})[];
|
15102
14360
|
chain: {
|
15103
14361
|
id: number;
|
15104
14362
|
name: string;
|
15105
14363
|
icon: string;
|
15106
14364
|
};
|
15107
|
-
|
14365
|
+
protocol: {
|
14366
|
+
id: string;
|
14367
|
+
name: string;
|
14368
|
+
url: string;
|
14369
|
+
description: string;
|
14370
|
+
tags: string[];
|
14371
|
+
icon: string;
|
14372
|
+
} | undefined;
|
14373
|
+
name: string;
|
14374
|
+
type: string;
|
14375
|
+
status: import("@db/api").$Enums.Status;
|
14376
|
+
tags: string[];
|
14377
|
+
identifier: string;
|
14378
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
15108
14379
|
chainId: number;
|
15109
14380
|
tvl: number;
|
15110
|
-
apr: number;
|
15111
14381
|
dailyRewards: number;
|
15112
|
-
}
|
15113
|
-
}
|
15114
|
-
|
15115
|
-
|
15116
|
-
|
14382
|
+
}[];
|
14383
|
+
}>>;
|
14384
|
+
};
|
14385
|
+
count: {
|
14386
|
+
get: (options: {
|
14387
|
+
headers?: Record<string, unknown> | undefined;
|
14388
|
+
query: {
|
14389
|
+
name?: string | undefined;
|
14390
|
+
type?: string | undefined;
|
14391
|
+
status?: string | undefined;
|
14392
|
+
sort?: string | undefined;
|
14393
|
+
tokens?: string | undefined;
|
14394
|
+
items?: number | undefined;
|
14395
|
+
tags?: string | undefined;
|
14396
|
+
identifier?: string | undefined;
|
14397
|
+
page?: number | undefined;
|
14398
|
+
action?: string | undefined;
|
14399
|
+
campaignId?: string | undefined;
|
14400
|
+
creatorAddress?: string | undefined;
|
14401
|
+
chainId?: string | undefined;
|
14402
|
+
mainProtocolId?: string | undefined;
|
14403
|
+
campaigns?: boolean | undefined;
|
14404
|
+
point?: boolean | undefined;
|
14405
|
+
test?: boolean | undefined;
|
14406
|
+
rewardTokenSymbol?: string | undefined;
|
14407
|
+
order?: string | undefined;
|
14408
|
+
minimumTvl?: number | undefined;
|
14409
|
+
};
|
14410
|
+
fetch?: RequestInit | undefined;
|
14411
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14412
|
+
200: number;
|
14413
|
+
}>>;
|
14414
|
+
};
|
14415
|
+
campaigns: {
|
14416
|
+
get: (options: {
|
14417
|
+
headers?: Record<string, unknown> | undefined;
|
14418
|
+
query: {
|
14419
|
+
type?: string | undefined;
|
14420
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
14421
|
+
items?: number | undefined;
|
14422
|
+
subType?: number | undefined;
|
14423
|
+
page?: number | undefined;
|
14424
|
+
types?: string[] | undefined;
|
14425
|
+
campaignId?: string | undefined;
|
14426
|
+
opportunityId?: string | undefined;
|
14427
|
+
startTimestamp?: string | undefined;
|
14428
|
+
endTimestamp?: string | undefined;
|
14429
|
+
creatorAddress?: string | undefined;
|
14430
|
+
chainId?: number | undefined;
|
14431
|
+
creatorId?: string | undefined;
|
14432
|
+
mainParameter?: string | undefined;
|
14433
|
+
point?: boolean | undefined;
|
14434
|
+
tokenAddress?: string | undefined;
|
14435
|
+
test?: boolean | undefined;
|
14436
|
+
creatorTag?: string | undefined;
|
14437
|
+
distributionChainIds?: number[] | undefined;
|
14438
|
+
tokenSymbol?: string | undefined;
|
14439
|
+
withOpportunity?: boolean | undefined;
|
14440
|
+
createdAfter?: Date | null | undefined;
|
14441
|
+
};
|
14442
|
+
fetch?: RequestInit | undefined;
|
14443
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14444
|
+
200: {
|
15117
14445
|
protocol?: {
|
15118
14446
|
id: string;
|
15119
14447
|
name: string;
|
@@ -15198,69 +14526,45 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15198
14526
|
tvl: number;
|
15199
14527
|
apr: number;
|
15200
14528
|
dailyRewards: number;
|
15201
|
-
|
15202
|
-
|
15203
|
-
|
15204
|
-
|
15205
|
-
|
15206
|
-
url: string;
|
15207
|
-
description: string;
|
15208
|
-
tags: string[];
|
15209
|
-
icon: string;
|
15210
|
-
} | null | undefined;
|
15211
|
-
depositUrl?: string | undefined;
|
15212
|
-
explorerAddress?: string | undefined;
|
15213
|
-
aprRecord?: {
|
15214
|
-
timestamp: string | bigint;
|
15215
|
-
cumulated: number;
|
15216
|
-
breakdowns: {
|
15217
|
-
id: number;
|
15218
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
15219
|
-
identifier: string;
|
15220
|
-
value: number;
|
15221
|
-
aprRecordId: string;
|
15222
|
-
}[];
|
14529
|
+
campaigns: {
|
14530
|
+
creator?: {
|
14531
|
+
tags?: string[] | undefined;
|
14532
|
+
creatorId?: string | null | undefined;
|
14533
|
+
address: string;
|
15223
14534
|
} | undefined;
|
15224
|
-
|
15225
|
-
|
15226
|
-
|
15227
|
-
|
15228
|
-
|
15229
|
-
|
15230
|
-
|
15231
|
-
value: number;
|
15232
|
-
tvlRecordId: string;
|
15233
|
-
}[];
|
14535
|
+
campaignStatus?: {
|
14536
|
+
error?: string | undefined;
|
14537
|
+
details?: any;
|
14538
|
+
status: string;
|
14539
|
+
campaignId: string;
|
14540
|
+
computedUntil: string | number;
|
14541
|
+
processingStarted: string | number;
|
15234
14542
|
} | undefined;
|
15235
|
-
|
15236
|
-
id:
|
15237
|
-
|
15238
|
-
|
15239
|
-
breakdowns: {
|
15240
|
-
id: number;
|
15241
|
-
token: {
|
15242
|
-
price?: number | null | undefined;
|
15243
|
-
symbol: string;
|
15244
|
-
id: string;
|
15245
|
-
name: string | null;
|
15246
|
-
icon: string;
|
15247
|
-
address: string;
|
15248
|
-
chainId: number;
|
15249
|
-
decimals: number;
|
15250
|
-
verified: boolean;
|
15251
|
-
isTest: boolean;
|
15252
|
-
};
|
15253
|
-
value: number;
|
15254
|
-
campaignId: string;
|
15255
|
-
amount: string | bigint;
|
15256
|
-
dailyRewardsRecordId: string;
|
15257
|
-
}[];
|
14543
|
+
distributionChain?: {
|
14544
|
+
id: number;
|
14545
|
+
name: string;
|
14546
|
+
icon: string;
|
15258
14547
|
} | undefined;
|
15259
14548
|
id: string;
|
15260
|
-
name: string;
|
15261
14549
|
type: string;
|
15262
|
-
|
15263
|
-
|
14550
|
+
params: any;
|
14551
|
+
subType: number | null;
|
14552
|
+
chain: {
|
14553
|
+
id: number;
|
14554
|
+
name: string;
|
14555
|
+
icon: string;
|
14556
|
+
};
|
14557
|
+
computeChainId: number;
|
14558
|
+
distributionChainId: number;
|
14559
|
+
campaignId: string;
|
14560
|
+
rewardTokenId: string;
|
14561
|
+
amount: string;
|
14562
|
+
opportunityId: string;
|
14563
|
+
startTimestamp: string | number;
|
14564
|
+
endTimestamp: string | number;
|
14565
|
+
creatorAddress: string;
|
14566
|
+
createdAt: string;
|
14567
|
+
rewardToken: {
|
15264
14568
|
price?: number | null | undefined;
|
15265
14569
|
symbol: string;
|
15266
14570
|
id: string;
|
@@ -15271,407 +14575,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15271
14575
|
decimals: number;
|
15272
14576
|
verified: boolean;
|
15273
14577
|
isTest: boolean;
|
15274
|
-
}[];
|
15275
|
-
tags: string[];
|
15276
|
-
identifier: string;
|
15277
|
-
chain: {
|
15278
|
-
id: number;
|
15279
|
-
name: string;
|
15280
|
-
icon: string;
|
15281
14578
|
};
|
15282
|
-
action: string;
|
15283
|
-
chainId: number;
|
15284
|
-
tvl: number;
|
15285
|
-
apr: number;
|
15286
|
-
dailyRewards: number;
|
15287
|
-
} | null)[];
|
15288
|
-
}) & ({
|
15289
|
-
protocol?: {
|
15290
|
-
id: string;
|
15291
|
-
name: string;
|
15292
|
-
url: string;
|
15293
|
-
description: string;
|
15294
|
-
tags: string[];
|
15295
|
-
icon: string;
|
15296
|
-
} | null | undefined;
|
15297
|
-
depositUrl?: string | undefined;
|
15298
|
-
explorerAddress?: string | undefined;
|
15299
|
-
aprRecord?: {
|
15300
|
-
timestamp: string | bigint;
|
15301
|
-
cumulated: number;
|
15302
|
-
breakdowns: {
|
15303
|
-
id: number;
|
15304
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
15305
|
-
identifier: string;
|
15306
|
-
value: number;
|
15307
|
-
aprRecordId: string;
|
15308
|
-
}[];
|
15309
|
-
} | undefined;
|
15310
|
-
tvlRecord?: {
|
15311
|
-
total: number;
|
15312
|
-
timestamp: string | bigint;
|
15313
|
-
breakdowns: {
|
15314
|
-
id: number;
|
15315
|
-
type: "TOKEN" | "PROTOCOL";
|
15316
|
-
identifier: string;
|
15317
|
-
value: number;
|
15318
|
-
tvlRecordId: string;
|
15319
|
-
}[];
|
15320
|
-
} | undefined;
|
15321
|
-
rewardsRecord?: {
|
15322
|
-
id: string;
|
15323
|
-
total: number;
|
15324
|
-
timestamp: string | bigint;
|
15325
|
-
breakdowns: {
|
15326
|
-
id: number;
|
15327
|
-
token: {
|
15328
|
-
price?: number | null | undefined;
|
15329
|
-
symbol: string;
|
15330
|
-
id: string;
|
15331
|
-
name: string | null;
|
15332
|
-
icon: string;
|
15333
|
-
address: string;
|
15334
|
-
chainId: number;
|
15335
|
-
decimals: number;
|
15336
|
-
verified: boolean;
|
15337
|
-
isTest: boolean;
|
15338
|
-
};
|
15339
|
-
value: number;
|
15340
|
-
campaignId: string;
|
15341
|
-
amount: string | bigint;
|
15342
|
-
dailyRewardsRecordId: string;
|
15343
|
-
}[];
|
15344
|
-
} | undefined;
|
15345
|
-
id: string;
|
15346
|
-
name: string;
|
15347
|
-
type: string;
|
15348
|
-
status: string;
|
15349
|
-
tokens: {
|
15350
|
-
price?: number | null | undefined;
|
15351
|
-
symbol: string;
|
15352
|
-
id: string;
|
15353
|
-
name: string | null;
|
15354
|
-
icon: string;
|
15355
|
-
address: string;
|
15356
|
-
chainId: number;
|
15357
|
-
decimals: number;
|
15358
|
-
verified: boolean;
|
15359
|
-
isTest: boolean;
|
15360
14579
|
}[];
|
15361
|
-
|
15362
|
-
|
15363
|
-
|
15364
|
-
|
15365
|
-
|
15366
|
-
|
15367
|
-
|
15368
|
-
|
15369
|
-
|
15370
|
-
tvl: number;
|
15371
|
-
apr: number;
|
15372
|
-
dailyRewards: number;
|
15373
|
-
} | null)[];
|
15374
|
-
} | {
|
15375
|
-
200: {
|
15376
|
-
200: ({
|
15377
|
-
protocol?: {
|
15378
|
-
id: string;
|
15379
|
-
name: string;
|
15380
|
-
url: string;
|
15381
|
-
description: string;
|
15382
|
-
tags: string[];
|
15383
|
-
icon: string;
|
15384
|
-
} | null | undefined;
|
15385
|
-
depositUrl?: string | undefined;
|
15386
|
-
explorerAddress?: string | undefined;
|
15387
|
-
aprRecord?: {
|
15388
|
-
timestamp: string | bigint;
|
15389
|
-
cumulated: number;
|
15390
|
-
breakdowns: {
|
15391
|
-
id: number;
|
15392
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
15393
|
-
identifier: string;
|
15394
|
-
value: number;
|
15395
|
-
aprRecordId: string;
|
15396
|
-
}[];
|
15397
|
-
} | undefined;
|
15398
|
-
tvlRecord?: {
|
15399
|
-
total: number;
|
15400
|
-
timestamp: string | bigint;
|
15401
|
-
breakdowns: {
|
15402
|
-
id: number;
|
15403
|
-
type: "TOKEN" | "PROTOCOL";
|
15404
|
-
identifier: string;
|
15405
|
-
value: number;
|
15406
|
-
tvlRecordId: string;
|
15407
|
-
}[];
|
15408
|
-
} | undefined;
|
15409
|
-
rewardsRecord?: {
|
15410
|
-
id: string;
|
15411
|
-
total: number;
|
15412
|
-
timestamp: string | bigint;
|
15413
|
-
breakdowns: {
|
15414
|
-
id: number;
|
15415
|
-
token: {
|
15416
|
-
price?: number | null | undefined;
|
15417
|
-
symbol: string;
|
15418
|
-
id: string;
|
15419
|
-
name: string | null;
|
15420
|
-
icon: string;
|
15421
|
-
address: string;
|
15422
|
-
chainId: number;
|
15423
|
-
decimals: number;
|
15424
|
-
verified: boolean;
|
15425
|
-
isTest: boolean;
|
15426
|
-
};
|
15427
|
-
value: number;
|
15428
|
-
campaignId: string;
|
15429
|
-
amount: string | bigint;
|
15430
|
-
dailyRewardsRecordId: string;
|
15431
|
-
}[];
|
15432
|
-
} | undefined;
|
15433
|
-
id: string;
|
15434
|
-
name: string;
|
15435
|
-
type: string;
|
15436
|
-
status: string;
|
15437
|
-
tokens: {
|
15438
|
-
price?: number | null | undefined;
|
15439
|
-
symbol: string;
|
15440
|
-
id: string;
|
15441
|
-
name: string | null;
|
15442
|
-
icon: string;
|
15443
|
-
address: string;
|
15444
|
-
chainId: number;
|
15445
|
-
decimals: number;
|
15446
|
-
verified: boolean;
|
15447
|
-
isTest: boolean;
|
15448
|
-
}[];
|
15449
|
-
tags: string[];
|
15450
|
-
identifier: string;
|
15451
|
-
chain: {
|
15452
|
-
id: number;
|
15453
|
-
name: string;
|
15454
|
-
icon: string;
|
15455
|
-
};
|
15456
|
-
action: string;
|
15457
|
-
chainId: number;
|
15458
|
-
tvl: number;
|
15459
|
-
apr: number;
|
15460
|
-
dailyRewards: number;
|
15461
|
-
} | null)[];
|
14580
|
+
}[];
|
14581
|
+
readonly 404: {
|
14582
|
+
name: string;
|
14583
|
+
message: string;
|
14584
|
+
};
|
14585
|
+
readonly 500: {
|
14586
|
+
info: string;
|
14587
|
+
code: string;
|
14588
|
+
httpCode: number;
|
15462
14589
|
};
|
15463
14590
|
}>>;
|
15464
14591
|
};
|
15465
|
-
|
15466
|
-
|
15467
|
-
|
15468
|
-
query: {
|
15469
|
-
name?: string | undefined;
|
15470
|
-
type?: string | undefined;
|
15471
|
-
status?: string | undefined;
|
15472
|
-
sort?: string | undefined;
|
15473
|
-
tokens?: string | undefined;
|
15474
|
-
items?: number | undefined;
|
15475
|
-
tags?: string | undefined;
|
15476
|
-
identifier?: string | undefined;
|
15477
|
-
page?: number | undefined;
|
15478
|
-
action?: string | undefined;
|
15479
|
-
campaignId?: string | undefined;
|
15480
|
-
creatorAddress?: string | undefined;
|
15481
|
-
chainId?: string | undefined;
|
15482
|
-
mainProtocolId?: string | undefined;
|
15483
|
-
campaigns?: boolean | undefined;
|
15484
|
-
point?: boolean | undefined;
|
15485
|
-
test?: boolean | undefined;
|
15486
|
-
rewardTokenSymbol?: string | undefined;
|
15487
|
-
order?: string | undefined;
|
15488
|
-
minimumTvl?: number | undefined;
|
15489
|
-
};
|
15490
|
-
fetch?: RequestInit | undefined;
|
15491
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15492
|
-
200: number;
|
15493
|
-
}>>;
|
15494
|
-
};
|
15495
|
-
campaigns: {
|
15496
|
-
get: (options: {
|
15497
|
-
headers?: Record<string, unknown> | undefined;
|
15498
|
-
query: {
|
15499
|
-
type?: string | undefined;
|
15500
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
15501
|
-
items?: number | undefined;
|
15502
|
-
subType?: number | undefined;
|
15503
|
-
page?: number | undefined;
|
15504
|
-
types?: string[] | undefined;
|
15505
|
-
campaignId?: string | undefined;
|
15506
|
-
opportunityId?: string | undefined;
|
15507
|
-
startTimestamp?: string | undefined;
|
15508
|
-
endTimestamp?: string | undefined;
|
15509
|
-
creatorAddress?: string | undefined;
|
15510
|
-
chainId?: number | undefined;
|
15511
|
-
creatorId?: string | undefined;
|
15512
|
-
mainParameter?: string | undefined;
|
15513
|
-
point?: boolean | undefined;
|
15514
|
-
tokenAddress?: string | undefined;
|
15515
|
-
test?: boolean | undefined;
|
15516
|
-
creatorTag?: string | undefined;
|
15517
|
-
distributionChainIds?: number[] | undefined;
|
15518
|
-
tokenSymbol?: string | undefined;
|
15519
|
-
withOpportunity?: boolean | undefined;
|
15520
|
-
createdAfter?: Date | null | undefined;
|
15521
|
-
};
|
15522
|
-
fetch?: RequestInit | undefined;
|
15523
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15524
|
-
200: {
|
15525
|
-
protocol?: {
|
15526
|
-
id: string;
|
15527
|
-
name: string;
|
15528
|
-
url: string;
|
15529
|
-
description: string;
|
15530
|
-
tags: string[];
|
15531
|
-
icon: string;
|
15532
|
-
} | null | undefined;
|
15533
|
-
depositUrl?: string | undefined;
|
15534
|
-
explorerAddress?: string | undefined;
|
15535
|
-
aprRecord?: {
|
15536
|
-
timestamp: string | bigint;
|
15537
|
-
cumulated: number;
|
15538
|
-
breakdowns: {
|
15539
|
-
id: number;
|
15540
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
15541
|
-
identifier: string;
|
15542
|
-
value: number;
|
15543
|
-
aprRecordId: string;
|
15544
|
-
}[];
|
15545
|
-
} | undefined;
|
15546
|
-
tvlRecord?: {
|
15547
|
-
total: number;
|
15548
|
-
timestamp: string | bigint;
|
15549
|
-
breakdowns: {
|
15550
|
-
id: number;
|
15551
|
-
type: "TOKEN" | "PROTOCOL";
|
15552
|
-
identifier: string;
|
15553
|
-
value: number;
|
15554
|
-
tvlRecordId: string;
|
15555
|
-
}[];
|
15556
|
-
} | undefined;
|
15557
|
-
rewardsRecord?: {
|
15558
|
-
id: string;
|
15559
|
-
total: number;
|
15560
|
-
timestamp: string | bigint;
|
15561
|
-
breakdowns: {
|
15562
|
-
id: number;
|
15563
|
-
token: {
|
15564
|
-
price?: number | null | undefined;
|
15565
|
-
symbol: string;
|
15566
|
-
id: string;
|
15567
|
-
name: string | null;
|
15568
|
-
icon: string;
|
15569
|
-
address: string;
|
15570
|
-
chainId: number;
|
15571
|
-
decimals: number;
|
15572
|
-
verified: boolean;
|
15573
|
-
isTest: boolean;
|
15574
|
-
};
|
15575
|
-
value: number;
|
15576
|
-
campaignId: string;
|
15577
|
-
amount: string | bigint;
|
15578
|
-
dailyRewardsRecordId: string;
|
15579
|
-
}[];
|
15580
|
-
} | undefined;
|
15581
|
-
id: string;
|
15582
|
-
name: string;
|
15583
|
-
type: string;
|
15584
|
-
status: string;
|
15585
|
-
tokens: {
|
15586
|
-
price?: number | null | undefined;
|
15587
|
-
symbol: string;
|
15588
|
-
id: string;
|
15589
|
-
name: string | null;
|
15590
|
-
icon: string;
|
15591
|
-
address: string;
|
15592
|
-
chainId: number;
|
15593
|
-
decimals: number;
|
15594
|
-
verified: boolean;
|
15595
|
-
isTest: boolean;
|
15596
|
-
}[];
|
15597
|
-
tags: string[];
|
15598
|
-
identifier: string;
|
15599
|
-
chain: {
|
15600
|
-
id: number;
|
15601
|
-
name: string;
|
15602
|
-
icon: string;
|
15603
|
-
};
|
15604
|
-
action: string;
|
15605
|
-
chainId: number;
|
15606
|
-
tvl: number;
|
15607
|
-
apr: number;
|
15608
|
-
dailyRewards: number;
|
15609
|
-
campaigns: {
|
15610
|
-
creator?: {
|
15611
|
-
tags?: string[] | undefined;
|
15612
|
-
creatorId?: string | null | undefined;
|
15613
|
-
address: string;
|
15614
|
-
} | undefined;
|
15615
|
-
campaignStatus?: {
|
15616
|
-
error?: string | undefined;
|
15617
|
-
details?: any;
|
15618
|
-
status: string;
|
15619
|
-
campaignId: string;
|
15620
|
-
computedUntil: string | number;
|
15621
|
-
processingStarted: string | number;
|
15622
|
-
} | undefined;
|
15623
|
-
distributionChain?: {
|
15624
|
-
id: number;
|
15625
|
-
name: string;
|
15626
|
-
icon: string;
|
15627
|
-
} | undefined;
|
15628
|
-
id: string;
|
15629
|
-
type: string;
|
15630
|
-
params: any;
|
15631
|
-
subType: number | null;
|
15632
|
-
chain: {
|
15633
|
-
id: number;
|
15634
|
-
name: string;
|
15635
|
-
icon: string;
|
15636
|
-
};
|
15637
|
-
computeChainId: number;
|
15638
|
-
distributionChainId: number;
|
15639
|
-
campaignId: string;
|
15640
|
-
rewardTokenId: string;
|
15641
|
-
amount: string;
|
15642
|
-
opportunityId: string;
|
15643
|
-
startTimestamp: string | number;
|
15644
|
-
endTimestamp: string | number;
|
15645
|
-
creatorAddress: string;
|
15646
|
-
createdAt: string;
|
15647
|
-
rewardToken: {
|
15648
|
-
price?: number | null | undefined;
|
15649
|
-
symbol: string;
|
15650
|
-
id: string;
|
15651
|
-
name: string | null;
|
15652
|
-
icon: string;
|
15653
|
-
address: string;
|
15654
|
-
chainId: number;
|
15655
|
-
decimals: number;
|
15656
|
-
verified: boolean;
|
15657
|
-
isTest: boolean;
|
15658
|
-
};
|
15659
|
-
}[];
|
15660
|
-
}[];
|
15661
|
-
readonly 404: {
|
15662
|
-
name: string;
|
15663
|
-
message: string;
|
15664
|
-
};
|
15665
|
-
readonly 500: {
|
15666
|
-
info: string;
|
15667
|
-
code: string;
|
15668
|
-
httpCode: number;
|
15669
|
-
};
|
15670
|
-
}>>;
|
15671
|
-
};
|
15672
|
-
aggregate: ((params: {
|
15673
|
-
field: string | number;
|
15674
|
-
}) => {
|
14592
|
+
aggregate: ((params: {
|
14593
|
+
field: string | number;
|
14594
|
+
}) => {
|
15675
14595
|
get: (options: {
|
15676
14596
|
headers?: Record<string, unknown> | undefined;
|
15677
14597
|
query: {
|
@@ -18747,399 +17667,66 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
18747
17667
|
name: string | null;
|
18748
17668
|
icon: string;
|
18749
17669
|
address: string;
|
18750
|
-
chainId: number;
|
18751
|
-
decimals: number;
|
18752
|
-
verified: boolean;
|
18753
|
-
isTest: boolean;
|
18754
|
-
};
|
18755
|
-
value: number;
|
18756
|
-
campaignId: string;
|
18757
|
-
amount: string | bigint;
|
18758
|
-
dailyRewardsRecordId: string;
|
18759
|
-
}[];
|
18760
|
-
} | undefined;
|
18761
|
-
id: string;
|
18762
|
-
name: string;
|
18763
|
-
type: string;
|
18764
|
-
status: string;
|
18765
|
-
tokens: {
|
18766
|
-
price?: number | null | undefined;
|
18767
|
-
symbol: string;
|
18768
|
-
id: string;
|
18769
|
-
name: string | null;
|
18770
|
-
icon: string;
|
18771
|
-
address: string;
|
18772
|
-
chainId: number;
|
18773
|
-
decimals: number;
|
18774
|
-
verified: boolean;
|
18775
|
-
isTest: boolean;
|
18776
|
-
}[];
|
18777
|
-
tags: string[];
|
18778
|
-
identifier: string;
|
18779
|
-
chain: {
|
18780
|
-
id: number;
|
18781
|
-
name: string;
|
18782
|
-
icon: string;
|
18783
|
-
};
|
18784
|
-
action: string;
|
18785
|
-
chainId: number;
|
18786
|
-
tvl: number;
|
18787
|
-
apr: number;
|
18788
|
-
dailyRewards: number;
|
18789
|
-
};
|
18790
|
-
readonly 404: {
|
18791
|
-
name: string;
|
18792
|
-
message: string;
|
18793
|
-
};
|
18794
|
-
readonly 500: {
|
18795
|
-
info: string;
|
18796
|
-
code: string;
|
18797
|
-
httpCode: number;
|
18798
|
-
};
|
18799
|
-
}>>;
|
18800
|
-
campaigns: {
|
18801
|
-
get: (options: {
|
18802
|
-
headers?: Record<string, unknown> | undefined;
|
18803
|
-
query: {
|
18804
|
-
point?: boolean | undefined;
|
18805
|
-
test?: boolean | undefined;
|
18806
|
-
};
|
18807
|
-
fetch?: RequestInit | undefined;
|
18808
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
18809
|
-
200: {
|
18810
|
-
protocol?: {
|
18811
|
-
id: string;
|
18812
|
-
name: string;
|
18813
|
-
url: string;
|
18814
|
-
description: string;
|
18815
|
-
tags: string[];
|
18816
|
-
icon: string;
|
18817
|
-
} | null | undefined;
|
18818
|
-
depositUrl?: string | undefined;
|
18819
|
-
explorerAddress?: string | undefined;
|
18820
|
-
aprRecord?: {
|
18821
|
-
timestamp: string | bigint;
|
18822
|
-
cumulated: number;
|
18823
|
-
breakdowns: {
|
18824
|
-
id: number;
|
18825
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
18826
|
-
identifier: string;
|
18827
|
-
value: number;
|
18828
|
-
aprRecordId: string;
|
18829
|
-
}[];
|
18830
|
-
} | undefined;
|
18831
|
-
tvlRecord?: {
|
18832
|
-
total: number;
|
18833
|
-
timestamp: string | bigint;
|
18834
|
-
breakdowns: {
|
18835
|
-
id: number;
|
18836
|
-
type: "TOKEN" | "PROTOCOL";
|
18837
|
-
identifier: string;
|
18838
|
-
value: number;
|
18839
|
-
tvlRecordId: string;
|
18840
|
-
}[];
|
18841
|
-
} | undefined;
|
18842
|
-
rewardsRecord?: {
|
18843
|
-
id: string;
|
18844
|
-
total: number;
|
18845
|
-
timestamp: string | bigint;
|
18846
|
-
breakdowns: {
|
18847
|
-
id: number;
|
18848
|
-
token: {
|
18849
|
-
price?: number | null | undefined;
|
18850
|
-
symbol: string;
|
18851
|
-
id: string;
|
18852
|
-
name: string | null;
|
18853
|
-
icon: string;
|
18854
|
-
address: string;
|
18855
|
-
chainId: number;
|
18856
|
-
decimals: number;
|
18857
|
-
verified: boolean;
|
18858
|
-
isTest: boolean;
|
18859
|
-
};
|
18860
|
-
value: number;
|
18861
|
-
campaignId: string;
|
18862
|
-
amount: string | bigint;
|
18863
|
-
dailyRewardsRecordId: string;
|
18864
|
-
}[];
|
18865
|
-
} | undefined;
|
18866
|
-
id: string;
|
18867
|
-
name: string;
|
18868
|
-
type: string;
|
18869
|
-
status: string;
|
18870
|
-
tokens: {
|
18871
|
-
price?: number | null | undefined;
|
18872
|
-
symbol: string;
|
18873
|
-
id: string;
|
18874
|
-
name: string | null;
|
18875
|
-
icon: string;
|
18876
|
-
address: string;
|
18877
|
-
chainId: number;
|
18878
|
-
decimals: number;
|
18879
|
-
verified: boolean;
|
18880
|
-
isTest: boolean;
|
18881
|
-
}[];
|
18882
|
-
tags: string[];
|
18883
|
-
identifier: string;
|
18884
|
-
chain: {
|
18885
|
-
id: number;
|
18886
|
-
name: string;
|
18887
|
-
icon: string;
|
18888
|
-
};
|
18889
|
-
action: string;
|
18890
|
-
chainId: number;
|
18891
|
-
tvl: number;
|
18892
|
-
apr: number;
|
18893
|
-
dailyRewards: number;
|
18894
|
-
campaigns: {
|
18895
|
-
creator?: {
|
18896
|
-
tags?: string[] | undefined;
|
18897
|
-
creatorId?: string | null | undefined;
|
18898
|
-
address: string;
|
18899
|
-
} | undefined;
|
18900
|
-
campaignStatus?: {
|
18901
|
-
error?: string | undefined;
|
18902
|
-
details?: any;
|
18903
|
-
status: string;
|
18904
|
-
campaignId: string;
|
18905
|
-
computedUntil: string | number;
|
18906
|
-
processingStarted: string | number;
|
18907
|
-
} | undefined;
|
18908
|
-
distributionChain?: {
|
18909
|
-
id: number;
|
18910
|
-
name: string;
|
18911
|
-
icon: string;
|
18912
|
-
} | undefined;
|
18913
|
-
id: string;
|
18914
|
-
type: string;
|
18915
|
-
params: any;
|
18916
|
-
subType: number | null;
|
18917
|
-
chain: {
|
18918
|
-
id: number;
|
18919
|
-
name: string;
|
18920
|
-
icon: string;
|
18921
|
-
};
|
18922
|
-
computeChainId: number;
|
18923
|
-
distributionChainId: number;
|
18924
|
-
campaignId: string;
|
18925
|
-
rewardTokenId: string;
|
18926
|
-
amount: string;
|
18927
|
-
opportunityId: string;
|
18928
|
-
startTimestamp: string | number;
|
18929
|
-
endTimestamp: string | number;
|
18930
|
-
creatorAddress: string;
|
18931
|
-
createdAt: string;
|
18932
|
-
rewardToken: {
|
18933
|
-
price?: number | null | undefined;
|
18934
|
-
symbol: string;
|
18935
|
-
id: string;
|
18936
|
-
name: string | null;
|
18937
|
-
icon: string;
|
18938
|
-
address: string;
|
18939
|
-
chainId: number;
|
18940
|
-
decimals: number;
|
18941
|
-
verified: boolean;
|
18942
|
-
isTest: boolean;
|
18943
|
-
};
|
18944
|
-
}[];
|
18945
|
-
};
|
18946
|
-
readonly 404: {
|
18947
|
-
name: string;
|
18948
|
-
message: string;
|
18949
|
-
};
|
18950
|
-
readonly 500: {
|
18951
|
-
info: string;
|
18952
|
-
code: string;
|
18953
|
-
httpCode: number;
|
18954
|
-
};
|
18955
|
-
}>>;
|
18956
|
-
};
|
18957
|
-
patch: (body: {
|
18958
|
-
name?: string | undefined;
|
18959
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
18960
|
-
tags?: string[] | undefined;
|
18961
|
-
}, options: {
|
18962
|
-
headers: {
|
18963
|
-
authorization: string;
|
18964
|
-
};
|
18965
|
-
query?: Record<string, unknown> | undefined;
|
18966
|
-
fetch?: RequestInit | undefined;
|
18967
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
18968
|
-
200: {
|
18969
|
-
id: string;
|
18970
|
-
name: string;
|
18971
|
-
type: string;
|
18972
|
-
status: import("@db/api").$Enums.Status;
|
18973
|
-
tags: string[];
|
18974
|
-
identifier: string;
|
18975
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
18976
|
-
chainId: number;
|
18977
|
-
depositUrl: string | null;
|
18978
|
-
explorerAddress: string | null;
|
18979
|
-
mainProtocolId: string | null;
|
18980
|
-
tvl: number;
|
18981
|
-
apr: number;
|
18982
|
-
dailyRewards: number;
|
18983
|
-
};
|
18984
|
-
}>>;
|
18985
|
-
}) & {
|
18986
|
-
index: {
|
18987
|
-
post: (body: {
|
18988
|
-
name?: string | undefined;
|
18989
|
-
tags?: string[] | undefined;
|
18990
|
-
depositUrl?: string | undefined;
|
18991
|
-
explorerAddress?: string | undefined;
|
18992
|
-
protocols?: string[] | undefined;
|
18993
|
-
mainProtocol?: string | undefined;
|
18994
|
-
type: string;
|
18995
|
-
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
18996
|
-
tokens: {
|
18997
|
-
address: string;
|
18998
|
-
chainId: number;
|
18999
|
-
}[];
|
19000
|
-
identifier: string;
|
19001
|
-
action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
|
19002
|
-
chainId: number;
|
19003
|
-
}, options: {
|
19004
|
-
headers: {
|
19005
|
-
authorization: string;
|
19006
|
-
};
|
19007
|
-
query?: Record<string, unknown> | undefined;
|
19008
|
-
fetch?: RequestInit | undefined;
|
19009
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
19010
|
-
200: {
|
19011
|
-
id: string;
|
19012
|
-
name: string;
|
19013
|
-
type: string;
|
19014
|
-
status: import("@db/api").$Enums.Status;
|
19015
|
-
tags: string[];
|
19016
|
-
identifier: string;
|
19017
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
19018
|
-
chainId: number;
|
19019
|
-
depositUrl: string | null;
|
19020
|
-
explorerAddress: string | null;
|
19021
|
-
mainProtocolId: string | null;
|
19022
|
-
tvl: number;
|
19023
|
-
apr: number;
|
19024
|
-
dailyRewards: number;
|
19025
|
-
} | null;
|
19026
|
-
}>>;
|
19027
|
-
get: (options: {
|
19028
|
-
headers?: Record<string, unknown> | undefined;
|
19029
|
-
query: {
|
19030
|
-
name?: string | undefined;
|
19031
|
-
type?: string | undefined;
|
19032
|
-
status?: string | undefined;
|
19033
|
-
sort?: string | undefined;
|
19034
|
-
tokens?: string | undefined;
|
19035
|
-
items?: number | undefined;
|
19036
|
-
tags?: string | undefined;
|
19037
|
-
identifier?: string | undefined;
|
19038
|
-
page?: number | undefined;
|
19039
|
-
action?: string | undefined;
|
19040
|
-
campaignId?: string | undefined;
|
19041
|
-
creatorAddress?: string | undefined;
|
19042
|
-
chainId?: string | undefined;
|
19043
|
-
mainProtocolId?: string | undefined;
|
19044
|
-
campaigns?: boolean | undefined;
|
19045
|
-
point?: boolean | undefined;
|
19046
|
-
test?: boolean | undefined;
|
19047
|
-
rewardTokenSymbol?: string | undefined;
|
19048
|
-
order?: string | undefined;
|
19049
|
-
minimumTvl?: number | undefined;
|
19050
|
-
};
|
19051
|
-
fetch?: RequestInit | undefined;
|
19052
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
19053
|
-
200: ({
|
19054
|
-
protocol?: {
|
19055
|
-
id: string;
|
19056
|
-
name: string;
|
19057
|
-
url: string;
|
19058
|
-
description: string;
|
19059
|
-
tags: string[];
|
19060
|
-
icon: string;
|
19061
|
-
} | null | undefined;
|
19062
|
-
depositUrl?: string | undefined;
|
19063
|
-
explorerAddress?: string | undefined;
|
19064
|
-
aprRecord?: {
|
19065
|
-
timestamp: string | bigint;
|
19066
|
-
cumulated: number;
|
19067
|
-
breakdowns: {
|
19068
|
-
id: number;
|
19069
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
19070
|
-
identifier: string;
|
19071
|
-
value: number;
|
19072
|
-
aprRecordId: string;
|
19073
|
-
}[];
|
19074
|
-
} | undefined;
|
19075
|
-
tvlRecord?: {
|
19076
|
-
total: number;
|
19077
|
-
timestamp: string | bigint;
|
19078
|
-
breakdowns: {
|
19079
|
-
id: number;
|
19080
|
-
type: "TOKEN" | "PROTOCOL";
|
19081
|
-
identifier: string;
|
19082
|
-
value: number;
|
19083
|
-
tvlRecordId: string;
|
19084
|
-
}[];
|
19085
|
-
} | undefined;
|
19086
|
-
rewardsRecord?: {
|
19087
|
-
id: string;
|
19088
|
-
total: number;
|
19089
|
-
timestamp: string | bigint;
|
19090
|
-
breakdowns: {
|
19091
|
-
id: number;
|
19092
|
-
token: {
|
19093
|
-
price?: number | null | undefined;
|
19094
|
-
symbol: string;
|
19095
|
-
id: string;
|
19096
|
-
name: string | null;
|
19097
|
-
icon: string;
|
19098
|
-
address: string;
|
19099
|
-
chainId: number;
|
19100
|
-
decimals: number;
|
19101
|
-
verified: boolean;
|
19102
|
-
isTest: boolean;
|
19103
|
-
};
|
19104
|
-
value: number;
|
19105
|
-
campaignId: string;
|
19106
|
-
amount: string | bigint;
|
19107
|
-
dailyRewardsRecordId: string;
|
19108
|
-
}[];
|
19109
|
-
} | undefined;
|
19110
|
-
id: string;
|
19111
|
-
name: string;
|
19112
|
-
type: string;
|
19113
|
-
status: string;
|
19114
|
-
tokens: {
|
19115
|
-
price?: number | null | undefined;
|
19116
|
-
symbol: string;
|
19117
|
-
id: string;
|
19118
|
-
name: string | null;
|
19119
|
-
icon: string;
|
19120
|
-
address: string;
|
19121
|
-
chainId: number;
|
19122
|
-
decimals: number;
|
19123
|
-
verified: boolean;
|
19124
|
-
isTest: boolean;
|
17670
|
+
chainId: number;
|
17671
|
+
decimals: number;
|
17672
|
+
verified: boolean;
|
17673
|
+
isTest: boolean;
|
17674
|
+
};
|
17675
|
+
value: number;
|
17676
|
+
campaignId: string;
|
17677
|
+
amount: string | bigint;
|
17678
|
+
dailyRewardsRecordId: string;
|
19125
17679
|
}[];
|
19126
|
-
|
19127
|
-
|
19128
|
-
|
19129
|
-
|
19130
|
-
|
19131
|
-
|
19132
|
-
|
19133
|
-
|
17680
|
+
} | undefined;
|
17681
|
+
id: string;
|
17682
|
+
name: string;
|
17683
|
+
type: string;
|
17684
|
+
status: string;
|
17685
|
+
tokens: {
|
17686
|
+
price?: number | null | undefined;
|
17687
|
+
symbol: string;
|
17688
|
+
id: string;
|
17689
|
+
name: string | null;
|
17690
|
+
icon: string;
|
17691
|
+
address: string;
|
19134
17692
|
chainId: number;
|
19135
|
-
|
19136
|
-
|
19137
|
-
|
19138
|
-
}
|
19139
|
-
|
19140
|
-
|
19141
|
-
|
19142
|
-
|
17693
|
+
decimals: number;
|
17694
|
+
verified: boolean;
|
17695
|
+
isTest: boolean;
|
17696
|
+
}[];
|
17697
|
+
tags: string[];
|
17698
|
+
identifier: string;
|
17699
|
+
chain: {
|
17700
|
+
id: number;
|
17701
|
+
name: string;
|
17702
|
+
icon: string;
|
17703
|
+
};
|
17704
|
+
action: string;
|
17705
|
+
chainId: number;
|
17706
|
+
tvl: number;
|
17707
|
+
apr: number;
|
17708
|
+
dailyRewards: number;
|
17709
|
+
};
|
17710
|
+
readonly 404: {
|
17711
|
+
name: string;
|
17712
|
+
message: string;
|
17713
|
+
};
|
17714
|
+
readonly 500: {
|
17715
|
+
info: string;
|
17716
|
+
code: string;
|
17717
|
+
httpCode: number;
|
17718
|
+
};
|
17719
|
+
}>>;
|
17720
|
+
campaigns: {
|
17721
|
+
get: (options: {
|
17722
|
+
headers?: Record<string, unknown> | undefined;
|
17723
|
+
query: {
|
17724
|
+
point?: boolean | undefined;
|
17725
|
+
test?: boolean | undefined;
|
17726
|
+
};
|
17727
|
+
fetch?: RequestInit | undefined;
|
17728
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17729
|
+
200: {
|
19143
17730
|
protocol?: {
|
19144
17731
|
id: string;
|
19145
17732
|
name: string;
|
@@ -19224,69 +17811,45 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
19224
17811
|
tvl: number;
|
19225
17812
|
apr: number;
|
19226
17813
|
dailyRewards: number;
|
19227
|
-
|
19228
|
-
|
19229
|
-
|
19230
|
-
|
19231
|
-
|
19232
|
-
url: string;
|
19233
|
-
description: string;
|
19234
|
-
tags: string[];
|
19235
|
-
icon: string;
|
19236
|
-
} | null | undefined;
|
19237
|
-
depositUrl?: string | undefined;
|
19238
|
-
explorerAddress?: string | undefined;
|
19239
|
-
aprRecord?: {
|
19240
|
-
timestamp: string | bigint;
|
19241
|
-
cumulated: number;
|
19242
|
-
breakdowns: {
|
19243
|
-
id: number;
|
19244
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
19245
|
-
identifier: string;
|
19246
|
-
value: number;
|
19247
|
-
aprRecordId: string;
|
19248
|
-
}[];
|
17814
|
+
campaigns: {
|
17815
|
+
creator?: {
|
17816
|
+
tags?: string[] | undefined;
|
17817
|
+
creatorId?: string | null | undefined;
|
17818
|
+
address: string;
|
19249
17819
|
} | undefined;
|
19250
|
-
|
19251
|
-
|
19252
|
-
|
19253
|
-
|
19254
|
-
|
19255
|
-
|
19256
|
-
|
19257
|
-
value: number;
|
19258
|
-
tvlRecordId: string;
|
19259
|
-
}[];
|
17820
|
+
campaignStatus?: {
|
17821
|
+
error?: string | undefined;
|
17822
|
+
details?: any;
|
17823
|
+
status: string;
|
17824
|
+
campaignId: string;
|
17825
|
+
computedUntil: string | number;
|
17826
|
+
processingStarted: string | number;
|
19260
17827
|
} | undefined;
|
19261
|
-
|
19262
|
-
id:
|
19263
|
-
|
19264
|
-
|
19265
|
-
breakdowns: {
|
19266
|
-
id: number;
|
19267
|
-
token: {
|
19268
|
-
price?: number | null | undefined;
|
19269
|
-
symbol: string;
|
19270
|
-
id: string;
|
19271
|
-
name: string | null;
|
19272
|
-
icon: string;
|
19273
|
-
address: string;
|
19274
|
-
chainId: number;
|
19275
|
-
decimals: number;
|
19276
|
-
verified: boolean;
|
19277
|
-
isTest: boolean;
|
19278
|
-
};
|
19279
|
-
value: number;
|
19280
|
-
campaignId: string;
|
19281
|
-
amount: string | bigint;
|
19282
|
-
dailyRewardsRecordId: string;
|
19283
|
-
}[];
|
17828
|
+
distributionChain?: {
|
17829
|
+
id: number;
|
17830
|
+
name: string;
|
17831
|
+
icon: string;
|
19284
17832
|
} | undefined;
|
19285
17833
|
id: string;
|
19286
|
-
name: string;
|
19287
17834
|
type: string;
|
19288
|
-
|
19289
|
-
|
17835
|
+
params: any;
|
17836
|
+
subType: number | null;
|
17837
|
+
chain: {
|
17838
|
+
id: number;
|
17839
|
+
name: string;
|
17840
|
+
icon: string;
|
17841
|
+
};
|
17842
|
+
computeChainId: number;
|
17843
|
+
distributionChainId: number;
|
17844
|
+
campaignId: string;
|
17845
|
+
rewardTokenId: string;
|
17846
|
+
amount: string;
|
17847
|
+
opportunityId: string;
|
17848
|
+
startTimestamp: string | number;
|
17849
|
+
endTimestamp: string | number;
|
17850
|
+
creatorAddress: string;
|
17851
|
+
createdAt: string;
|
17852
|
+
rewardToken: {
|
19290
17853
|
price?: number | null | undefined;
|
19291
17854
|
symbol: string;
|
19292
17855
|
id: string;
|
@@ -19297,61 +17860,154 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
19297
17860
|
decimals: number;
|
19298
17861
|
verified: boolean;
|
19299
17862
|
isTest: boolean;
|
19300
|
-
}[];
|
19301
|
-
tags: string[];
|
19302
|
-
identifier: string;
|
19303
|
-
chain: {
|
19304
|
-
id: number;
|
19305
|
-
name: string;
|
19306
|
-
icon: string;
|
19307
17863
|
};
|
19308
|
-
|
19309
|
-
|
19310
|
-
|
19311
|
-
|
19312
|
-
|
19313
|
-
|
19314
|
-
|
19315
|
-
|
19316
|
-
|
19317
|
-
|
19318
|
-
|
19319
|
-
|
19320
|
-
|
19321
|
-
|
19322
|
-
|
19323
|
-
|
19324
|
-
|
19325
|
-
|
19326
|
-
|
17864
|
+
}[];
|
17865
|
+
};
|
17866
|
+
readonly 404: {
|
17867
|
+
name: string;
|
17868
|
+
message: string;
|
17869
|
+
};
|
17870
|
+
readonly 500: {
|
17871
|
+
info: string;
|
17872
|
+
code: string;
|
17873
|
+
httpCode: number;
|
17874
|
+
};
|
17875
|
+
}>>;
|
17876
|
+
};
|
17877
|
+
patch: (body: {
|
17878
|
+
name?: string | undefined;
|
17879
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
17880
|
+
tags?: string[] | undefined;
|
17881
|
+
}, options: {
|
17882
|
+
headers: {
|
17883
|
+
authorization: string;
|
17884
|
+
};
|
17885
|
+
query?: Record<string, unknown> | undefined;
|
17886
|
+
fetch?: RequestInit | undefined;
|
17887
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17888
|
+
200: {
|
17889
|
+
id: string;
|
17890
|
+
name: string;
|
17891
|
+
type: string;
|
17892
|
+
status: import("@db/api").$Enums.Status;
|
17893
|
+
tags: string[];
|
17894
|
+
identifier: string;
|
17895
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17896
|
+
chainId: number;
|
17897
|
+
depositUrl: string | null;
|
17898
|
+
explorerAddress: string | null;
|
17899
|
+
mainProtocolId: string | null;
|
17900
|
+
tvl: number;
|
17901
|
+
apr: number;
|
17902
|
+
dailyRewards: number;
|
17903
|
+
};
|
17904
|
+
}>>;
|
17905
|
+
}) & {
|
17906
|
+
index: {
|
17907
|
+
post: (body: {
|
17908
|
+
name?: string | undefined;
|
17909
|
+
tags?: string[] | undefined;
|
17910
|
+
depositUrl?: string | undefined;
|
17911
|
+
explorerAddress?: string | undefined;
|
17912
|
+
protocols?: string[] | undefined;
|
17913
|
+
mainProtocol?: string | undefined;
|
17914
|
+
type: string;
|
17915
|
+
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
17916
|
+
tokens: {
|
17917
|
+
address: string;
|
17918
|
+
chainId: number;
|
17919
|
+
}[];
|
17920
|
+
identifier: string;
|
17921
|
+
action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
|
17922
|
+
chainId: number;
|
17923
|
+
}, options: {
|
17924
|
+
headers: {
|
17925
|
+
authorization: string;
|
17926
|
+
};
|
17927
|
+
query?: Record<string, unknown> | undefined;
|
17928
|
+
fetch?: RequestInit | undefined;
|
17929
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17930
|
+
200: {
|
17931
|
+
id: string;
|
17932
|
+
name: string;
|
17933
|
+
type: string;
|
17934
|
+
status: import("@db/api").$Enums.Status;
|
17935
|
+
tags: string[];
|
17936
|
+
identifier: string;
|
17937
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17938
|
+
chainId: number;
|
17939
|
+
depositUrl: string | null;
|
17940
|
+
explorerAddress: string | null;
|
17941
|
+
mainProtocolId: string | null;
|
17942
|
+
tvl: number;
|
17943
|
+
apr: number;
|
17944
|
+
dailyRewards: number;
|
17945
|
+
} | null;
|
17946
|
+
}>>;
|
17947
|
+
get: (options: {
|
17948
|
+
headers?: Record<string, unknown> | undefined;
|
17949
|
+
query: {
|
17950
|
+
name?: string | undefined;
|
17951
|
+
type?: string | undefined;
|
17952
|
+
status?: string | undefined;
|
17953
|
+
sort?: string | undefined;
|
17954
|
+
tokens?: string | undefined;
|
17955
|
+
items?: number | undefined;
|
17956
|
+
tags?: string | undefined;
|
17957
|
+
identifier?: string | undefined;
|
17958
|
+
page?: number | undefined;
|
17959
|
+
action?: string | undefined;
|
17960
|
+
campaignId?: string | undefined;
|
17961
|
+
creatorAddress?: string | undefined;
|
17962
|
+
chainId?: string | undefined;
|
17963
|
+
mainProtocolId?: string | undefined;
|
17964
|
+
campaigns?: boolean | undefined;
|
17965
|
+
point?: boolean | undefined;
|
17966
|
+
test?: boolean | undefined;
|
17967
|
+
rewardTokenSymbol?: string | undefined;
|
17968
|
+
order?: string | undefined;
|
17969
|
+
minimumTvl?: number | undefined;
|
17970
|
+
};
|
17971
|
+
fetch?: RequestInit | undefined;
|
17972
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17973
|
+
200: {
|
17974
|
+
apr: number;
|
17975
|
+
aprRecord: {
|
19327
17976
|
cumulated: number;
|
17977
|
+
timestamp: bigint;
|
19328
17978
|
breakdowns: {
|
19329
17979
|
id: number;
|
19330
|
-
type: "
|
17980
|
+
type: import("@db/api").$Enums.AprType;
|
17981
|
+
uuid: string;
|
19331
17982
|
identifier: string;
|
19332
17983
|
value: number;
|
19333
17984
|
aprRecordId: string;
|
19334
17985
|
}[];
|
19335
|
-
}
|
19336
|
-
tvlRecord
|
17986
|
+
};
|
17987
|
+
tvlRecord: {
|
17988
|
+
id: string;
|
19337
17989
|
total: number;
|
19338
|
-
timestamp:
|
17990
|
+
timestamp: bigint;
|
19339
17991
|
breakdowns: {
|
19340
17992
|
id: number;
|
19341
|
-
type: "
|
17993
|
+
type: import("@db/api").$Enums.TvlType;
|
17994
|
+
uuid: string;
|
19342
17995
|
identifier: string;
|
19343
17996
|
value: number;
|
19344
17997
|
tvlRecordId: string;
|
19345
17998
|
}[];
|
19346
|
-
}
|
19347
|
-
rewardsRecord
|
17999
|
+
};
|
18000
|
+
rewardsRecord: {
|
19348
18001
|
id: string;
|
19349
18002
|
total: number;
|
19350
|
-
timestamp:
|
18003
|
+
timestamp: bigint;
|
19351
18004
|
breakdowns: {
|
19352
18005
|
id: number;
|
18006
|
+
uuid: string;
|
18007
|
+
value: number;
|
18008
|
+
campaignId: string;
|
18009
|
+
dailyRewardsRecordId: string;
|
19353
18010
|
token: {
|
19354
|
-
price?: number | null | undefined;
|
19355
18011
|
symbol: string;
|
19356
18012
|
id: string;
|
19357
18013
|
name: string | null;
|
@@ -19359,21 +18015,90 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
19359
18015
|
address: string;
|
19360
18016
|
chainId: number;
|
19361
18017
|
decimals: number;
|
18018
|
+
displaySymbol: string;
|
19362
18019
|
verified: boolean;
|
19363
18020
|
isTest: boolean;
|
18021
|
+
isPoint: boolean;
|
18022
|
+
isNative: boolean;
|
18023
|
+
price: number | null;
|
19364
18024
|
};
|
19365
|
-
|
19366
|
-
campaignId: string;
|
19367
|
-
amount: string | bigint;
|
19368
|
-
dailyRewardsRecordId: string;
|
18025
|
+
amount: bigint;
|
19369
18026
|
}[];
|
19370
|
-
}
|
18027
|
+
};
|
18028
|
+
campaigns: {
|
18029
|
+
params: any;
|
18030
|
+
chain: {
|
18031
|
+
id: number;
|
18032
|
+
name: string;
|
18033
|
+
icon: string;
|
18034
|
+
};
|
18035
|
+
endTimestamp: number;
|
18036
|
+
startTimestamp: number;
|
18037
|
+
rewardToken: {
|
18038
|
+
symbol: string;
|
18039
|
+
id: string;
|
18040
|
+
name: string | null;
|
18041
|
+
icon: string;
|
18042
|
+
address: string;
|
18043
|
+
chainId: number;
|
18044
|
+
decimals: number;
|
18045
|
+
verified: boolean;
|
18046
|
+
isTest: boolean;
|
18047
|
+
isPoint: boolean;
|
18048
|
+
isNative: boolean;
|
18049
|
+
} & {
|
18050
|
+
price?: number | null | undefined;
|
18051
|
+
};
|
18052
|
+
distributionChain: {
|
18053
|
+
id: number;
|
18054
|
+
name: string;
|
18055
|
+
icon: string;
|
18056
|
+
} | undefined;
|
18057
|
+
campaignStatus: {
|
18058
|
+
computedUntil: number;
|
18059
|
+
processingStarted: number;
|
18060
|
+
error: string;
|
18061
|
+
status: import("@db/api").$Enums.RunStatus;
|
18062
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
18063
|
+
campaignId: string;
|
18064
|
+
} | undefined;
|
18065
|
+
creatorAddress: string;
|
18066
|
+
creator: {
|
18067
|
+
tags: string[];
|
18068
|
+
address: string;
|
18069
|
+
creatorId: string | null;
|
18070
|
+
};
|
18071
|
+
createdAt: string;
|
18072
|
+
Opportunity: {
|
18073
|
+
id: string;
|
18074
|
+
name: string;
|
18075
|
+
type: string;
|
18076
|
+
status: import("@db/api").$Enums.Status;
|
18077
|
+
tags: string[];
|
18078
|
+
identifier: string;
|
18079
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
18080
|
+
chainId: number;
|
18081
|
+
depositUrl: string | null;
|
18082
|
+
explorerAddress: string | null;
|
18083
|
+
mainProtocolId: string | null;
|
18084
|
+
tvl: number;
|
18085
|
+
apr: number;
|
18086
|
+
dailyRewards: number;
|
18087
|
+
};
|
18088
|
+
id: string;
|
18089
|
+
type: string;
|
18090
|
+
subType: number | null;
|
18091
|
+
computeChainId: number;
|
18092
|
+
distributionChainId: number;
|
18093
|
+
campaignId: string;
|
18094
|
+
rewardTokenId: string;
|
18095
|
+
amount: string;
|
18096
|
+
opportunityId: string;
|
18097
|
+
}[] | undefined;
|
19371
18098
|
id: string;
|
19372
|
-
|
19373
|
-
|
19374
|
-
|
19375
|
-
tokens: {
|
19376
|
-
price?: number | null | undefined;
|
18099
|
+
depositUrl: string | undefined;
|
18100
|
+
explorerAddress: string | undefined;
|
18101
|
+
tokens: ({
|
19377
18102
|
symbol: string;
|
19378
18103
|
id: string;
|
19379
18104
|
name: string | null;
|
@@ -19383,109 +18108,34 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
19383
18108
|
decimals: number;
|
19384
18109
|
verified: boolean;
|
19385
18110
|
isTest: boolean;
|
19386
|
-
|
19387
|
-
|
19388
|
-
|
18111
|
+
isPoint: boolean;
|
18112
|
+
isNative: boolean;
|
18113
|
+
} & {
|
18114
|
+
price?: number | null | undefined;
|
18115
|
+
})[];
|
19389
18116
|
chain: {
|
19390
18117
|
id: number;
|
19391
18118
|
name: string;
|
19392
18119
|
icon: string;
|
19393
18120
|
};
|
19394
|
-
|
19395
|
-
chainId: number;
|
19396
|
-
tvl: number;
|
19397
|
-
apr: number;
|
19398
|
-
dailyRewards: number;
|
19399
|
-
} | null)[];
|
19400
|
-
} | {
|
19401
|
-
200: {
|
19402
|
-
200: ({
|
19403
|
-
protocol?: {
|
19404
|
-
id: string;
|
19405
|
-
name: string;
|
19406
|
-
url: string;
|
19407
|
-
description: string;
|
19408
|
-
tags: string[];
|
19409
|
-
icon: string;
|
19410
|
-
} | null | undefined;
|
19411
|
-
depositUrl?: string | undefined;
|
19412
|
-
explorerAddress?: string | undefined;
|
19413
|
-
aprRecord?: {
|
19414
|
-
timestamp: string | bigint;
|
19415
|
-
cumulated: number;
|
19416
|
-
breakdowns: {
|
19417
|
-
id: number;
|
19418
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
19419
|
-
identifier: string;
|
19420
|
-
value: number;
|
19421
|
-
aprRecordId: string;
|
19422
|
-
}[];
|
19423
|
-
} | undefined;
|
19424
|
-
tvlRecord?: {
|
19425
|
-
total: number;
|
19426
|
-
timestamp: string | bigint;
|
19427
|
-
breakdowns: {
|
19428
|
-
id: number;
|
19429
|
-
type: "TOKEN" | "PROTOCOL";
|
19430
|
-
identifier: string;
|
19431
|
-
value: number;
|
19432
|
-
tvlRecordId: string;
|
19433
|
-
}[];
|
19434
|
-
} | undefined;
|
19435
|
-
rewardsRecord?: {
|
19436
|
-
id: string;
|
19437
|
-
total: number;
|
19438
|
-
timestamp: string | bigint;
|
19439
|
-
breakdowns: {
|
19440
|
-
id: number;
|
19441
|
-
token: {
|
19442
|
-
price?: number | null | undefined;
|
19443
|
-
symbol: string;
|
19444
|
-
id: string;
|
19445
|
-
name: string | null;
|
19446
|
-
icon: string;
|
19447
|
-
address: string;
|
19448
|
-
chainId: number;
|
19449
|
-
decimals: number;
|
19450
|
-
verified: boolean;
|
19451
|
-
isTest: boolean;
|
19452
|
-
};
|
19453
|
-
value: number;
|
19454
|
-
campaignId: string;
|
19455
|
-
amount: string | bigint;
|
19456
|
-
dailyRewardsRecordId: string;
|
19457
|
-
}[];
|
19458
|
-
} | undefined;
|
18121
|
+
protocol: {
|
19459
18122
|
id: string;
|
19460
18123
|
name: string;
|
19461
|
-
|
19462
|
-
|
19463
|
-
tokens: {
|
19464
|
-
price?: number | null | undefined;
|
19465
|
-
symbol: string;
|
19466
|
-
id: string;
|
19467
|
-
name: string | null;
|
19468
|
-
icon: string;
|
19469
|
-
address: string;
|
19470
|
-
chainId: number;
|
19471
|
-
decimals: number;
|
19472
|
-
verified: boolean;
|
19473
|
-
isTest: boolean;
|
19474
|
-
}[];
|
18124
|
+
url: string;
|
18125
|
+
description: string;
|
19475
18126
|
tags: string[];
|
19476
|
-
|
19477
|
-
|
19478
|
-
|
19479
|
-
|
19480
|
-
|
19481
|
-
|
19482
|
-
|
19483
|
-
|
19484
|
-
|
19485
|
-
|
19486
|
-
|
19487
|
-
|
19488
|
-
};
|
18127
|
+
icon: string;
|
18128
|
+
} | undefined;
|
18129
|
+
name: string;
|
18130
|
+
type: string;
|
18131
|
+
status: import("@db/api").$Enums.Status;
|
18132
|
+
tags: string[];
|
18133
|
+
identifier: string;
|
18134
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
18135
|
+
chainId: number;
|
18136
|
+
tvl: number;
|
18137
|
+
dailyRewards: number;
|
18138
|
+
}[];
|
19489
18139
|
}>>;
|
19490
18140
|
};
|
19491
18141
|
count: {
|