@merkl/api 0.10.238 → 0.10.239
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/eden/index.d.ts +811 -1840
- package/dist/src/index.d.ts +28 -371
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +28 -371
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/router.d.ts +28 -371
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -413,45 +413,40 @@ declare const eden: {
|
|
413
413
|
};
|
414
414
|
fetch?: RequestInit | undefined;
|
415
415
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
416
|
-
200:
|
417
|
-
|
418
|
-
name: string;
|
419
|
-
url: string;
|
420
|
-
description: string;
|
421
|
-
id: string;
|
422
|
-
tags: string[];
|
423
|
-
icon: string;
|
424
|
-
} | null | undefined;
|
425
|
-
depositUrl?: string | undefined;
|
426
|
-
aprRecord?: {
|
427
|
-
timestamp: string | bigint;
|
416
|
+
200: {
|
417
|
+
aprRecord: {
|
428
418
|
cumulated: number;
|
419
|
+
timestamp: bigint;
|
429
420
|
breakdowns: {
|
430
|
-
type: "
|
421
|
+
type: import("../../database/api/.generated").$Enums.AprType;
|
431
422
|
id: number;
|
432
423
|
identifier: string;
|
433
424
|
value: number;
|
434
425
|
aprRecordId: string;
|
435
426
|
}[];
|
436
|
-
}
|
437
|
-
tvlRecord
|
427
|
+
};
|
428
|
+
tvlRecord: {
|
429
|
+
id: string;
|
438
430
|
total: number;
|
439
|
-
timestamp:
|
431
|
+
timestamp: bigint;
|
440
432
|
breakdowns: {
|
441
|
-
type: "
|
433
|
+
type: import("../../database/api/.generated").$Enums.TvlType;
|
442
434
|
id: number;
|
443
435
|
identifier: string;
|
444
436
|
value: number;
|
445
437
|
tvlRecordId: string;
|
446
438
|
}[];
|
447
|
-
}
|
448
|
-
rewardsRecord
|
449
|
-
total: number;
|
439
|
+
};
|
440
|
+
rewardsRecord: {
|
450
441
|
id: string;
|
451
|
-
|
442
|
+
total: number;
|
443
|
+
timestamp: bigint;
|
452
444
|
breakdowns: {
|
445
|
+
id: number;
|
446
|
+
value: number;
|
447
|
+
campaignId: string;
|
448
|
+
dailyRewardsRecordId: string;
|
453
449
|
token: {
|
454
|
-
price?: number | null | undefined;
|
455
450
|
symbol: string;
|
456
451
|
name: string | null;
|
457
452
|
id: string;
|
@@ -459,20 +454,17 @@ declare const eden: {
|
|
459
454
|
chainId: number;
|
460
455
|
address: string;
|
461
456
|
decimals: number;
|
457
|
+
displaySymbol: string;
|
462
458
|
verified: boolean;
|
463
459
|
isTest: boolean;
|
460
|
+
price: number | null;
|
464
461
|
};
|
465
|
-
|
466
|
-
value: number;
|
467
|
-
campaignId: string;
|
468
|
-
amount: string | bigint;
|
469
|
-
dailyRewardsRecordId: string;
|
462
|
+
amount: bigint;
|
470
463
|
}[];
|
471
|
-
}
|
472
|
-
|
473
|
-
|
474
|
-
tokens: {
|
475
|
-
price?: number | null | undefined;
|
464
|
+
};
|
465
|
+
id: string;
|
466
|
+
depositUrl: string | undefined;
|
467
|
+
tokens: ({
|
476
468
|
symbol: string;
|
477
469
|
name: string | null;
|
478
470
|
id: string;
|
@@ -482,85 +474,153 @@ declare const eden: {
|
|
482
474
|
decimals: number;
|
483
475
|
verified: boolean;
|
484
476
|
isTest: boolean;
|
485
|
-
}
|
486
|
-
|
487
|
-
|
488
|
-
tags: string[];
|
489
|
-
identifier: string;
|
477
|
+
} & {
|
478
|
+
price?: number | null | undefined;
|
479
|
+
})[];
|
490
480
|
chain: {
|
491
481
|
name: string;
|
492
482
|
id: number;
|
493
483
|
icon: string;
|
494
484
|
};
|
495
|
-
|
496
|
-
action: string;
|
497
|
-
tvl: number;
|
498
|
-
apr: number;
|
499
|
-
dailyRewards: number;
|
500
|
-
} | null)[];
|
501
|
-
} | {
|
502
|
-
200: AsyncGenerator<unknown, unknown, unknown>;
|
503
|
-
} | {
|
504
|
-
200: (Response | ({
|
505
|
-
protocol?: {
|
485
|
+
protocol: {
|
506
486
|
name: string;
|
507
487
|
url: string;
|
508
488
|
description: string;
|
509
489
|
id: string;
|
510
490
|
tags: string[];
|
511
491
|
icon: string;
|
512
|
-
} | null | undefined;
|
513
|
-
depositUrl?: string | undefined;
|
514
|
-
aprRecord?: {
|
515
|
-
timestamp: string | bigint;
|
516
|
-
cumulated: number;
|
517
|
-
breakdowns: {
|
518
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
519
|
-
id: number;
|
520
|
-
identifier: string;
|
521
|
-
value: number;
|
522
|
-
aprRecordId: string;
|
523
|
-
}[];
|
524
|
-
} | undefined;
|
525
|
-
tvlRecord?: {
|
526
|
-
total: number;
|
527
|
-
timestamp: string | bigint;
|
528
|
-
breakdowns: {
|
529
|
-
type: "TOKEN" | "PROTOCOL";
|
530
|
-
id: number;
|
531
|
-
identifier: string;
|
532
|
-
value: number;
|
533
|
-
tvlRecordId: string;
|
534
|
-
}[];
|
535
|
-
} | undefined;
|
536
|
-
rewardsRecord?: {
|
537
|
-
total: number;
|
538
|
-
id: string;
|
539
|
-
timestamp: string | bigint;
|
540
|
-
breakdowns: {
|
541
|
-
token: {
|
542
|
-
price?: number | null | undefined;
|
543
|
-
symbol: string;
|
544
|
-
name: string | null;
|
545
|
-
id: string;
|
546
|
-
icon: string;
|
547
|
-
chainId: number;
|
548
|
-
address: string;
|
549
|
-
decimals: number;
|
550
|
-
verified: boolean;
|
551
|
-
isTest: boolean;
|
552
|
-
};
|
553
|
-
id: number;
|
554
|
-
value: number;
|
555
|
-
campaignId: string;
|
556
|
-
amount: string | bigint;
|
557
|
-
dailyRewardsRecordId: string;
|
558
|
-
}[];
|
559
492
|
} | undefined;
|
560
493
|
name: string;
|
561
|
-
type:
|
562
|
-
|
563
|
-
|
494
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
495
|
+
status: import("../../database/api/.generated").$Enums.Status;
|
496
|
+
tags: string[];
|
497
|
+
identifier: string;
|
498
|
+
chainId: number;
|
499
|
+
action: import("../../database/api/.generated").$Enums.OpportunityAction;
|
500
|
+
tvl: number;
|
501
|
+
apr: number;
|
502
|
+
dailyRewards: number;
|
503
|
+
}[];
|
504
|
+
}>>;
|
505
|
+
};
|
506
|
+
count: {
|
507
|
+
get: (options: {
|
508
|
+
headers?: Record<string, unknown> | undefined;
|
509
|
+
query: {
|
510
|
+
sort?: string | undefined;
|
511
|
+
name?: string | undefined;
|
512
|
+
tokens?: string | undefined;
|
513
|
+
status?: string | undefined;
|
514
|
+
items?: number | undefined;
|
515
|
+
tags?: string | undefined;
|
516
|
+
page?: number | undefined;
|
517
|
+
chainId?: string | undefined;
|
518
|
+
action?: string | undefined;
|
519
|
+
mainProtocolId?: string | undefined;
|
520
|
+
order?: string | undefined;
|
521
|
+
test?: boolean | undefined;
|
522
|
+
minimumTvl?: number | undefined;
|
523
|
+
};
|
524
|
+
fetch?: RequestInit | undefined;
|
525
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
526
|
+
200: number;
|
527
|
+
}>>;
|
528
|
+
};
|
529
|
+
aggregate: ((params: {
|
530
|
+
field: string | number;
|
531
|
+
}) => {
|
532
|
+
get: (options: {
|
533
|
+
headers?: Record<string, unknown> | undefined;
|
534
|
+
query: {
|
535
|
+
sort?: string | undefined;
|
536
|
+
name?: string | undefined;
|
537
|
+
tokens?: string | undefined;
|
538
|
+
status?: string | undefined;
|
539
|
+
items?: number | undefined;
|
540
|
+
tags?: string | undefined;
|
541
|
+
page?: number | undefined;
|
542
|
+
chainId?: string | undefined;
|
543
|
+
action?: string | undefined;
|
544
|
+
mainProtocolId?: string | undefined;
|
545
|
+
order?: string | undefined;
|
546
|
+
test?: boolean | undefined;
|
547
|
+
minimumTvl?: number | undefined;
|
548
|
+
};
|
549
|
+
fetch?: RequestInit | undefined;
|
550
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
551
|
+
200: {
|
552
|
+
sum: File;
|
553
|
+
};
|
554
|
+
}>>;
|
555
|
+
}) & {};
|
556
|
+
};
|
557
|
+
campaigns: {
|
558
|
+
index: {
|
559
|
+
post: (body: {
|
560
|
+
identifier?: string | undefined;
|
561
|
+
subType?: number | undefined;
|
562
|
+
type: number;
|
563
|
+
params: string;
|
564
|
+
creator: string;
|
565
|
+
chainId: number;
|
566
|
+
startTimestamp: string;
|
567
|
+
endTimestamp: string;
|
568
|
+
computeChainId: number;
|
569
|
+
campaignId: string;
|
570
|
+
amount: string;
|
571
|
+
rewardTokenAddress: string;
|
572
|
+
opportunityIdentifier: string;
|
573
|
+
}, options: {
|
574
|
+
headers: {
|
575
|
+
authorization: string;
|
576
|
+
};
|
577
|
+
query?: Record<string, unknown> | undefined;
|
578
|
+
fetch?: RequestInit | undefined;
|
579
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
580
|
+
200: {
|
581
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
582
|
+
id: string;
|
583
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
584
|
+
subType: number | null;
|
585
|
+
startTimestamp: bigint;
|
586
|
+
endTimestamp: bigint;
|
587
|
+
computeChainId: number;
|
588
|
+
distributionChainId: number;
|
589
|
+
campaignId: string;
|
590
|
+
rewardTokenId: string;
|
591
|
+
amount: string;
|
592
|
+
opportunityId: string;
|
593
|
+
creatorAddress: string;
|
594
|
+
} | undefined;
|
595
|
+
}>>;
|
596
|
+
get: (options: {
|
597
|
+
headers?: Record<string, unknown> | undefined;
|
598
|
+
query: {
|
599
|
+
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
|
600
|
+
items?: number | undefined;
|
601
|
+
subType?: number | undefined;
|
602
|
+
page?: number | undefined;
|
603
|
+
chainId?: number | undefined;
|
604
|
+
startTimestamp?: string | undefined;
|
605
|
+
endTimestamp?: string | undefined;
|
606
|
+
tokenAddress?: string | undefined;
|
607
|
+
mainParameter?: string | undefined;
|
608
|
+
campaignId?: string | undefined;
|
609
|
+
opportunityId?: string | undefined;
|
610
|
+
test?: boolean | undefined;
|
611
|
+
creatorTag?: string | undefined;
|
612
|
+
tokenSymbol?: string | undefined;
|
613
|
+
};
|
614
|
+
fetch?: RequestInit | undefined;
|
615
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
616
|
+
200: {
|
617
|
+
params: any;
|
618
|
+
chain: {
|
619
|
+
name: string;
|
620
|
+
id: number;
|
621
|
+
icon: string;
|
622
|
+
};
|
623
|
+
rewardToken: {
|
564
624
|
symbol: string;
|
565
625
|
name: string | null;
|
566
626
|
id: string;
|
@@ -570,413 +630,10 @@ declare const eden: {
|
|
570
630
|
decimals: number;
|
571
631
|
verified: boolean;
|
572
632
|
isTest: boolean;
|
573
|
-
}
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
identifier: string;
|
578
|
-
chain: {
|
579
|
-
name: string;
|
580
|
-
id: number;
|
581
|
-
icon: string;
|
582
|
-
};
|
583
|
-
chainId: number;
|
584
|
-
action: string;
|
585
|
-
tvl: number;
|
586
|
-
apr: number;
|
587
|
-
dailyRewards: number;
|
588
|
-
} | null)[] | {
|
589
|
-
200: ({
|
590
|
-
protocol?: {
|
591
|
-
name: string;
|
592
|
-
url: string;
|
593
|
-
description: string;
|
594
|
-
id: string;
|
595
|
-
tags: string[];
|
596
|
-
icon: string;
|
597
|
-
} | null | undefined;
|
598
|
-
depositUrl?: string | undefined;
|
599
|
-
aprRecord?: {
|
600
|
-
timestamp: string | bigint;
|
601
|
-
cumulated: number;
|
602
|
-
breakdowns: {
|
603
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
604
|
-
id: number;
|
605
|
-
identifier: string;
|
606
|
-
value: number;
|
607
|
-
aprRecordId: string;
|
608
|
-
}[];
|
609
|
-
} | undefined;
|
610
|
-
tvlRecord?: {
|
611
|
-
total: number;
|
612
|
-
timestamp: string | bigint;
|
613
|
-
breakdowns: {
|
614
|
-
type: "TOKEN" | "PROTOCOL";
|
615
|
-
id: number;
|
616
|
-
identifier: string;
|
617
|
-
value: number;
|
618
|
-
tvlRecordId: string;
|
619
|
-
}[];
|
620
|
-
} | undefined;
|
621
|
-
rewardsRecord?: {
|
622
|
-
total: number;
|
623
|
-
id: string;
|
624
|
-
timestamp: string | bigint;
|
625
|
-
breakdowns: {
|
626
|
-
token: {
|
627
|
-
price?: number | null | undefined;
|
628
|
-
symbol: string;
|
629
|
-
name: string | null;
|
630
|
-
id: string;
|
631
|
-
icon: string;
|
632
|
-
chainId: number;
|
633
|
-
address: string;
|
634
|
-
decimals: number;
|
635
|
-
verified: boolean;
|
636
|
-
isTest: boolean;
|
637
|
-
};
|
638
|
-
id: number;
|
639
|
-
value: number;
|
640
|
-
campaignId: string;
|
641
|
-
amount: string | bigint;
|
642
|
-
dailyRewardsRecordId: string;
|
643
|
-
}[];
|
644
|
-
} | undefined;
|
645
|
-
name: string;
|
646
|
-
type: string;
|
647
|
-
tokens: {
|
648
|
-
price?: number | null | undefined;
|
649
|
-
symbol: string;
|
650
|
-
name: string | null;
|
651
|
-
id: string;
|
652
|
-
icon: string;
|
653
|
-
chainId: number;
|
654
|
-
address: string;
|
655
|
-
decimals: number;
|
656
|
-
verified: boolean;
|
657
|
-
isTest: boolean;
|
658
|
-
}[];
|
659
|
-
id: string;
|
660
|
-
status: string;
|
661
|
-
tags: string[];
|
662
|
-
identifier: string;
|
663
|
-
chain: {
|
664
|
-
name: string;
|
665
|
-
id: number;
|
666
|
-
icon: string;
|
667
|
-
};
|
668
|
-
chainId: number;
|
669
|
-
action: string;
|
670
|
-
tvl: number;
|
671
|
-
apr: number;
|
672
|
-
dailyRewards: number;
|
673
|
-
} | null)[];
|
674
|
-
}) & ({
|
675
|
-
protocol?: {
|
676
|
-
name: string;
|
677
|
-
url: string;
|
678
|
-
description: string;
|
679
|
-
id: string;
|
680
|
-
tags: string[];
|
681
|
-
icon: string;
|
682
|
-
} | null | undefined;
|
683
|
-
depositUrl?: string | undefined;
|
684
|
-
aprRecord?: {
|
685
|
-
timestamp: string | bigint;
|
686
|
-
cumulated: number;
|
687
|
-
breakdowns: {
|
688
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
689
|
-
id: number;
|
690
|
-
identifier: string;
|
691
|
-
value: number;
|
692
|
-
aprRecordId: string;
|
693
|
-
}[];
|
694
|
-
} | undefined;
|
695
|
-
tvlRecord?: {
|
696
|
-
total: number;
|
697
|
-
timestamp: string | bigint;
|
698
|
-
breakdowns: {
|
699
|
-
type: "TOKEN" | "PROTOCOL";
|
700
|
-
id: number;
|
701
|
-
identifier: string;
|
702
|
-
value: number;
|
703
|
-
tvlRecordId: string;
|
704
|
-
}[];
|
705
|
-
} | undefined;
|
706
|
-
rewardsRecord?: {
|
707
|
-
total: number;
|
708
|
-
id: string;
|
709
|
-
timestamp: string | bigint;
|
710
|
-
breakdowns: {
|
711
|
-
token: {
|
712
|
-
price?: number | null | undefined;
|
713
|
-
symbol: string;
|
714
|
-
name: string | null;
|
715
|
-
id: string;
|
716
|
-
icon: string;
|
717
|
-
chainId: number;
|
718
|
-
address: string;
|
719
|
-
decimals: number;
|
720
|
-
verified: boolean;
|
721
|
-
isTest: boolean;
|
722
|
-
};
|
723
|
-
id: number;
|
724
|
-
value: number;
|
725
|
-
campaignId: string;
|
726
|
-
amount: string | bigint;
|
727
|
-
dailyRewardsRecordId: string;
|
728
|
-
}[];
|
729
|
-
} | undefined;
|
730
|
-
name: string;
|
731
|
-
type: string;
|
732
|
-
tokens: {
|
733
|
-
price?: number | null | undefined;
|
734
|
-
symbol: string;
|
735
|
-
name: string | null;
|
736
|
-
id: string;
|
737
|
-
icon: string;
|
738
|
-
chainId: number;
|
739
|
-
address: string;
|
740
|
-
decimals: number;
|
741
|
-
verified: boolean;
|
742
|
-
isTest: boolean;
|
743
|
-
}[];
|
744
|
-
id: string;
|
745
|
-
status: string;
|
746
|
-
tags: string[];
|
747
|
-
identifier: string;
|
748
|
-
chain: {
|
749
|
-
name: string;
|
750
|
-
id: number;
|
751
|
-
icon: string;
|
752
|
-
};
|
753
|
-
chainId: number;
|
754
|
-
action: string;
|
755
|
-
tvl: number;
|
756
|
-
apr: number;
|
757
|
-
dailyRewards: number;
|
758
|
-
} | null)[];
|
759
|
-
} | {
|
760
|
-
200: {
|
761
|
-
200: ({
|
762
|
-
protocol?: {
|
763
|
-
name: string;
|
764
|
-
url: string;
|
765
|
-
description: string;
|
766
|
-
id: string;
|
767
|
-
tags: string[];
|
768
|
-
icon: string;
|
769
|
-
} | null | undefined;
|
770
|
-
depositUrl?: string | undefined;
|
771
|
-
aprRecord?: {
|
772
|
-
timestamp: string | bigint;
|
773
|
-
cumulated: number;
|
774
|
-
breakdowns: {
|
775
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
776
|
-
id: number;
|
777
|
-
identifier: string;
|
778
|
-
value: number;
|
779
|
-
aprRecordId: string;
|
780
|
-
}[];
|
781
|
-
} | undefined;
|
782
|
-
tvlRecord?: {
|
783
|
-
total: number;
|
784
|
-
timestamp: string | bigint;
|
785
|
-
breakdowns: {
|
786
|
-
type: "TOKEN" | "PROTOCOL";
|
787
|
-
id: number;
|
788
|
-
identifier: string;
|
789
|
-
value: number;
|
790
|
-
tvlRecordId: string;
|
791
|
-
}[];
|
792
|
-
} | undefined;
|
793
|
-
rewardsRecord?: {
|
794
|
-
total: number;
|
795
|
-
id: string;
|
796
|
-
timestamp: string | bigint;
|
797
|
-
breakdowns: {
|
798
|
-
token: {
|
799
|
-
price?: number | null | undefined;
|
800
|
-
symbol: string;
|
801
|
-
name: string | null;
|
802
|
-
id: string;
|
803
|
-
icon: string;
|
804
|
-
chainId: number;
|
805
|
-
address: string;
|
806
|
-
decimals: number;
|
807
|
-
verified: boolean;
|
808
|
-
isTest: boolean;
|
809
|
-
};
|
810
|
-
id: number;
|
811
|
-
value: number;
|
812
|
-
campaignId: string;
|
813
|
-
amount: string | bigint;
|
814
|
-
dailyRewardsRecordId: string;
|
815
|
-
}[];
|
816
|
-
} | undefined;
|
817
|
-
name: string;
|
818
|
-
type: string;
|
819
|
-
tokens: {
|
820
|
-
price?: number | null | undefined;
|
821
|
-
symbol: string;
|
822
|
-
name: string | null;
|
823
|
-
id: string;
|
824
|
-
icon: string;
|
825
|
-
chainId: number;
|
826
|
-
address: string;
|
827
|
-
decimals: number;
|
828
|
-
verified: boolean;
|
829
|
-
isTest: boolean;
|
830
|
-
}[];
|
831
|
-
id: string;
|
832
|
-
status: string;
|
833
|
-
tags: string[];
|
834
|
-
identifier: string;
|
835
|
-
chain: {
|
836
|
-
name: string;
|
837
|
-
id: number;
|
838
|
-
icon: string;
|
839
|
-
};
|
840
|
-
chainId: number;
|
841
|
-
action: string;
|
842
|
-
tvl: number;
|
843
|
-
apr: number;
|
844
|
-
dailyRewards: number;
|
845
|
-
} | null)[];
|
846
|
-
};
|
847
|
-
}>>;
|
848
|
-
};
|
849
|
-
count: {
|
850
|
-
get: (options: {
|
851
|
-
headers?: Record<string, unknown> | undefined;
|
852
|
-
query: {
|
853
|
-
sort?: string | undefined;
|
854
|
-
name?: string | undefined;
|
855
|
-
tokens?: string | undefined;
|
856
|
-
status?: string | undefined;
|
857
|
-
items?: number | undefined;
|
858
|
-
tags?: string | undefined;
|
859
|
-
page?: number | undefined;
|
860
|
-
chainId?: string | undefined;
|
861
|
-
action?: string | undefined;
|
862
|
-
mainProtocolId?: string | undefined;
|
863
|
-
order?: string | undefined;
|
864
|
-
test?: boolean | undefined;
|
865
|
-
minimumTvl?: number | undefined;
|
866
|
-
};
|
867
|
-
fetch?: RequestInit | undefined;
|
868
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
869
|
-
200: number;
|
870
|
-
}>>;
|
871
|
-
};
|
872
|
-
aggregate: ((params: {
|
873
|
-
field: string | number;
|
874
|
-
}) => {
|
875
|
-
get: (options: {
|
876
|
-
headers?: Record<string, unknown> | undefined;
|
877
|
-
query: {
|
878
|
-
sort?: string | undefined;
|
879
|
-
name?: string | undefined;
|
880
|
-
tokens?: string | undefined;
|
881
|
-
status?: string | undefined;
|
882
|
-
items?: number | undefined;
|
883
|
-
tags?: string | undefined;
|
884
|
-
page?: number | undefined;
|
885
|
-
chainId?: string | undefined;
|
886
|
-
action?: string | undefined;
|
887
|
-
mainProtocolId?: string | undefined;
|
888
|
-
order?: string | undefined;
|
889
|
-
test?: boolean | undefined;
|
890
|
-
minimumTvl?: number | undefined;
|
891
|
-
};
|
892
|
-
fetch?: RequestInit | undefined;
|
893
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
894
|
-
200: {
|
895
|
-
sum: File;
|
896
|
-
};
|
897
|
-
}>>;
|
898
|
-
}) & {};
|
899
|
-
};
|
900
|
-
campaigns: {
|
901
|
-
index: {
|
902
|
-
post: (body: {
|
903
|
-
identifier?: string | undefined;
|
904
|
-
subType?: number | undefined;
|
905
|
-
type: number;
|
906
|
-
params: string;
|
907
|
-
creator: string;
|
908
|
-
chainId: number;
|
909
|
-
startTimestamp: string;
|
910
|
-
endTimestamp: string;
|
911
|
-
computeChainId: number;
|
912
|
-
campaignId: string;
|
913
|
-
amount: string;
|
914
|
-
rewardTokenAddress: string;
|
915
|
-
opportunityIdentifier: string;
|
916
|
-
}, options: {
|
917
|
-
headers: {
|
918
|
-
authorization: string;
|
919
|
-
};
|
920
|
-
query?: Record<string, unknown> | undefined;
|
921
|
-
fetch?: RequestInit | undefined;
|
922
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
923
|
-
200: {
|
924
|
-
type: import("../../database/api/.generated").$Enums.CampaignType;
|
925
|
-
id: string;
|
926
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
927
|
-
subType: number | null;
|
928
|
-
startTimestamp: bigint;
|
929
|
-
endTimestamp: bigint;
|
930
|
-
computeChainId: number;
|
931
|
-
distributionChainId: number;
|
932
|
-
campaignId: string;
|
933
|
-
rewardTokenId: string;
|
934
|
-
amount: string;
|
935
|
-
opportunityId: string;
|
936
|
-
creatorAddress: string;
|
937
|
-
} | undefined;
|
938
|
-
}>>;
|
939
|
-
get: (options: {
|
940
|
-
headers?: Record<string, unknown> | undefined;
|
941
|
-
query: {
|
942
|
-
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
|
943
|
-
items?: number | undefined;
|
944
|
-
subType?: number | undefined;
|
945
|
-
page?: number | undefined;
|
946
|
-
chainId?: number | undefined;
|
947
|
-
startTimestamp?: string | undefined;
|
948
|
-
endTimestamp?: string | undefined;
|
949
|
-
tokenAddress?: string | undefined;
|
950
|
-
mainParameter?: string | undefined;
|
951
|
-
campaignId?: string | undefined;
|
952
|
-
opportunityId?: string | undefined;
|
953
|
-
test?: boolean | undefined;
|
954
|
-
creatorTag?: string | undefined;
|
955
|
-
tokenSymbol?: string | undefined;
|
956
|
-
};
|
957
|
-
fetch?: RequestInit | undefined;
|
958
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
959
|
-
200: {
|
960
|
-
params: any;
|
961
|
-
chain: {
|
962
|
-
name: string;
|
963
|
-
id: number;
|
964
|
-
icon: string;
|
965
|
-
};
|
966
|
-
rewardToken: {
|
967
|
-
symbol: string;
|
968
|
-
name: string | null;
|
969
|
-
id: string;
|
970
|
-
icon: string;
|
971
|
-
chainId: number;
|
972
|
-
address: string;
|
973
|
-
decimals: number;
|
974
|
-
verified: boolean;
|
975
|
-
isTest: boolean;
|
976
|
-
} & {
|
977
|
-
price?: number | null | undefined;
|
978
|
-
};
|
979
|
-
distributionChain: {
|
633
|
+
} & {
|
634
|
+
price?: number | null | undefined;
|
635
|
+
};
|
636
|
+
distributionChain: {
|
980
637
|
name: string;
|
981
638
|
id: number;
|
982
639
|
icon: string;
|
@@ -3219,359 +2876,96 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3219
2876
|
};
|
3220
2877
|
};
|
3221
2878
|
};
|
3222
|
-
};
|
3223
|
-
} & {
|
3224
|
-
v4: {};
|
3225
|
-
} & {
|
3226
|
-
v4: {
|
3227
|
-
opportunities: {
|
3228
|
-
index: {
|
3229
|
-
post: {
|
3230
|
-
body: {
|
3231
|
-
name?: string | undefined;
|
3232
|
-
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
3233
|
-
tokens: {
|
3234
|
-
chainId: number;
|
3235
|
-
address: string;
|
3236
|
-
}[];
|
3237
|
-
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
3238
|
-
identifier: string;
|
3239
|
-
chainId: number;
|
3240
|
-
action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
|
3241
|
-
protocols: string[];
|
3242
|
-
mainProtocol: string;
|
3243
|
-
};
|
3244
|
-
params: {};
|
3245
|
-
query: unknown;
|
3246
|
-
headers: {
|
3247
|
-
authorization: string;
|
3248
|
-
};
|
3249
|
-
response: {
|
3250
|
-
200: void;
|
3251
|
-
};
|
3252
|
-
};
|
3253
|
-
};
|
3254
|
-
};
|
3255
|
-
} & {
|
3256
|
-
opportunities: {
|
3257
|
-
index: {
|
3258
|
-
get: {
|
3259
|
-
body: unknown;
|
3260
|
-
params: {};
|
3261
|
-
query: {
|
3262
|
-
sort?: string | undefined;
|
3263
|
-
name?: string | undefined;
|
3264
|
-
tokens?: string | undefined;
|
3265
|
-
status?: string | undefined;
|
3266
|
-
items?: number | undefined;
|
3267
|
-
tags?: string | undefined;
|
3268
|
-
page?: number | undefined;
|
3269
|
-
chainId?: string | undefined;
|
3270
|
-
action?: string | undefined;
|
3271
|
-
mainProtocolId?: string | undefined;
|
3272
|
-
order?: string | undefined;
|
3273
|
-
test?: boolean | undefined;
|
3274
|
-
minimumTvl?: number | undefined;
|
3275
|
-
};
|
3276
|
-
headers: unknown;
|
3277
|
-
response: {
|
3278
|
-
200:
|
3279
|
-
|
3280
|
-
name: string;
|
3281
|
-
url: string;
|
3282
|
-
description: string;
|
3283
|
-
id: string;
|
3284
|
-
tags: string[];
|
3285
|
-
icon: string;
|
3286
|
-
} | null | undefined;
|
3287
|
-
depositUrl?: string | undefined;
|
3288
|
-
aprRecord?: {
|
3289
|
-
timestamp: string | bigint;
|
3290
|
-
cumulated: number;
|
3291
|
-
breakdowns: {
|
3292
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
3293
|
-
id: number;
|
3294
|
-
identifier: string;
|
3295
|
-
value: number;
|
3296
|
-
aprRecordId: string;
|
3297
|
-
}[];
|
3298
|
-
} | undefined;
|
3299
|
-
tvlRecord?: {
|
3300
|
-
total: number;
|
3301
|
-
timestamp: string | bigint;
|
3302
|
-
breakdowns: {
|
3303
|
-
type: "TOKEN" | "PROTOCOL";
|
3304
|
-
id: number;
|
3305
|
-
identifier: string;
|
3306
|
-
value: number;
|
3307
|
-
tvlRecordId: string;
|
3308
|
-
}[];
|
3309
|
-
} | undefined;
|
3310
|
-
rewardsRecord?: {
|
3311
|
-
total: number;
|
3312
|
-
id: string;
|
3313
|
-
timestamp: string | bigint;
|
3314
|
-
breakdowns: {
|
3315
|
-
token: {
|
3316
|
-
price?: number | null | undefined;
|
3317
|
-
symbol: string;
|
3318
|
-
name: string | null;
|
3319
|
-
id: string;
|
3320
|
-
icon: string;
|
3321
|
-
chainId: number;
|
3322
|
-
address: string;
|
3323
|
-
decimals: number;
|
3324
|
-
verified: boolean;
|
3325
|
-
isTest: boolean;
|
3326
|
-
};
|
3327
|
-
id: number;
|
3328
|
-
value: number;
|
3329
|
-
campaignId: string;
|
3330
|
-
amount: string | bigint;
|
3331
|
-
dailyRewardsRecordId: string;
|
3332
|
-
}[];
|
3333
|
-
} | undefined;
|
3334
|
-
name: string;
|
3335
|
-
type: string;
|
3336
|
-
tokens: {
|
3337
|
-
price?: number | null | undefined;
|
3338
|
-
symbol: string;
|
3339
|
-
name: string | null;
|
3340
|
-
id: string;
|
3341
|
-
icon: string;
|
3342
|
-
chainId: number;
|
3343
|
-
address: string;
|
3344
|
-
decimals: number;
|
3345
|
-
verified: boolean;
|
3346
|
-
isTest: boolean;
|
3347
|
-
}[];
|
3348
|
-
id: string;
|
3349
|
-
status: string;
|
3350
|
-
tags: string[];
|
3351
|
-
identifier: string;
|
3352
|
-
chain: {
|
3353
|
-
name: string;
|
3354
|
-
id: number;
|
3355
|
-
icon: string;
|
3356
|
-
};
|
3357
|
-
chainId: number;
|
3358
|
-
action: string;
|
3359
|
-
tvl: number;
|
3360
|
-
apr: number;
|
3361
|
-
dailyRewards: number;
|
3362
|
-
} | null)[];
|
3363
|
-
} | {
|
3364
|
-
200: never;
|
3365
|
-
} | {
|
3366
|
-
200: (Response | ({
|
3367
|
-
protocol?: {
|
3368
|
-
name: string;
|
3369
|
-
url: string;
|
3370
|
-
description: string;
|
3371
|
-
id: string;
|
3372
|
-
tags: string[];
|
3373
|
-
icon: string;
|
3374
|
-
} | null | undefined;
|
3375
|
-
depositUrl?: string | undefined;
|
3376
|
-
aprRecord?: {
|
3377
|
-
timestamp: string | bigint;
|
2879
|
+
};
|
2880
|
+
} & {
|
2881
|
+
v4: {};
|
2882
|
+
} & {
|
2883
|
+
v4: {
|
2884
|
+
opportunities: {
|
2885
|
+
index: {
|
2886
|
+
post: {
|
2887
|
+
body: {
|
2888
|
+
name?: string | undefined;
|
2889
|
+
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
2890
|
+
tokens: {
|
2891
|
+
chainId: number;
|
2892
|
+
address: string;
|
2893
|
+
}[];
|
2894
|
+
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
2895
|
+
identifier: string;
|
2896
|
+
chainId: number;
|
2897
|
+
action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
|
2898
|
+
protocols: string[];
|
2899
|
+
mainProtocol: string;
|
2900
|
+
};
|
2901
|
+
params: {};
|
2902
|
+
query: unknown;
|
2903
|
+
headers: {
|
2904
|
+
authorization: string;
|
2905
|
+
};
|
2906
|
+
response: {
|
2907
|
+
200: void;
|
2908
|
+
};
|
2909
|
+
};
|
2910
|
+
};
|
2911
|
+
};
|
2912
|
+
} & {
|
2913
|
+
opportunities: {
|
2914
|
+
index: {
|
2915
|
+
get: {
|
2916
|
+
body: unknown;
|
2917
|
+
params: {};
|
2918
|
+
query: {
|
2919
|
+
sort?: string | undefined;
|
2920
|
+
name?: string | undefined;
|
2921
|
+
tokens?: string | undefined;
|
2922
|
+
status?: string | undefined;
|
2923
|
+
items?: number | undefined;
|
2924
|
+
tags?: string | undefined;
|
2925
|
+
page?: number | undefined;
|
2926
|
+
chainId?: string | undefined;
|
2927
|
+
action?: string | undefined;
|
2928
|
+
mainProtocolId?: string | undefined;
|
2929
|
+
order?: string | undefined;
|
2930
|
+
test?: boolean | undefined;
|
2931
|
+
minimumTvl?: number | undefined;
|
2932
|
+
};
|
2933
|
+
headers: unknown;
|
2934
|
+
response: {
|
2935
|
+
200: {
|
2936
|
+
aprRecord: {
|
3378
2937
|
cumulated: number;
|
2938
|
+
timestamp: bigint;
|
3379
2939
|
breakdowns: {
|
3380
|
-
type: "
|
2940
|
+
type: import("../../database/api/.generated").$Enums.AprType;
|
3381
2941
|
id: number;
|
3382
2942
|
identifier: string;
|
3383
2943
|
value: number;
|
3384
2944
|
aprRecordId: string;
|
3385
2945
|
}[];
|
3386
|
-
}
|
3387
|
-
tvlRecord
|
2946
|
+
};
|
2947
|
+
tvlRecord: {
|
2948
|
+
id: string;
|
3388
2949
|
total: number;
|
3389
|
-
timestamp:
|
2950
|
+
timestamp: bigint;
|
3390
2951
|
breakdowns: {
|
3391
|
-
type: "
|
2952
|
+
type: import("../../database/api/.generated").$Enums.TvlType;
|
3392
2953
|
id: number;
|
3393
2954
|
identifier: string;
|
3394
2955
|
value: number;
|
3395
2956
|
tvlRecordId: string;
|
3396
2957
|
}[];
|
3397
|
-
} | undefined;
|
3398
|
-
rewardsRecord?: {
|
3399
|
-
total: number;
|
3400
|
-
id: string;
|
3401
|
-
timestamp: string | bigint;
|
3402
|
-
breakdowns: {
|
3403
|
-
token: {
|
3404
|
-
price?: number | null | undefined;
|
3405
|
-
symbol: string;
|
3406
|
-
name: string | null;
|
3407
|
-
id: string;
|
3408
|
-
icon: string;
|
3409
|
-
chainId: number;
|
3410
|
-
address: string;
|
3411
|
-
decimals: number;
|
3412
|
-
verified: boolean;
|
3413
|
-
isTest: boolean;
|
3414
|
-
};
|
3415
|
-
id: number;
|
3416
|
-
value: number;
|
3417
|
-
campaignId: string;
|
3418
|
-
amount: string | bigint;
|
3419
|
-
dailyRewardsRecordId: string;
|
3420
|
-
}[];
|
3421
|
-
} | undefined;
|
3422
|
-
name: string;
|
3423
|
-
type: string;
|
3424
|
-
tokens: {
|
3425
|
-
price?: number | null | undefined;
|
3426
|
-
symbol: string;
|
3427
|
-
name: string | null;
|
3428
|
-
id: string;
|
3429
|
-
icon: string;
|
3430
|
-
chainId: number;
|
3431
|
-
address: string;
|
3432
|
-
decimals: number;
|
3433
|
-
verified: boolean;
|
3434
|
-
isTest: boolean;
|
3435
|
-
}[];
|
3436
|
-
id: string;
|
3437
|
-
status: string;
|
3438
|
-
tags: string[];
|
3439
|
-
identifier: string;
|
3440
|
-
chain: {
|
3441
|
-
name: string;
|
3442
|
-
id: number;
|
3443
|
-
icon: string;
|
3444
2958
|
};
|
3445
|
-
|
3446
|
-
action: string;
|
3447
|
-
tvl: number;
|
3448
|
-
apr: number;
|
3449
|
-
dailyRewards: number;
|
3450
|
-
} | null)[] | {
|
3451
|
-
200: ({
|
3452
|
-
protocol?: {
|
3453
|
-
name: string;
|
3454
|
-
url: string;
|
3455
|
-
description: string;
|
3456
|
-
id: string;
|
3457
|
-
tags: string[];
|
3458
|
-
icon: string;
|
3459
|
-
} | null | undefined;
|
3460
|
-
depositUrl?: string | undefined;
|
3461
|
-
aprRecord?: {
|
3462
|
-
timestamp: string | bigint;
|
3463
|
-
cumulated: number;
|
3464
|
-
breakdowns: {
|
3465
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
3466
|
-
id: number;
|
3467
|
-
identifier: string;
|
3468
|
-
value: number;
|
3469
|
-
aprRecordId: string;
|
3470
|
-
}[];
|
3471
|
-
} | undefined;
|
3472
|
-
tvlRecord?: {
|
3473
|
-
total: number;
|
3474
|
-
timestamp: string | bigint;
|
3475
|
-
breakdowns: {
|
3476
|
-
type: "TOKEN" | "PROTOCOL";
|
3477
|
-
id: number;
|
3478
|
-
identifier: string;
|
3479
|
-
value: number;
|
3480
|
-
tvlRecordId: string;
|
3481
|
-
}[];
|
3482
|
-
} | undefined;
|
3483
|
-
rewardsRecord?: {
|
3484
|
-
total: number;
|
3485
|
-
id: string;
|
3486
|
-
timestamp: string | bigint;
|
3487
|
-
breakdowns: {
|
3488
|
-
token: {
|
3489
|
-
price?: number | null | undefined;
|
3490
|
-
symbol: string;
|
3491
|
-
name: string | null;
|
3492
|
-
id: string;
|
3493
|
-
icon: string;
|
3494
|
-
chainId: number;
|
3495
|
-
address: string;
|
3496
|
-
decimals: number;
|
3497
|
-
verified: boolean;
|
3498
|
-
isTest: boolean;
|
3499
|
-
};
|
3500
|
-
id: number;
|
3501
|
-
value: number;
|
3502
|
-
campaignId: string;
|
3503
|
-
amount: string | bigint;
|
3504
|
-
dailyRewardsRecordId: string;
|
3505
|
-
}[];
|
3506
|
-
} | undefined;
|
3507
|
-
name: string;
|
3508
|
-
type: string;
|
3509
|
-
tokens: {
|
3510
|
-
price?: number | null | undefined;
|
3511
|
-
symbol: string;
|
3512
|
-
name: string | null;
|
3513
|
-
id: string;
|
3514
|
-
icon: string;
|
3515
|
-
chainId: number;
|
3516
|
-
address: string;
|
3517
|
-
decimals: number;
|
3518
|
-
verified: boolean;
|
3519
|
-
isTest: boolean;
|
3520
|
-
}[];
|
3521
|
-
id: string;
|
3522
|
-
status: string;
|
3523
|
-
tags: string[];
|
3524
|
-
identifier: string;
|
3525
|
-
chain: {
|
3526
|
-
name: string;
|
3527
|
-
id: number;
|
3528
|
-
icon: string;
|
3529
|
-
};
|
3530
|
-
chainId: number;
|
3531
|
-
action: string;
|
3532
|
-
tvl: number;
|
3533
|
-
apr: number;
|
3534
|
-
dailyRewards: number;
|
3535
|
-
} | null)[];
|
3536
|
-
}) & ({
|
3537
|
-
protocol?: {
|
3538
|
-
name: string;
|
3539
|
-
url: string;
|
3540
|
-
description: string;
|
2959
|
+
rewardsRecord: {
|
3541
2960
|
id: string;
|
3542
|
-
tags: string[];
|
3543
|
-
icon: string;
|
3544
|
-
} | null | undefined;
|
3545
|
-
depositUrl?: string | undefined;
|
3546
|
-
aprRecord?: {
|
3547
|
-
timestamp: string | bigint;
|
3548
|
-
cumulated: number;
|
3549
|
-
breakdowns: {
|
3550
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
3551
|
-
id: number;
|
3552
|
-
identifier: string;
|
3553
|
-
value: number;
|
3554
|
-
aprRecordId: string;
|
3555
|
-
}[];
|
3556
|
-
} | undefined;
|
3557
|
-
tvlRecord?: {
|
3558
2961
|
total: number;
|
3559
|
-
timestamp:
|
2962
|
+
timestamp: bigint;
|
3560
2963
|
breakdowns: {
|
3561
|
-
type: "TOKEN" | "PROTOCOL";
|
3562
2964
|
id: number;
|
3563
|
-
identifier: string;
|
3564
2965
|
value: number;
|
3565
|
-
|
3566
|
-
|
3567
|
-
} | undefined;
|
3568
|
-
rewardsRecord?: {
|
3569
|
-
total: number;
|
3570
|
-
id: string;
|
3571
|
-
timestamp: string | bigint;
|
3572
|
-
breakdowns: {
|
2966
|
+
campaignId: string;
|
2967
|
+
dailyRewardsRecordId: string;
|
3573
2968
|
token: {
|
3574
|
-
price?: number | null | undefined;
|
3575
2969
|
symbol: string;
|
3576
2970
|
name: string | null;
|
3577
2971
|
id: string;
|
@@ -3579,20 +2973,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3579
2973
|
chainId: number;
|
3580
2974
|
address: string;
|
3581
2975
|
decimals: number;
|
2976
|
+
displaySymbol: string;
|
3582
2977
|
verified: boolean;
|
3583
2978
|
isTest: boolean;
|
2979
|
+
price: number | null;
|
3584
2980
|
};
|
3585
|
-
|
3586
|
-
value: number;
|
3587
|
-
campaignId: string;
|
3588
|
-
amount: string | bigint;
|
3589
|
-
dailyRewardsRecordId: string;
|
2981
|
+
amount: bigint;
|
3590
2982
|
}[];
|
3591
|
-
}
|
3592
|
-
|
3593
|
-
|
3594
|
-
tokens: {
|
3595
|
-
price?: number | null | undefined;
|
2983
|
+
};
|
2984
|
+
id: string;
|
2985
|
+
depositUrl: string | undefined;
|
2986
|
+
tokens: ({
|
3596
2987
|
symbol: string;
|
3597
2988
|
name: string | null;
|
3598
2989
|
id: string;
|
@@ -3602,110 +2993,33 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3602
2993
|
decimals: number;
|
3603
2994
|
verified: boolean;
|
3604
2995
|
isTest: boolean;
|
3605
|
-
}
|
3606
|
-
|
3607
|
-
|
3608
|
-
tags: string[];
|
3609
|
-
identifier: string;
|
2996
|
+
} & {
|
2997
|
+
price?: number | null | undefined;
|
2998
|
+
})[];
|
3610
2999
|
chain: {
|
3611
3000
|
name: string;
|
3612
3001
|
id: number;
|
3613
3002
|
icon: string;
|
3614
3003
|
};
|
3004
|
+
protocol: {
|
3005
|
+
name: string;
|
3006
|
+
url: string;
|
3007
|
+
description: string;
|
3008
|
+
id: string;
|
3009
|
+
tags: string[];
|
3010
|
+
icon: string;
|
3011
|
+
} | undefined;
|
3012
|
+
name: string;
|
3013
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
3014
|
+
status: import("../../database/api/.generated").$Enums.Status;
|
3015
|
+
tags: string[];
|
3016
|
+
identifier: string;
|
3615
3017
|
chainId: number;
|
3616
|
-
action:
|
3018
|
+
action: import("../../database/api/.generated").$Enums.OpportunityAction;
|
3617
3019
|
tvl: number;
|
3618
3020
|
apr: number;
|
3619
3021
|
dailyRewards: number;
|
3620
|
-
}
|
3621
|
-
} | {
|
3622
|
-
200: {
|
3623
|
-
200: ({
|
3624
|
-
protocol?: {
|
3625
|
-
name: string;
|
3626
|
-
url: string;
|
3627
|
-
description: string;
|
3628
|
-
id: string;
|
3629
|
-
tags: string[];
|
3630
|
-
icon: string;
|
3631
|
-
} | null | undefined;
|
3632
|
-
depositUrl?: string | undefined;
|
3633
|
-
aprRecord?: {
|
3634
|
-
timestamp: string | bigint;
|
3635
|
-
cumulated: number;
|
3636
|
-
breakdowns: {
|
3637
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
3638
|
-
id: number;
|
3639
|
-
identifier: string;
|
3640
|
-
value: number;
|
3641
|
-
aprRecordId: string;
|
3642
|
-
}[];
|
3643
|
-
} | undefined;
|
3644
|
-
tvlRecord?: {
|
3645
|
-
total: number;
|
3646
|
-
timestamp: string | bigint;
|
3647
|
-
breakdowns: {
|
3648
|
-
type: "TOKEN" | "PROTOCOL";
|
3649
|
-
id: number;
|
3650
|
-
identifier: string;
|
3651
|
-
value: number;
|
3652
|
-
tvlRecordId: string;
|
3653
|
-
}[];
|
3654
|
-
} | undefined;
|
3655
|
-
rewardsRecord?: {
|
3656
|
-
total: number;
|
3657
|
-
id: string;
|
3658
|
-
timestamp: string | bigint;
|
3659
|
-
breakdowns: {
|
3660
|
-
token: {
|
3661
|
-
price?: number | null | undefined;
|
3662
|
-
symbol: string;
|
3663
|
-
name: string | null;
|
3664
|
-
id: string;
|
3665
|
-
icon: string;
|
3666
|
-
chainId: number;
|
3667
|
-
address: string;
|
3668
|
-
decimals: number;
|
3669
|
-
verified: boolean;
|
3670
|
-
isTest: boolean;
|
3671
|
-
};
|
3672
|
-
id: number;
|
3673
|
-
value: number;
|
3674
|
-
campaignId: string;
|
3675
|
-
amount: string | bigint;
|
3676
|
-
dailyRewardsRecordId: string;
|
3677
|
-
}[];
|
3678
|
-
} | undefined;
|
3679
|
-
name: string;
|
3680
|
-
type: string;
|
3681
|
-
tokens: {
|
3682
|
-
price?: number | null | undefined;
|
3683
|
-
symbol: string;
|
3684
|
-
name: string | null;
|
3685
|
-
id: string;
|
3686
|
-
icon: string;
|
3687
|
-
chainId: number;
|
3688
|
-
address: string;
|
3689
|
-
decimals: number;
|
3690
|
-
verified: boolean;
|
3691
|
-
isTest: boolean;
|
3692
|
-
}[];
|
3693
|
-
id: string;
|
3694
|
-
status: string;
|
3695
|
-
tags: string[];
|
3696
|
-
identifier: string;
|
3697
|
-
chain: {
|
3698
|
-
name: string;
|
3699
|
-
id: number;
|
3700
|
-
icon: string;
|
3701
|
-
};
|
3702
|
-
chainId: number;
|
3703
|
-
action: string;
|
3704
|
-
tvl: number;
|
3705
|
-
apr: number;
|
3706
|
-
dailyRewards: number;
|
3707
|
-
} | null)[];
|
3708
|
-
};
|
3022
|
+
}[];
|
3709
3023
|
};
|
3710
3024
|
};
|
3711
3025
|
};
|
@@ -6626,232 +5940,90 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6626
5940
|
chainId: never;
|
6627
5941
|
user: string;
|
6628
5942
|
};
|
6629
|
-
headers: unknown;
|
6630
|
-
response: {
|
6631
|
-
[x: string]: any;
|
6632
|
-
200: any;
|
6633
|
-
};
|
6634
|
-
};
|
6635
|
-
};
|
6636
|
-
};
|
6637
|
-
} & {
|
6638
|
-
v3: {
|
6639
|
-
radiant: {
|
6640
|
-
get: {
|
6641
|
-
body: unknown;
|
6642
|
-
params: {};
|
6643
|
-
query: {
|
6644
|
-
chainId: number;
|
6645
|
-
poolAddressProvider: string;
|
6646
|
-
};
|
6647
|
-
headers: unknown;
|
6648
|
-
response: {
|
6649
|
-
[x: string]: any;
|
6650
|
-
200: any;
|
6651
|
-
};
|
6652
|
-
};
|
6653
|
-
};
|
6654
|
-
};
|
6655
|
-
} & {
|
6656
|
-
v3: {
|
6657
|
-
recipients: {
|
6658
|
-
get: {
|
6659
|
-
body: unknown;
|
6660
|
-
params: {};
|
6661
|
-
query: {
|
6662
|
-
chainId: number;
|
6663
|
-
campaignId: string;
|
6664
|
-
};
|
6665
|
-
headers: unknown;
|
6666
|
-
response: {
|
6667
|
-
200: {
|
6668
|
-
recipient: string;
|
6669
|
-
reason: string;
|
6670
|
-
rewardToken: string;
|
6671
|
-
amount: string;
|
6672
|
-
}[];
|
6673
|
-
};
|
6674
|
-
};
|
6675
|
-
};
|
6676
|
-
};
|
6677
|
-
} & {
|
6678
|
-
v3: {
|
6679
|
-
rewards: {
|
6680
|
-
get: {
|
6681
|
-
body: unknown;
|
6682
|
-
params: {};
|
6683
|
-
query: {
|
6684
|
-
chainIds?: string | string[] | undefined;
|
6685
|
-
creatorTag?: string | undefined;
|
6686
|
-
user: string;
|
6687
|
-
};
|
6688
|
-
headers: unknown;
|
6689
|
-
response: {
|
6690
|
-
200: {
|
6691
|
-
[x: string]: {
|
6692
|
-
campaignData: {
|
6693
|
-
[x: string]: {
|
6694
|
-
[x: string]: {
|
6695
|
-
pending?: string | undefined;
|
6696
|
-
symbol: string;
|
6697
|
-
token: string;
|
6698
|
-
mainParameter: string;
|
6699
|
-
decimals: number;
|
6700
|
-
auxiliaryData1: string;
|
6701
|
-
auxiliaryData2: string;
|
6702
|
-
unclaimed: string;
|
6703
|
-
accumulated: string;
|
6704
|
-
};
|
6705
|
-
};
|
6706
|
-
};
|
6707
|
-
tokenData: {
|
6708
|
-
[x: string]: {
|
6709
|
-
pending?: string | undefined;
|
6710
|
-
symbol: string;
|
6711
|
-
decimals: number;
|
6712
|
-
proof: string[];
|
6713
|
-
unclaimed: string;
|
6714
|
-
accumulated: string;
|
6715
|
-
};
|
6716
|
-
};
|
6717
|
-
};
|
6718
|
-
};
|
6719
|
-
};
|
6720
|
-
};
|
6721
|
-
};
|
6722
|
-
};
|
6723
|
-
} & {
|
6724
|
-
v3: {
|
6725
|
-
rewardsReport: {
|
6726
|
-
get: {
|
6727
|
-
body: unknown;
|
6728
|
-
params: {};
|
6729
|
-
query: {
|
6730
|
-
from?: number | undefined;
|
6731
|
-
to?: number | undefined;
|
6732
|
-
mainParameter?: string | undefined;
|
6733
|
-
chainId: number;
|
6734
|
-
campaignId: string;
|
6735
|
-
};
|
6736
|
-
headers: unknown;
|
6737
|
-
response: {
|
6738
|
-
200: {
|
6739
|
-
recipient: string;
|
6740
|
-
reason: string;
|
6741
|
-
rewardToken: string;
|
6742
|
-
amount: string;
|
6743
|
-
}[];
|
6744
|
-
};
|
6745
|
-
};
|
6746
|
-
};
|
6747
|
-
};
|
6748
|
-
} & {
|
6749
|
-
v3: {
|
6750
|
-
silo: {
|
6751
|
-
get: {
|
6752
|
-
body: unknown;
|
6753
|
-
params: {};
|
6754
|
-
query: {
|
6755
|
-
chainId: number;
|
6756
|
-
repository: string;
|
6757
|
-
};
|
6758
|
-
headers: unknown;
|
6759
|
-
response: {
|
6760
|
-
[x: string]: any;
|
6761
|
-
200: any;
|
6762
|
-
};
|
6763
|
-
};
|
6764
|
-
};
|
6765
|
-
};
|
6766
|
-
} & {
|
6767
|
-
v3: {
|
6768
|
-
token: {
|
6769
|
-
get: {
|
6770
|
-
body: unknown;
|
6771
|
-
params: {};
|
6772
|
-
query: {
|
6773
|
-
chainId: number;
|
6774
|
-
address: string;
|
6775
|
-
};
|
6776
|
-
headers: unknown;
|
6777
|
-
response: {
|
6778
|
-
200: {
|
6779
|
-
name: string;
|
6780
|
-
symbol: string;
|
6781
|
-
decimals: number;
|
6782
|
-
};
|
6783
|
-
};
|
5943
|
+
headers: unknown;
|
5944
|
+
response: {
|
5945
|
+
[x: string]: any;
|
5946
|
+
200: any;
|
5947
|
+
};
|
6784
5948
|
};
|
6785
5949
|
};
|
6786
5950
|
};
|
6787
5951
|
} & {
|
6788
5952
|
v3: {
|
6789
|
-
|
5953
|
+
radiant: {
|
6790
5954
|
get: {
|
6791
5955
|
body: unknown;
|
6792
5956
|
params: {};
|
6793
5957
|
query: {
|
6794
|
-
token: string;
|
6795
5958
|
chainId: number;
|
5959
|
+
poolAddressProvider: string;
|
6796
5960
|
};
|
6797
5961
|
headers: unknown;
|
6798
5962
|
response: {
|
6799
|
-
|
6800
|
-
|
6801
|
-
};
|
5963
|
+
[x: string]: any;
|
5964
|
+
200: any;
|
6802
5965
|
};
|
6803
5966
|
};
|
6804
5967
|
};
|
6805
5968
|
};
|
6806
5969
|
} & {
|
6807
5970
|
v3: {
|
6808
|
-
|
5971
|
+
recipients: {
|
6809
5972
|
get: {
|
6810
5973
|
body: unknown;
|
6811
5974
|
params: {};
|
6812
|
-
query: {
|
5975
|
+
query: {
|
5976
|
+
chainId: number;
|
5977
|
+
campaignId: string;
|
5978
|
+
};
|
6813
5979
|
headers: unknown;
|
6814
5980
|
response: {
|
6815
5981
|
200: {
|
6816
|
-
|
6817
|
-
|
6818
|
-
|
6819
|
-
|
6820
|
-
|
6821
|
-
message?: string | undefined;
|
6822
|
-
error: string;
|
6823
|
-
};
|
5982
|
+
recipient: string;
|
5983
|
+
reason: string;
|
5984
|
+
rewardToken: string;
|
5985
|
+
amount: string;
|
5986
|
+
}[];
|
6824
5987
|
};
|
6825
5988
|
};
|
6826
5989
|
};
|
6827
5990
|
};
|
6828
5991
|
} & {
|
6829
5992
|
v3: {
|
6830
|
-
|
5993
|
+
rewards: {
|
6831
5994
|
get: {
|
6832
5995
|
body: unknown;
|
6833
5996
|
params: {};
|
6834
5997
|
query: {
|
6835
|
-
|
6836
|
-
|
6837
|
-
proof?: string | undefined;
|
6838
|
-
reloadChainId?: number | undefined;
|
6839
|
-
chainId: never;
|
5998
|
+
chainIds?: string | string[] | undefined;
|
5999
|
+
creatorTag?: string | undefined;
|
6840
6000
|
user: string;
|
6841
6001
|
};
|
6842
6002
|
headers: unknown;
|
6843
6003
|
response: {
|
6844
6004
|
200: {
|
6845
6005
|
[x: string]: {
|
6846
|
-
|
6847
|
-
|
6848
|
-
|
6849
|
-
|
6850
|
-
|
6851
|
-
|
6852
|
-
|
6006
|
+
campaignData: {
|
6007
|
+
[x: string]: {
|
6008
|
+
[x: string]: {
|
6009
|
+
pending?: string | undefined;
|
6010
|
+
symbol: string;
|
6011
|
+
token: string;
|
6012
|
+
mainParameter: string;
|
6013
|
+
decimals: number;
|
6014
|
+
auxiliaryData1: string;
|
6015
|
+
auxiliaryData2: string;
|
6016
|
+
unclaimed: string;
|
6017
|
+
accumulated: string;
|
6018
|
+
};
|
6019
|
+
};
|
6020
|
+
};
|
6021
|
+
tokenData: {
|
6853
6022
|
[x: string]: {
|
6854
6023
|
pending?: string | undefined;
|
6024
|
+
symbol: string;
|
6025
|
+
decimals: number;
|
6026
|
+
proof: string[];
|
6855
6027
|
unclaimed: string;
|
6856
6028
|
accumulated: string;
|
6857
6029
|
};
|
@@ -6862,659 +6034,296 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6862
6034
|
};
|
6863
6035
|
};
|
6864
6036
|
};
|
6865
|
-
}
|
6866
|
-
|
6867
|
-
|
6868
|
-
|
6869
|
-
|
6870
|
-
|
6871
|
-
resolve: {};
|
6872
|
-
schema: {};
|
6873
|
-
}>, config?: import("@elysiajs/eden").Treaty.Config) => {
|
6874
|
-
index: {
|
6875
|
-
get: (options?: {
|
6876
|
-
headers?: Record<string, unknown> | undefined;
|
6877
|
-
query?: Record<string, unknown> | undefined;
|
6878
|
-
fetch?: RequestInit | undefined;
|
6879
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6880
|
-
200: string;
|
6881
|
-
}>>;
|
6882
|
-
};
|
6883
|
-
v1: {
|
6884
|
-
allowances: {
|
6885
|
-
get: (options: {
|
6886
|
-
headers?: Record<string, unknown> | undefined;
|
6887
|
-
query: {
|
6888
|
-
additionalTokenAddresses?: string[] | undefined;
|
6889
|
-
chainId: number;
|
6890
|
-
user: string;
|
6891
|
-
};
|
6892
|
-
fetch?: RequestInit | undefined;
|
6893
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6894
|
-
200: {
|
6895
|
-
[x: string]: {
|
6896
|
-
symbol: string;
|
6897
|
-
balance: string;
|
6898
|
-
decimals: number;
|
6899
|
-
};
|
6900
|
-
};
|
6901
|
-
}>>;
|
6902
|
-
};
|
6903
|
-
balances: {
|
6904
|
-
get: (options: {
|
6905
|
-
headers?: Record<string, unknown> | undefined;
|
6906
|
-
query: {
|
6907
|
-
additionalTokenAddresses?: string[] | undefined;
|
6908
|
-
chainId: number;
|
6909
|
-
user: string;
|
6910
|
-
};
|
6911
|
-
fetch?: RequestInit | undefined;
|
6912
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6913
|
-
200: {
|
6914
|
-
[x: string]: {
|
6915
|
-
symbol: string;
|
6916
|
-
balance: string;
|
6917
|
-
decimals: number;
|
6918
|
-
};
|
6919
|
-
};
|
6920
|
-
}>>;
|
6921
|
-
};
|
6922
|
-
prices: {
|
6923
|
-
get: (options: {
|
6924
|
-
headers?: Record<string, unknown> | undefined;
|
6925
|
-
query: {};
|
6926
|
-
fetch?: RequestInit | undefined;
|
6927
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6928
|
-
200: {
|
6929
|
-
rate: number;
|
6930
|
-
token: string;
|
6931
|
-
}[];
|
6932
|
-
}>>;
|
6933
|
-
};
|
6934
|
-
tokens: {
|
6935
|
-
get: (options: {
|
6936
|
-
headers?: Record<string, unknown> | undefined;
|
6937
|
-
query: {};
|
6938
|
-
fetch?: RequestInit | undefined;
|
6939
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6940
|
-
[x: string]: any;
|
6941
|
-
200: any;
|
6942
|
-
}>>;
|
6943
|
-
};
|
6944
|
-
};
|
6945
|
-
v2: {
|
6946
|
-
merkl: {
|
6947
|
-
get: (options: {
|
6948
|
-
headers?: Record<string, unknown> | undefined;
|
6037
|
+
} & {
|
6038
|
+
v3: {
|
6039
|
+
rewardsReport: {
|
6040
|
+
get: {
|
6041
|
+
body: unknown;
|
6042
|
+
params: {};
|
6949
6043
|
query: {
|
6950
|
-
|
6951
|
-
|
6952
|
-
|
6953
|
-
|
6954
|
-
|
6955
|
-
|
6956
|
-
|
6957
|
-
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
6961
|
-
|
6962
|
-
|
6963
|
-
}>>;
|
6964
|
-
};
|
6965
|
-
};
|
6966
|
-
v4: {
|
6967
|
-
opportunities: ((params: {
|
6968
|
-
id: string | number;
|
6969
|
-
}) => {
|
6970
|
-
get: (options?: {
|
6971
|
-
headers?: Record<string, unknown> | undefined;
|
6972
|
-
query?: Record<string, unknown> | undefined;
|
6973
|
-
fetch?: RequestInit | undefined;
|
6974
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6975
|
-
200: {
|
6976
|
-
protocol?: {
|
6977
|
-
name: string;
|
6978
|
-
url: string;
|
6979
|
-
description: string;
|
6980
|
-
id: string;
|
6981
|
-
tags: string[];
|
6982
|
-
icon: string;
|
6983
|
-
} | null | undefined;
|
6984
|
-
depositUrl?: string | undefined;
|
6985
|
-
aprRecord?: {
|
6986
|
-
timestamp: string | bigint;
|
6987
|
-
cumulated: number;
|
6988
|
-
breakdowns: {
|
6989
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
6990
|
-
id: number;
|
6991
|
-
identifier: string;
|
6992
|
-
value: number;
|
6993
|
-
aprRecordId: string;
|
6994
|
-
}[];
|
6995
|
-
} | undefined;
|
6996
|
-
tvlRecord?: {
|
6997
|
-
total: number;
|
6998
|
-
timestamp: string | bigint;
|
6999
|
-
breakdowns: {
|
7000
|
-
type: "TOKEN" | "PROTOCOL";
|
7001
|
-
id: number;
|
7002
|
-
identifier: string;
|
7003
|
-
value: number;
|
7004
|
-
tvlRecordId: string;
|
7005
|
-
}[];
|
7006
|
-
} | undefined;
|
7007
|
-
rewardsRecord?: {
|
7008
|
-
total: number;
|
7009
|
-
id: string;
|
7010
|
-
timestamp: string | bigint;
|
7011
|
-
breakdowns: {
|
7012
|
-
token: {
|
7013
|
-
price?: number | null | undefined;
|
7014
|
-
symbol: string;
|
7015
|
-
name: string | null;
|
7016
|
-
id: string;
|
7017
|
-
icon: string;
|
7018
|
-
chainId: number;
|
7019
|
-
address: string;
|
7020
|
-
decimals: number;
|
7021
|
-
verified: boolean;
|
7022
|
-
isTest: boolean;
|
7023
|
-
};
|
7024
|
-
id: number;
|
7025
|
-
value: number;
|
7026
|
-
campaignId: string;
|
7027
|
-
amount: string | bigint;
|
7028
|
-
dailyRewardsRecordId: string;
|
7029
|
-
}[];
|
7030
|
-
} | undefined;
|
7031
|
-
name: string;
|
7032
|
-
type: string;
|
7033
|
-
tokens: {
|
7034
|
-
price?: number | null | undefined;
|
7035
|
-
symbol: string;
|
7036
|
-
name: string | null;
|
7037
|
-
id: string;
|
7038
|
-
icon: string;
|
7039
|
-
chainId: number;
|
7040
|
-
address: string;
|
7041
|
-
decimals: number;
|
7042
|
-
verified: boolean;
|
7043
|
-
isTest: boolean;
|
6044
|
+
from?: number | undefined;
|
6045
|
+
to?: number | undefined;
|
6046
|
+
mainParameter?: string | undefined;
|
6047
|
+
chainId: number;
|
6048
|
+
campaignId: string;
|
6049
|
+
};
|
6050
|
+
headers: unknown;
|
6051
|
+
response: {
|
6052
|
+
200: {
|
6053
|
+
recipient: string;
|
6054
|
+
reason: string;
|
6055
|
+
rewardToken: string;
|
6056
|
+
amount: string;
|
7044
6057
|
}[];
|
7045
|
-
|
7046
|
-
|
7047
|
-
|
7048
|
-
|
7049
|
-
|
7050
|
-
|
7051
|
-
|
7052
|
-
|
7053
|
-
|
6058
|
+
};
|
6059
|
+
};
|
6060
|
+
};
|
6061
|
+
};
|
6062
|
+
} & {
|
6063
|
+
v3: {
|
6064
|
+
silo: {
|
6065
|
+
get: {
|
6066
|
+
body: unknown;
|
6067
|
+
params: {};
|
6068
|
+
query: {
|
7054
6069
|
chainId: number;
|
7055
|
-
|
7056
|
-
tvl: number;
|
7057
|
-
apr: number;
|
7058
|
-
dailyRewards: number;
|
6070
|
+
repository: string;
|
7059
6071
|
};
|
7060
|
-
|
7061
|
-
|
7062
|
-
|
6072
|
+
headers: unknown;
|
6073
|
+
response: {
|
6074
|
+
[x: string]: any;
|
6075
|
+
200: any;
|
7063
6076
|
};
|
7064
|
-
|
7065
|
-
|
7066
|
-
|
7067
|
-
|
6077
|
+
};
|
6078
|
+
};
|
6079
|
+
};
|
6080
|
+
} & {
|
6081
|
+
v3: {
|
6082
|
+
token: {
|
6083
|
+
get: {
|
6084
|
+
body: unknown;
|
6085
|
+
params: {};
|
6086
|
+
query: {
|
6087
|
+
chainId: number;
|
6088
|
+
address: string;
|
7068
6089
|
};
|
7069
|
-
|
7070
|
-
|
7071
|
-
get: (options?: {
|
7072
|
-
headers?: Record<string, unknown> | undefined;
|
7073
|
-
query?: Record<string, unknown> | undefined;
|
7074
|
-
fetch?: RequestInit | undefined;
|
7075
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6090
|
+
headers: unknown;
|
6091
|
+
response: {
|
7076
6092
|
200: {
|
7077
|
-
protocol?: {
|
7078
|
-
name: string;
|
7079
|
-
url: string;
|
7080
|
-
description: string;
|
7081
|
-
id: string;
|
7082
|
-
tags: string[];
|
7083
|
-
icon: string;
|
7084
|
-
} | null | undefined;
|
7085
|
-
depositUrl?: string | undefined;
|
7086
|
-
aprRecord?: {
|
7087
|
-
timestamp: string | bigint;
|
7088
|
-
cumulated: number;
|
7089
|
-
breakdowns: {
|
7090
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
7091
|
-
id: number;
|
7092
|
-
identifier: string;
|
7093
|
-
value: number;
|
7094
|
-
aprRecordId: string;
|
7095
|
-
}[];
|
7096
|
-
} | undefined;
|
7097
|
-
tvlRecord?: {
|
7098
|
-
total: number;
|
7099
|
-
timestamp: string | bigint;
|
7100
|
-
breakdowns: {
|
7101
|
-
type: "TOKEN" | "PROTOCOL";
|
7102
|
-
id: number;
|
7103
|
-
identifier: string;
|
7104
|
-
value: number;
|
7105
|
-
tvlRecordId: string;
|
7106
|
-
}[];
|
7107
|
-
} | undefined;
|
7108
|
-
rewardsRecord?: {
|
7109
|
-
total: number;
|
7110
|
-
id: string;
|
7111
|
-
timestamp: string | bigint;
|
7112
|
-
breakdowns: {
|
7113
|
-
token: {
|
7114
|
-
price?: number | null | undefined;
|
7115
|
-
symbol: string;
|
7116
|
-
name: string | null;
|
7117
|
-
id: string;
|
7118
|
-
icon: string;
|
7119
|
-
chainId: number;
|
7120
|
-
address: string;
|
7121
|
-
decimals: number;
|
7122
|
-
verified: boolean;
|
7123
|
-
isTest: boolean;
|
7124
|
-
};
|
7125
|
-
id: number;
|
7126
|
-
value: number;
|
7127
|
-
campaignId: string;
|
7128
|
-
amount: string | bigint;
|
7129
|
-
dailyRewardsRecordId: string;
|
7130
|
-
}[];
|
7131
|
-
} | undefined;
|
7132
6093
|
name: string;
|
7133
|
-
|
7134
|
-
|
7135
|
-
|
7136
|
-
|
7137
|
-
|
7138
|
-
|
7139
|
-
|
7140
|
-
|
7141
|
-
|
7142
|
-
|
7143
|
-
|
7144
|
-
|
7145
|
-
|
7146
|
-
|
7147
|
-
|
7148
|
-
|
7149
|
-
|
7150
|
-
|
7151
|
-
|
7152
|
-
|
7153
|
-
|
6094
|
+
symbol: string;
|
6095
|
+
decimals: number;
|
6096
|
+
};
|
6097
|
+
};
|
6098
|
+
};
|
6099
|
+
};
|
6100
|
+
};
|
6101
|
+
} & {
|
6102
|
+
v3: {
|
6103
|
+
tokenUnclaimed: {
|
6104
|
+
get: {
|
6105
|
+
body: unknown;
|
6106
|
+
params: {};
|
6107
|
+
query: {
|
6108
|
+
token: string;
|
6109
|
+
chainId: number;
|
6110
|
+
};
|
6111
|
+
headers: unknown;
|
6112
|
+
response: {
|
6113
|
+
200: {
|
6114
|
+
message: string;
|
6115
|
+
};
|
6116
|
+
};
|
6117
|
+
};
|
6118
|
+
};
|
6119
|
+
};
|
6120
|
+
} & {
|
6121
|
+
v3: {
|
6122
|
+
updates: {
|
6123
|
+
get: {
|
6124
|
+
body: unknown;
|
6125
|
+
params: {};
|
6126
|
+
query: {};
|
6127
|
+
headers: unknown;
|
6128
|
+
response: {
|
6129
|
+
200: {
|
6130
|
+
[x: number]: {
|
6131
|
+
[campaignId: string]: number;
|
7154
6132
|
};
|
7155
|
-
|
7156
|
-
|
7157
|
-
|
7158
|
-
|
7159
|
-
|
7160
|
-
|
7161
|
-
|
7162
|
-
|
7163
|
-
|
7164
|
-
|
7165
|
-
|
7166
|
-
|
7167
|
-
|
7168
|
-
|
7169
|
-
|
7170
|
-
|
7171
|
-
|
7172
|
-
|
7173
|
-
|
7174
|
-
|
7175
|
-
|
7176
|
-
|
7177
|
-
|
7178
|
-
|
7179
|
-
|
7180
|
-
|
7181
|
-
|
7182
|
-
|
7183
|
-
|
7184
|
-
|
7185
|
-
|
7186
|
-
|
7187
|
-
|
7188
|
-
|
7189
|
-
|
7190
|
-
|
7191
|
-
|
7192
|
-
|
7193
|
-
|
7194
|
-
symbol: string;
|
7195
|
-
name: string | null;
|
7196
|
-
id: string;
|
7197
|
-
icon: string;
|
7198
|
-
chainId: number;
|
7199
|
-
address: string;
|
7200
|
-
decimals: number;
|
7201
|
-
verified: boolean;
|
7202
|
-
isTest: boolean;
|
6133
|
+
};
|
6134
|
+
readonly 400: {
|
6135
|
+
message?: string | undefined;
|
6136
|
+
error: string;
|
6137
|
+
};
|
6138
|
+
};
|
6139
|
+
};
|
6140
|
+
};
|
6141
|
+
};
|
6142
|
+
} & {
|
6143
|
+
v3: {
|
6144
|
+
userRewards: {
|
6145
|
+
get: {
|
6146
|
+
body: unknown;
|
6147
|
+
params: {};
|
6148
|
+
query: {
|
6149
|
+
mainParameter?: string | undefined;
|
6150
|
+
rewardToken?: string | undefined;
|
6151
|
+
proof?: string | undefined;
|
6152
|
+
reloadChainId?: number | undefined;
|
6153
|
+
chainId: never;
|
6154
|
+
user: string;
|
6155
|
+
};
|
6156
|
+
headers: unknown;
|
6157
|
+
response: {
|
6158
|
+
200: {
|
6159
|
+
[x: string]: {
|
6160
|
+
pending?: string | undefined;
|
6161
|
+
proof?: string[] | undefined;
|
6162
|
+
symbol: string;
|
6163
|
+
decimals: number;
|
6164
|
+
unclaimed: string;
|
6165
|
+
accumulated: string;
|
6166
|
+
reasons: {
|
6167
|
+
[x: string]: {
|
6168
|
+
pending?: string | undefined;
|
6169
|
+
unclaimed: string;
|
6170
|
+
accumulated: string;
|
6171
|
+
};
|
7203
6172
|
};
|
7204
|
-
}
|
7205
|
-
};
|
7206
|
-
readonly 404: {
|
7207
|
-
message: string;
|
7208
|
-
name: string;
|
7209
|
-
};
|
7210
|
-
readonly 500: {
|
7211
|
-
code: string;
|
7212
|
-
info: string;
|
7213
|
-
httpCode: number;
|
6173
|
+
};
|
7214
6174
|
};
|
7215
|
-
}
|
6175
|
+
};
|
7216
6176
|
};
|
7217
|
-
|
7218
|
-
|
7219
|
-
|
7220
|
-
|
7221
|
-
|
7222
|
-
|
6177
|
+
};
|
6178
|
+
};
|
6179
|
+
}, {
|
6180
|
+
derive: {};
|
6181
|
+
resolve: {};
|
6182
|
+
schema: {};
|
6183
|
+
}, {
|
6184
|
+
derive: {};
|
6185
|
+
resolve: {};
|
6186
|
+
schema: {};
|
6187
|
+
}>, config?: import("@elysiajs/eden").Treaty.Config) => {
|
6188
|
+
index: {
|
6189
|
+
get: (options?: {
|
6190
|
+
headers?: Record<string, unknown> | undefined;
|
6191
|
+
query?: Record<string, unknown> | undefined;
|
6192
|
+
fetch?: RequestInit | undefined;
|
6193
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6194
|
+
200: string;
|
6195
|
+
}>>;
|
6196
|
+
};
|
6197
|
+
v1: {
|
6198
|
+
allowances: {
|
6199
|
+
get: (options: {
|
6200
|
+
headers?: Record<string, unknown> | undefined;
|
6201
|
+
query: {
|
6202
|
+
additionalTokenAddresses?: string[] | undefined;
|
6203
|
+
chainId: number;
|
6204
|
+
user: string;
|
7223
6205
|
};
|
7224
|
-
query?: Record<string, unknown> | undefined;
|
7225
6206
|
fetch?: RequestInit | undefined;
|
7226
6207
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
7227
6208
|
200: {
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7232
|
-
|
7233
|
-
identifier: string;
|
7234
|
-
chainId: number;
|
7235
|
-
action: import("../../database/api/.generated").$Enums.OpportunityAction;
|
7236
|
-
depositUrl: string | null;
|
7237
|
-
mainProtocolId: string | null;
|
7238
|
-
tvl: number;
|
7239
|
-
apr: number;
|
7240
|
-
dailyRewards: number;
|
6209
|
+
[x: string]: {
|
6210
|
+
symbol: string;
|
6211
|
+
balance: string;
|
6212
|
+
decimals: number;
|
6213
|
+
};
|
7241
6214
|
};
|
7242
6215
|
}>>;
|
7243
|
-
}
|
7244
|
-
|
7245
|
-
|
7246
|
-
|
7247
|
-
|
7248
|
-
|
7249
|
-
chainId: number;
|
7250
|
-
address: string;
|
7251
|
-
}[];
|
7252
|
-
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
7253
|
-
identifier: string;
|
6216
|
+
};
|
6217
|
+
balances: {
|
6218
|
+
get: (options: {
|
6219
|
+
headers?: Record<string, unknown> | undefined;
|
6220
|
+
query: {
|
6221
|
+
additionalTokenAddresses?: string[] | undefined;
|
7254
6222
|
chainId: number;
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
7265
|
-
200: void;
|
7266
|
-
}>>;
|
7267
|
-
get: (options: {
|
7268
|
-
headers?: Record<string, unknown> | undefined;
|
7269
|
-
query: {
|
7270
|
-
sort?: string | undefined;
|
7271
|
-
name?: string | undefined;
|
7272
|
-
tokens?: string | undefined;
|
7273
|
-
status?: string | undefined;
|
7274
|
-
items?: number | undefined;
|
7275
|
-
tags?: string | undefined;
|
7276
|
-
page?: number | undefined;
|
7277
|
-
chainId?: string | undefined;
|
7278
|
-
action?: string | undefined;
|
7279
|
-
mainProtocolId?: string | undefined;
|
7280
|
-
order?: string | undefined;
|
7281
|
-
test?: boolean | undefined;
|
7282
|
-
minimumTvl?: number | undefined;
|
6223
|
+
user: string;
|
6224
|
+
};
|
6225
|
+
fetch?: RequestInit | undefined;
|
6226
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6227
|
+
200: {
|
6228
|
+
[x: string]: {
|
6229
|
+
symbol: string;
|
6230
|
+
balance: string;
|
6231
|
+
decimals: number;
|
7283
6232
|
};
|
7284
|
-
|
7285
|
-
|
7286
|
-
|
7287
|
-
|
7288
|
-
|
7289
|
-
|
7290
|
-
|
7291
|
-
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
|
7296
|
-
|
7297
|
-
|
7298
|
-
|
7299
|
-
|
7300
|
-
|
7301
|
-
|
7302
|
-
|
7303
|
-
|
7304
|
-
|
7305
|
-
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7309
|
-
|
7310
|
-
|
7311
|
-
|
7312
|
-
|
7313
|
-
|
7314
|
-
|
7315
|
-
|
7316
|
-
|
7317
|
-
|
7318
|
-
|
7319
|
-
|
7320
|
-
|
7321
|
-
|
7322
|
-
|
7323
|
-
|
7324
|
-
|
7325
|
-
|
7326
|
-
|
7327
|
-
|
7328
|
-
|
7329
|
-
|
7330
|
-
|
7331
|
-
|
7332
|
-
|
7333
|
-
|
7334
|
-
|
7335
|
-
|
7336
|
-
|
7337
|
-
|
7338
|
-
|
7339
|
-
|
7340
|
-
|
7341
|
-
|
7342
|
-
name: string;
|
7343
|
-
|
7344
|
-
|
7345
|
-
price?: number | null | undefined;
|
7346
|
-
symbol: string;
|
7347
|
-
name: string | null;
|
7348
|
-
id: string;
|
7349
|
-
icon: string;
|
7350
|
-
chainId: number;
|
7351
|
-
address: string;
|
7352
|
-
decimals: number;
|
7353
|
-
verified: boolean;
|
7354
|
-
isTest: boolean;
|
7355
|
-
}[];
|
6233
|
+
};
|
6234
|
+
}>>;
|
6235
|
+
};
|
6236
|
+
prices: {
|
6237
|
+
get: (options: {
|
6238
|
+
headers?: Record<string, unknown> | undefined;
|
6239
|
+
query: {};
|
6240
|
+
fetch?: RequestInit | undefined;
|
6241
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6242
|
+
200: {
|
6243
|
+
rate: number;
|
6244
|
+
token: string;
|
6245
|
+
}[];
|
6246
|
+
}>>;
|
6247
|
+
};
|
6248
|
+
tokens: {
|
6249
|
+
get: (options: {
|
6250
|
+
headers?: Record<string, unknown> | undefined;
|
6251
|
+
query: {};
|
6252
|
+
fetch?: RequestInit | undefined;
|
6253
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6254
|
+
[x: string]: any;
|
6255
|
+
200: any;
|
6256
|
+
}>>;
|
6257
|
+
};
|
6258
|
+
};
|
6259
|
+
v2: {
|
6260
|
+
merkl: {
|
6261
|
+
get: (options: {
|
6262
|
+
headers?: Record<string, unknown> | undefined;
|
6263
|
+
query: {
|
6264
|
+
user?: string | undefined;
|
6265
|
+
chainIds?: number | number[] | undefined;
|
6266
|
+
AMMs?: string | string[] | undefined;
|
6267
|
+
onlyLive?: string | undefined;
|
6268
|
+
"AMMs[]"?: string | string[] | undefined;
|
6269
|
+
"AMMs[0]"?: string | undefined;
|
6270
|
+
"chainIds[]"?: number | number[] | undefined;
|
6271
|
+
"chainIds[0]"?: number | undefined;
|
6272
|
+
};
|
6273
|
+
fetch?: RequestInit | undefined;
|
6274
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6275
|
+
[x: string]: any;
|
6276
|
+
200: any;
|
6277
|
+
}>>;
|
6278
|
+
};
|
6279
|
+
};
|
6280
|
+
v4: {
|
6281
|
+
opportunities: ((params: {
|
6282
|
+
id: string | number;
|
6283
|
+
}) => {
|
6284
|
+
get: (options?: {
|
6285
|
+
headers?: Record<string, unknown> | undefined;
|
6286
|
+
query?: Record<string, unknown> | undefined;
|
6287
|
+
fetch?: RequestInit | undefined;
|
6288
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6289
|
+
200: {
|
6290
|
+
protocol?: {
|
6291
|
+
name: string;
|
6292
|
+
url: string;
|
6293
|
+
description: string;
|
7356
6294
|
id: string;
|
7357
|
-
status: string;
|
7358
6295
|
tags: string[];
|
7359
|
-
|
7360
|
-
|
7361
|
-
|
6296
|
+
icon: string;
|
6297
|
+
} | null | undefined;
|
6298
|
+
depositUrl?: string | undefined;
|
6299
|
+
aprRecord?: {
|
6300
|
+
timestamp: string | bigint;
|
6301
|
+
cumulated: number;
|
6302
|
+
breakdowns: {
|
6303
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
7362
6304
|
id: number;
|
7363
|
-
|
7364
|
-
|
7365
|
-
|
7366
|
-
action: string;
|
7367
|
-
tvl: number;
|
7368
|
-
apr: number;
|
7369
|
-
dailyRewards: number;
|
7370
|
-
} | null)[];
|
7371
|
-
} | {
|
7372
|
-
200: AsyncGenerator<unknown, unknown, unknown>;
|
7373
|
-
} | {
|
7374
|
-
200: (Response | ({
|
7375
|
-
protocol?: {
|
7376
|
-
name: string;
|
7377
|
-
url: string;
|
7378
|
-
description: string;
|
7379
|
-
id: string;
|
7380
|
-
tags: string[];
|
7381
|
-
icon: string;
|
7382
|
-
} | null | undefined;
|
7383
|
-
depositUrl?: string | undefined;
|
7384
|
-
aprRecord?: {
|
7385
|
-
timestamp: string | bigint;
|
7386
|
-
cumulated: number;
|
7387
|
-
breakdowns: {
|
7388
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
7389
|
-
id: number;
|
7390
|
-
identifier: string;
|
7391
|
-
value: number;
|
7392
|
-
aprRecordId: string;
|
7393
|
-
}[];
|
7394
|
-
} | undefined;
|
7395
|
-
tvlRecord?: {
|
7396
|
-
total: number;
|
7397
|
-
timestamp: string | bigint;
|
7398
|
-
breakdowns: {
|
7399
|
-
type: "TOKEN" | "PROTOCOL";
|
7400
|
-
id: number;
|
7401
|
-
identifier: string;
|
7402
|
-
value: number;
|
7403
|
-
tvlRecordId: string;
|
7404
|
-
}[];
|
7405
|
-
} | undefined;
|
7406
|
-
rewardsRecord?: {
|
7407
|
-
total: number;
|
7408
|
-
id: string;
|
7409
|
-
timestamp: string | bigint;
|
7410
|
-
breakdowns: {
|
7411
|
-
token: {
|
7412
|
-
price?: number | null | undefined;
|
7413
|
-
symbol: string;
|
7414
|
-
name: string | null;
|
7415
|
-
id: string;
|
7416
|
-
icon: string;
|
7417
|
-
chainId: number;
|
7418
|
-
address: string;
|
7419
|
-
decimals: number;
|
7420
|
-
verified: boolean;
|
7421
|
-
isTest: boolean;
|
7422
|
-
};
|
7423
|
-
id: number;
|
7424
|
-
value: number;
|
7425
|
-
campaignId: string;
|
7426
|
-
amount: string | bigint;
|
7427
|
-
dailyRewardsRecordId: string;
|
7428
|
-
}[];
|
7429
|
-
} | undefined;
|
7430
|
-
name: string;
|
7431
|
-
type: string;
|
7432
|
-
tokens: {
|
7433
|
-
price?: number | null | undefined;
|
7434
|
-
symbol: string;
|
7435
|
-
name: string | null;
|
7436
|
-
id: string;
|
7437
|
-
icon: string;
|
7438
|
-
chainId: number;
|
7439
|
-
address: string;
|
7440
|
-
decimals: number;
|
7441
|
-
verified: boolean;
|
7442
|
-
isTest: boolean;
|
6305
|
+
identifier: string;
|
6306
|
+
value: number;
|
6307
|
+
aprRecordId: string;
|
7443
6308
|
}[];
|
7444
|
-
|
7445
|
-
|
7446
|
-
|
7447
|
-
|
7448
|
-
|
7449
|
-
|
6309
|
+
} | undefined;
|
6310
|
+
tvlRecord?: {
|
6311
|
+
total: number;
|
6312
|
+
timestamp: string | bigint;
|
6313
|
+
breakdowns: {
|
6314
|
+
type: "TOKEN" | "PROTOCOL";
|
7450
6315
|
id: number;
|
7451
|
-
|
7452
|
-
|
7453
|
-
|
7454
|
-
|
7455
|
-
|
7456
|
-
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7460
|
-
|
7461
|
-
|
7462
|
-
url: string;
|
7463
|
-
description: string;
|
7464
|
-
id: string;
|
7465
|
-
tags: string[];
|
7466
|
-
icon: string;
|
7467
|
-
} | null | undefined;
|
7468
|
-
depositUrl?: string | undefined;
|
7469
|
-
aprRecord?: {
|
7470
|
-
timestamp: string | bigint;
|
7471
|
-
cumulated: number;
|
7472
|
-
breakdowns: {
|
7473
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
7474
|
-
id: number;
|
7475
|
-
identifier: string;
|
7476
|
-
value: number;
|
7477
|
-
aprRecordId: string;
|
7478
|
-
}[];
|
7479
|
-
} | undefined;
|
7480
|
-
tvlRecord?: {
|
7481
|
-
total: number;
|
7482
|
-
timestamp: string | bigint;
|
7483
|
-
breakdowns: {
|
7484
|
-
type: "TOKEN" | "PROTOCOL";
|
7485
|
-
id: number;
|
7486
|
-
identifier: string;
|
7487
|
-
value: number;
|
7488
|
-
tvlRecordId: string;
|
7489
|
-
}[];
|
7490
|
-
} | undefined;
|
7491
|
-
rewardsRecord?: {
|
7492
|
-
total: number;
|
7493
|
-
id: string;
|
7494
|
-
timestamp: string | bigint;
|
7495
|
-
breakdowns: {
|
7496
|
-
token: {
|
7497
|
-
price?: number | null | undefined;
|
7498
|
-
symbol: string;
|
7499
|
-
name: string | null;
|
7500
|
-
id: string;
|
7501
|
-
icon: string;
|
7502
|
-
chainId: number;
|
7503
|
-
address: string;
|
7504
|
-
decimals: number;
|
7505
|
-
verified: boolean;
|
7506
|
-
isTest: boolean;
|
7507
|
-
};
|
7508
|
-
id: number;
|
7509
|
-
value: number;
|
7510
|
-
campaignId: string;
|
7511
|
-
amount: string | bigint;
|
7512
|
-
dailyRewardsRecordId: string;
|
7513
|
-
}[];
|
7514
|
-
} | undefined;
|
7515
|
-
name: string;
|
7516
|
-
type: string;
|
7517
|
-
tokens: {
|
6316
|
+
identifier: string;
|
6317
|
+
value: number;
|
6318
|
+
tvlRecordId: string;
|
6319
|
+
}[];
|
6320
|
+
} | undefined;
|
6321
|
+
rewardsRecord?: {
|
6322
|
+
total: number;
|
6323
|
+
id: string;
|
6324
|
+
timestamp: string | bigint;
|
6325
|
+
breakdowns: {
|
6326
|
+
token: {
|
7518
6327
|
price?: number | null | undefined;
|
7519
6328
|
symbol: string;
|
7520
6329
|
name: string | null;
|
@@ -7525,23 +6334,60 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7525
6334
|
decimals: number;
|
7526
6335
|
verified: boolean;
|
7527
6336
|
isTest: boolean;
|
7528
|
-
}[];
|
7529
|
-
id: string;
|
7530
|
-
status: string;
|
7531
|
-
tags: string[];
|
7532
|
-
identifier: string;
|
7533
|
-
chain: {
|
7534
|
-
name: string;
|
7535
|
-
id: number;
|
7536
|
-
icon: string;
|
7537
6337
|
};
|
7538
|
-
|
7539
|
-
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7543
|
-
}
|
7544
|
-
}
|
6338
|
+
id: number;
|
6339
|
+
value: number;
|
6340
|
+
campaignId: string;
|
6341
|
+
amount: string | bigint;
|
6342
|
+
dailyRewardsRecordId: string;
|
6343
|
+
}[];
|
6344
|
+
} | undefined;
|
6345
|
+
name: string;
|
6346
|
+
type: string;
|
6347
|
+
tokens: {
|
6348
|
+
price?: number | null | undefined;
|
6349
|
+
symbol: string;
|
6350
|
+
name: string | null;
|
6351
|
+
id: string;
|
6352
|
+
icon: string;
|
6353
|
+
chainId: number;
|
6354
|
+
address: string;
|
6355
|
+
decimals: number;
|
6356
|
+
verified: boolean;
|
6357
|
+
isTest: boolean;
|
6358
|
+
}[];
|
6359
|
+
id: string;
|
6360
|
+
status: string;
|
6361
|
+
tags: string[];
|
6362
|
+
identifier: string;
|
6363
|
+
chain: {
|
6364
|
+
name: string;
|
6365
|
+
id: number;
|
6366
|
+
icon: string;
|
6367
|
+
};
|
6368
|
+
chainId: number;
|
6369
|
+
action: string;
|
6370
|
+
tvl: number;
|
6371
|
+
apr: number;
|
6372
|
+
dailyRewards: number;
|
6373
|
+
};
|
6374
|
+
readonly 404: {
|
6375
|
+
message: string;
|
6376
|
+
name: string;
|
6377
|
+
};
|
6378
|
+
readonly 500: {
|
6379
|
+
code: string;
|
6380
|
+
info: string;
|
6381
|
+
httpCode: number;
|
6382
|
+
};
|
6383
|
+
}>>;
|
6384
|
+
campaigns: {
|
6385
|
+
get: (options?: {
|
6386
|
+
headers?: Record<string, unknown> | undefined;
|
6387
|
+
query?: Record<string, unknown> | undefined;
|
6388
|
+
fetch?: RequestInit | undefined;
|
6389
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6390
|
+
200: {
|
7545
6391
|
protocol?: {
|
7546
6392
|
name: string;
|
7547
6393
|
url: string;
|
@@ -7625,68 +6471,39 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7625
6471
|
tvl: number;
|
7626
6472
|
apr: number;
|
7627
6473
|
dailyRewards: number;
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
|
7632
|
-
|
6474
|
+
campaigns: {
|
6475
|
+
campaignStatus?: {
|
6476
|
+
error?: string | undefined;
|
6477
|
+
details?: any;
|
6478
|
+
status: string;
|
6479
|
+
campaignId: string;
|
6480
|
+
computedUntil: string | bigint;
|
6481
|
+
processingStarted: string | bigint;
|
6482
|
+
} | undefined;
|
6483
|
+
distributionChain?: {
|
7633
6484
|
name: string;
|
7634
|
-
|
7635
|
-
description: string;
|
7636
|
-
id: string;
|
7637
|
-
tags: string[];
|
6485
|
+
id: number;
|
7638
6486
|
icon: string;
|
7639
|
-
} | null | undefined;
|
7640
|
-
depositUrl?: string | undefined;
|
7641
|
-
aprRecord?: {
|
7642
|
-
timestamp: string | bigint;
|
7643
|
-
cumulated: number;
|
7644
|
-
breakdowns: {
|
7645
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
7646
|
-
id: number;
|
7647
|
-
identifier: string;
|
7648
|
-
value: number;
|
7649
|
-
aprRecordId: string;
|
7650
|
-
}[];
|
7651
|
-
} | undefined;
|
7652
|
-
tvlRecord?: {
|
7653
|
-
total: number;
|
7654
|
-
timestamp: string | bigint;
|
7655
|
-
breakdowns: {
|
7656
|
-
type: "TOKEN" | "PROTOCOL";
|
7657
|
-
id: number;
|
7658
|
-
identifier: string;
|
7659
|
-
value: number;
|
7660
|
-
tvlRecordId: string;
|
7661
|
-
}[];
|
7662
|
-
} | undefined;
|
7663
|
-
rewardsRecord?: {
|
7664
|
-
total: number;
|
7665
|
-
id: string;
|
7666
|
-
timestamp: string | bigint;
|
7667
|
-
breakdowns: {
|
7668
|
-
token: {
|
7669
|
-
price?: number | null | undefined;
|
7670
|
-
symbol: string;
|
7671
|
-
name: string | null;
|
7672
|
-
id: string;
|
7673
|
-
icon: string;
|
7674
|
-
chainId: number;
|
7675
|
-
address: string;
|
7676
|
-
decimals: number;
|
7677
|
-
verified: boolean;
|
7678
|
-
isTest: boolean;
|
7679
|
-
};
|
7680
|
-
id: number;
|
7681
|
-
value: number;
|
7682
|
-
campaignId: string;
|
7683
|
-
amount: string | bigint;
|
7684
|
-
dailyRewardsRecordId: string;
|
7685
|
-
}[];
|
7686
6487
|
} | undefined;
|
7687
|
-
name: string;
|
7688
6488
|
type: string;
|
7689
|
-
|
6489
|
+
id: string;
|
6490
|
+
params: any;
|
6491
|
+
subType: number | null;
|
6492
|
+
chain: {
|
6493
|
+
name: string;
|
6494
|
+
id: number;
|
6495
|
+
icon: string;
|
6496
|
+
};
|
6497
|
+
startTimestamp: string | bigint;
|
6498
|
+
endTimestamp: string | bigint;
|
6499
|
+
computeChainId: number;
|
6500
|
+
distributionChainId: number;
|
6501
|
+
campaignId: string;
|
6502
|
+
rewardTokenId: string;
|
6503
|
+
amount: string;
|
6504
|
+
opportunityId: string;
|
6505
|
+
creatorAddress: string;
|
6506
|
+
rewardToken: {
|
7690
6507
|
price?: number | null | undefined;
|
7691
6508
|
symbol: string;
|
7692
6509
|
name: string | null;
|
@@ -7697,23 +6514,177 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7697
6514
|
decimals: number;
|
7698
6515
|
verified: boolean;
|
7699
6516
|
isTest: boolean;
|
6517
|
+
};
|
6518
|
+
}[];
|
6519
|
+
};
|
6520
|
+
readonly 404: {
|
6521
|
+
message: string;
|
6522
|
+
name: string;
|
6523
|
+
};
|
6524
|
+
readonly 500: {
|
6525
|
+
code: string;
|
6526
|
+
info: string;
|
6527
|
+
httpCode: number;
|
6528
|
+
};
|
6529
|
+
}>>;
|
6530
|
+
};
|
6531
|
+
patch: (body: {
|
6532
|
+
name?: string | undefined;
|
6533
|
+
tags?: string[] | undefined;
|
6534
|
+
}, options: {
|
6535
|
+
headers: {
|
6536
|
+
authorization: string;
|
6537
|
+
};
|
6538
|
+
query?: Record<string, unknown> | undefined;
|
6539
|
+
fetch?: RequestInit | undefined;
|
6540
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6541
|
+
200: {
|
6542
|
+
name: string;
|
6543
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
6544
|
+
id: string;
|
6545
|
+
status: import("../../database/api/.generated").$Enums.Status;
|
6546
|
+
tags: string[];
|
6547
|
+
identifier: string;
|
6548
|
+
chainId: number;
|
6549
|
+
action: import("../../database/api/.generated").$Enums.OpportunityAction;
|
6550
|
+
depositUrl: string | null;
|
6551
|
+
mainProtocolId: string | null;
|
6552
|
+
tvl: number;
|
6553
|
+
apr: number;
|
6554
|
+
dailyRewards: number;
|
6555
|
+
};
|
6556
|
+
}>>;
|
6557
|
+
}) & {
|
6558
|
+
index: {
|
6559
|
+
post: (body: {
|
6560
|
+
name?: string | undefined;
|
6561
|
+
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
6562
|
+
tokens: {
|
6563
|
+
chainId: number;
|
6564
|
+
address: string;
|
6565
|
+
}[];
|
6566
|
+
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
6567
|
+
identifier: string;
|
6568
|
+
chainId: number;
|
6569
|
+
action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
|
6570
|
+
protocols: string[];
|
6571
|
+
mainProtocol: string;
|
6572
|
+
}, options: {
|
6573
|
+
headers: {
|
6574
|
+
authorization: string;
|
6575
|
+
};
|
6576
|
+
query?: Record<string, unknown> | undefined;
|
6577
|
+
fetch?: RequestInit | undefined;
|
6578
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6579
|
+
200: void;
|
6580
|
+
}>>;
|
6581
|
+
get: (options: {
|
6582
|
+
headers?: Record<string, unknown> | undefined;
|
6583
|
+
query: {
|
6584
|
+
sort?: string | undefined;
|
6585
|
+
name?: string | undefined;
|
6586
|
+
tokens?: string | undefined;
|
6587
|
+
status?: string | undefined;
|
6588
|
+
items?: number | undefined;
|
6589
|
+
tags?: string | undefined;
|
6590
|
+
page?: number | undefined;
|
6591
|
+
chainId?: string | undefined;
|
6592
|
+
action?: string | undefined;
|
6593
|
+
mainProtocolId?: string | undefined;
|
6594
|
+
order?: string | undefined;
|
6595
|
+
test?: boolean | undefined;
|
6596
|
+
minimumTvl?: number | undefined;
|
6597
|
+
};
|
6598
|
+
fetch?: RequestInit | undefined;
|
6599
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6600
|
+
200: {
|
6601
|
+
aprRecord: {
|
6602
|
+
cumulated: number;
|
6603
|
+
timestamp: bigint;
|
6604
|
+
breakdowns: {
|
6605
|
+
type: import("../../database/api/.generated").$Enums.AprType;
|
6606
|
+
id: number;
|
6607
|
+
identifier: string;
|
6608
|
+
value: number;
|
6609
|
+
aprRecordId: string;
|
7700
6610
|
}[];
|
6611
|
+
};
|
6612
|
+
tvlRecord: {
|
7701
6613
|
id: string;
|
7702
|
-
|
7703
|
-
|
7704
|
-
|
7705
|
-
|
7706
|
-
name: string;
|
6614
|
+
total: number;
|
6615
|
+
timestamp: bigint;
|
6616
|
+
breakdowns: {
|
6617
|
+
type: import("../../database/api/.generated").$Enums.TvlType;
|
7707
6618
|
id: number;
|
7708
|
-
|
7709
|
-
|
6619
|
+
identifier: string;
|
6620
|
+
value: number;
|
6621
|
+
tvlRecordId: string;
|
6622
|
+
}[];
|
6623
|
+
};
|
6624
|
+
rewardsRecord: {
|
6625
|
+
id: string;
|
6626
|
+
total: number;
|
6627
|
+
timestamp: bigint;
|
6628
|
+
breakdowns: {
|
6629
|
+
id: number;
|
6630
|
+
value: number;
|
6631
|
+
campaignId: string;
|
6632
|
+
dailyRewardsRecordId: string;
|
6633
|
+
token: {
|
6634
|
+
symbol: string;
|
6635
|
+
name: string | null;
|
6636
|
+
id: string;
|
6637
|
+
icon: string;
|
6638
|
+
chainId: number;
|
6639
|
+
address: string;
|
6640
|
+
decimals: number;
|
6641
|
+
displaySymbol: string;
|
6642
|
+
verified: boolean;
|
6643
|
+
isTest: boolean;
|
6644
|
+
price: number | null;
|
6645
|
+
};
|
6646
|
+
amount: bigint;
|
6647
|
+
}[];
|
6648
|
+
};
|
6649
|
+
id: string;
|
6650
|
+
depositUrl: string | undefined;
|
6651
|
+
tokens: ({
|
6652
|
+
symbol: string;
|
6653
|
+
name: string | null;
|
6654
|
+
id: string;
|
6655
|
+
icon: string;
|
7710
6656
|
chainId: number;
|
7711
|
-
|
7712
|
-
|
7713
|
-
|
7714
|
-
|
7715
|
-
}
|
7716
|
-
|
6657
|
+
address: string;
|
6658
|
+
decimals: number;
|
6659
|
+
verified: boolean;
|
6660
|
+
isTest: boolean;
|
6661
|
+
} & {
|
6662
|
+
price?: number | null | undefined;
|
6663
|
+
})[];
|
6664
|
+
chain: {
|
6665
|
+
name: string;
|
6666
|
+
id: number;
|
6667
|
+
icon: string;
|
6668
|
+
};
|
6669
|
+
protocol: {
|
6670
|
+
name: string;
|
6671
|
+
url: string;
|
6672
|
+
description: string;
|
6673
|
+
id: string;
|
6674
|
+
tags: string[];
|
6675
|
+
icon: string;
|
6676
|
+
} | undefined;
|
6677
|
+
name: string;
|
6678
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
6679
|
+
status: import("../../database/api/.generated").$Enums.Status;
|
6680
|
+
tags: string[];
|
6681
|
+
identifier: string;
|
6682
|
+
chainId: number;
|
6683
|
+
action: import("../../database/api/.generated").$Enums.OpportunityAction;
|
6684
|
+
tvl: number;
|
6685
|
+
apr: number;
|
6686
|
+
dailyRewards: number;
|
6687
|
+
}[];
|
7717
6688
|
}>>;
|
7718
6689
|
};
|
7719
6690
|
count: {
|