@merkl/api 0.16.39 → 0.16.41
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/database/api/.generated/edge.js +2 -2
- package/dist/database/api/.generated/index.js +2 -2
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +4 -0
- package/dist/src/eden/index.d.ts +7600 -5065
- package/dist/src/entities/opportunity.js +4 -0
- package/dist/src/index.d.ts +753 -246
- package/dist/src/jobs/etl/update-dynamic-data.d.ts +1 -0
- package/dist/src/jobs/etl/update-dynamic-data.js +71 -0
- package/dist/src/libs/campaigns/campaignsDynamicData.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignsDynamicData.js +22 -0
- package/dist/src/modules/v4/airflow/airflow.service.d.ts +3 -0
- package/dist/src/modules/v4/airflow/airflow.service.js +20 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +81 -1
- package/dist/src/modules/v4/campaign/campaign.repository.js +57 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +57 -3
- package/dist/src/modules/v4/campaign/campaign.service.js +15 -6
- package/dist/src/modules/v4/campaign/index.d.ts +0 -1
- package/dist/src/modules/v4/campaign/index.js +0 -1
- package/dist/src/modules/v4/chain/chain.controller.d.ts +12 -36
- package/dist/src/modules/v4/chain/chain.controller.js +8 -6
- package/dist/src/modules/v4/chain/chain.model.d.ts +2 -0
- package/dist/src/modules/v4/chain/chain.model.js +2 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +9 -11
- package/dist/src/modules/v4/chain/chain.repository.js +5 -18
- package/dist/src/modules/v4/chain/chain.service.d.ts +5 -0
- package/dist/src/modules/v4/chain/chain.service.js +4 -1
- package/dist/src/modules/v4/chain/index.d.ts +2 -1
- package/dist/src/modules/v4/chain/index.js +6 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/index.d.ts +0 -1
- package/dist/src/modules/v4/computedValue/index.js +0 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -12
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -12
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +703 -134
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +2 -4
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -204
- package/dist/src/modules/v4/opportunity/opportunity.service.js +6 -4
- package/dist/src/modules/v4/opportunity/subservices/getVestMetaData.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getVestMetaData.service.js +1 -1
- package/dist/src/modules/v4/protocol/index.d.ts +2 -1
- package/dist/src/modules/v4/protocol/index.js +8 -1
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +10 -40
- package/dist/src/modules/v4/protocol/protocol.controller.js +11 -9
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +7 -7
- package/dist/src/modules/v4/protocol/protocol.service.js +10 -10
- package/dist/src/modules/v4/reward/index.d.ts +0 -1
- package/dist/src/modules/v4/reward/index.js +0 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +5 -5
- package/dist/src/modules/v4/reward/reward.service.js +6 -7
- package/dist/src/modules/v4/router.d.ts +752 -245
- package/dist/src/modules/v4/status/index.d.ts +0 -1
- package/dist/src/modules/v4/status/index.js +0 -1
- package/dist/src/modules/v4/status/status.controller.d.ts +1 -1
- package/dist/src/modules/v4/status/status.repository.d.ts +1 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -0
- package/dist/src/modules/v4/token/token.model.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.js +1 -0
- package/dist/src/modules/v4/token/token.repository.js +4 -1
- package/dist/src/modules/v4/token/token.service.d.ts +1 -0
- package/dist/src/modules/v4/token/token.service.js +10 -0
- package/dist/src/routes/v3/campaigns.d.ts +1 -1
- package/dist/src/routes/v3/opportunity.js +1 -1
- package/dist/src/routes/v3/router.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -191,57 +191,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
191
191
|
amount: bigint;
|
192
192
|
}[];
|
193
193
|
};
|
194
|
-
campaigns: {
|
195
|
-
params: any;
|
196
|
-
chain: {
|
197
|
-
name: string;
|
198
|
-
id: number;
|
199
|
-
icon: string;
|
200
|
-
};
|
201
|
-
rewardToken: {
|
202
|
-
symbol: string;
|
203
|
-
name: string | null;
|
204
|
-
id: string;
|
205
|
-
icon: string;
|
206
|
-
chainId: number;
|
207
|
-
address: string;
|
208
|
-
decimals: number;
|
209
|
-
verified: boolean;
|
210
|
-
isTest: boolean;
|
211
|
-
} & {
|
212
|
-
price?: number | null | undefined;
|
213
|
-
};
|
214
|
-
distributionChain: {
|
215
|
-
name: string;
|
216
|
-
id: number;
|
217
|
-
icon: string;
|
218
|
-
} | undefined;
|
219
|
-
campaignStatus: {
|
220
|
-
error: string;
|
221
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
222
|
-
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
223
|
-
campaignId: string;
|
224
|
-
computedUntil: bigint;
|
225
|
-
processingStarted: bigint;
|
226
|
-
};
|
227
|
-
creatorAddress: string;
|
228
|
-
Creator: {
|
229
|
-
tags: string[];
|
230
|
-
address: string;
|
231
|
-
creatorId: string | null;
|
232
|
-
};
|
233
|
-
type: string;
|
234
|
-
id: string;
|
235
|
-
subType: number | null;
|
236
|
-
startTimestamp: bigint;
|
237
|
-
endTimestamp: bigint;
|
238
|
-
computeChainId: number;
|
239
|
-
distributionChainId: number;
|
240
|
-
campaignId: string;
|
241
|
-
rewardTokenId: string;
|
242
|
-
amount: string;
|
243
|
-
opportunityId: string;
|
244
|
-
}[];
|
245
194
|
id: string;
|
246
195
|
depositUrl: string | undefined;
|
247
196
|
tokens: ({
|
@@ -454,40 +403,742 @@ export declare const v4: Elysia<"/v4", false, {
|
|
454
403
|
headers: unknown;
|
455
404
|
response: {
|
456
405
|
200: {
|
457
|
-
|
458
|
-
|
406
|
+
message: string;
|
407
|
+
name: string;
|
408
|
+
};
|
409
|
+
readonly 404: {
|
410
|
+
message: string;
|
411
|
+
name: string;
|
412
|
+
};
|
413
|
+
readonly 500: {
|
414
|
+
code: string;
|
415
|
+
info: string;
|
416
|
+
httpCode: number;
|
417
|
+
};
|
418
|
+
} | {
|
419
|
+
200: {
|
420
|
+
code: string;
|
421
|
+
info: string;
|
422
|
+
httpCode: number;
|
423
|
+
};
|
424
|
+
readonly 404: {
|
425
|
+
message: string;
|
426
|
+
name: string;
|
427
|
+
};
|
428
|
+
readonly 500: {
|
429
|
+
code: string;
|
430
|
+
info: string;
|
431
|
+
httpCode: number;
|
432
|
+
};
|
433
|
+
} | {
|
434
|
+
200: never;
|
435
|
+
404: {
|
436
|
+
message: string;
|
437
|
+
name: string;
|
438
|
+
};
|
439
|
+
readonly 500: {
|
440
|
+
code: string;
|
441
|
+
info: string;
|
442
|
+
httpCode: number;
|
443
|
+
};
|
444
|
+
} | {
|
445
|
+
200: never;
|
446
|
+
500: {
|
447
|
+
code: string;
|
448
|
+
info: string;
|
449
|
+
httpCode: number;
|
450
|
+
};
|
451
|
+
readonly 404: {
|
452
|
+
message: string;
|
453
|
+
name: string;
|
454
|
+
};
|
455
|
+
} | {
|
456
|
+
200: {
|
457
|
+
protocol?: {
|
458
|
+
name: string;
|
459
|
+
url: string;
|
460
|
+
description: string;
|
461
|
+
id: string;
|
462
|
+
tags: string[];
|
463
|
+
icon: string;
|
464
|
+
} | null | undefined;
|
465
|
+
depositUrl?: string | undefined;
|
466
|
+
aprRecord?: {
|
467
|
+
timestamp: string | bigint;
|
459
468
|
cumulated: number;
|
460
|
-
timestamp: bigint;
|
461
469
|
breakdowns: {
|
462
|
-
type:
|
470
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
463
471
|
id: number;
|
464
472
|
identifier: string;
|
465
473
|
value: number;
|
466
474
|
aprRecordId: string;
|
467
475
|
}[];
|
476
|
+
} | undefined;
|
477
|
+
tvlRecord?: {
|
478
|
+
total: number;
|
479
|
+
timestamp: string | bigint;
|
480
|
+
breakdowns: {
|
481
|
+
type: "TOKEN" | "PROTOCOL";
|
482
|
+
id: number;
|
483
|
+
identifier: string;
|
484
|
+
value: number;
|
485
|
+
tvlRecordId: string;
|
486
|
+
}[];
|
487
|
+
} | undefined;
|
488
|
+
rewardsRecord?: {
|
489
|
+
total: number;
|
490
|
+
id: string;
|
491
|
+
timestamp: string | bigint;
|
492
|
+
breakdowns: {
|
493
|
+
token: {
|
494
|
+
price?: number | null | undefined;
|
495
|
+
symbol: string;
|
496
|
+
name: string | null;
|
497
|
+
id: string;
|
498
|
+
icon: string;
|
499
|
+
chainId: number;
|
500
|
+
address: string;
|
501
|
+
decimals: number;
|
502
|
+
verified: boolean;
|
503
|
+
isTest: boolean;
|
504
|
+
};
|
505
|
+
id: number;
|
506
|
+
value: number;
|
507
|
+
campaignId: string;
|
508
|
+
amount: string | bigint;
|
509
|
+
dailyRewardsRecordId: string;
|
510
|
+
}[];
|
511
|
+
} | undefined;
|
512
|
+
name: string;
|
513
|
+
type: string;
|
514
|
+
tokens: {
|
515
|
+
price?: number | null | undefined;
|
516
|
+
symbol: string;
|
517
|
+
name: string | null;
|
518
|
+
id: string;
|
519
|
+
icon: string;
|
520
|
+
chainId: number;
|
521
|
+
address: string;
|
522
|
+
decimals: number;
|
523
|
+
verified: boolean;
|
524
|
+
isTest: boolean;
|
525
|
+
}[];
|
526
|
+
id: string;
|
527
|
+
status: string;
|
528
|
+
tags: string[];
|
529
|
+
identifier: string;
|
530
|
+
chain: {
|
531
|
+
name: string;
|
532
|
+
id: number;
|
533
|
+
icon: string;
|
468
534
|
};
|
469
|
-
|
535
|
+
chainId: number;
|
536
|
+
action: string;
|
537
|
+
tvl: number;
|
538
|
+
apr: number;
|
539
|
+
dailyRewards: number;
|
540
|
+
campaigns: {
|
541
|
+
campaignStatus?: {
|
542
|
+
error?: string | undefined;
|
543
|
+
details?: any;
|
544
|
+
status: string;
|
545
|
+
campaignId: string;
|
546
|
+
computedUntil: string | bigint;
|
547
|
+
processingStarted: string | bigint;
|
548
|
+
} | undefined;
|
549
|
+
distributionChain?: {
|
550
|
+
name: string;
|
551
|
+
id: number;
|
552
|
+
icon: string;
|
553
|
+
} | undefined;
|
554
|
+
type: string;
|
555
|
+
id: string;
|
556
|
+
params: any;
|
557
|
+
subType: number | null;
|
558
|
+
chain: {
|
559
|
+
name: string;
|
560
|
+
id: number;
|
561
|
+
icon: string;
|
562
|
+
};
|
563
|
+
startTimestamp: string | bigint;
|
564
|
+
endTimestamp: string | bigint;
|
565
|
+
computeChainId: number;
|
566
|
+
distributionChainId: number;
|
567
|
+
campaignId: string;
|
568
|
+
rewardTokenId: string;
|
569
|
+
amount: string;
|
570
|
+
opportunityId: string;
|
571
|
+
creatorAddress: string;
|
572
|
+
rewardToken: {
|
573
|
+
price?: number | null | undefined;
|
574
|
+
symbol: string;
|
575
|
+
name: string | null;
|
576
|
+
id: string;
|
577
|
+
icon: string;
|
578
|
+
chainId: number;
|
579
|
+
address: string;
|
580
|
+
decimals: number;
|
581
|
+
verified: boolean;
|
582
|
+
isTest: boolean;
|
583
|
+
};
|
584
|
+
}[];
|
585
|
+
}[];
|
586
|
+
readonly 404: {
|
587
|
+
message: string;
|
588
|
+
name: string;
|
589
|
+
};
|
590
|
+
readonly 500: {
|
591
|
+
code: string;
|
592
|
+
info: string;
|
593
|
+
httpCode: number;
|
594
|
+
};
|
595
|
+
} | {
|
596
|
+
200: never;
|
597
|
+
readonly 404: {
|
598
|
+
message: string;
|
599
|
+
name: string;
|
600
|
+
};
|
601
|
+
readonly 500: {
|
602
|
+
code: string;
|
603
|
+
info: string;
|
604
|
+
httpCode: number;
|
605
|
+
};
|
606
|
+
} | {
|
607
|
+
200: (Response | {
|
608
|
+
protocol?: {
|
609
|
+
name: string;
|
610
|
+
url: string;
|
611
|
+
description: string;
|
470
612
|
id: string;
|
613
|
+
tags: string[];
|
614
|
+
icon: string;
|
615
|
+
} | null | undefined;
|
616
|
+
depositUrl?: string | undefined;
|
617
|
+
aprRecord?: {
|
618
|
+
timestamp: string | bigint;
|
619
|
+
cumulated: number;
|
620
|
+
breakdowns: {
|
621
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
622
|
+
id: number;
|
623
|
+
identifier: string;
|
624
|
+
value: number;
|
625
|
+
aprRecordId: string;
|
626
|
+
}[];
|
627
|
+
} | undefined;
|
628
|
+
tvlRecord?: {
|
471
629
|
total: number;
|
472
|
-
timestamp: bigint;
|
630
|
+
timestamp: string | bigint;
|
473
631
|
breakdowns: {
|
474
|
-
type:
|
632
|
+
type: "TOKEN" | "PROTOCOL";
|
475
633
|
id: number;
|
476
634
|
identifier: string;
|
477
635
|
value: number;
|
478
636
|
tvlRecordId: string;
|
479
637
|
}[];
|
480
|
-
};
|
481
|
-
rewardsRecord
|
638
|
+
} | undefined;
|
639
|
+
rewardsRecord?: {
|
640
|
+
total: number;
|
641
|
+
id: string;
|
642
|
+
timestamp: string | bigint;
|
643
|
+
breakdowns: {
|
644
|
+
token: {
|
645
|
+
price?: number | null | undefined;
|
646
|
+
symbol: string;
|
647
|
+
name: string | null;
|
648
|
+
id: string;
|
649
|
+
icon: string;
|
650
|
+
chainId: number;
|
651
|
+
address: string;
|
652
|
+
decimals: number;
|
653
|
+
verified: boolean;
|
654
|
+
isTest: boolean;
|
655
|
+
};
|
656
|
+
id: number;
|
657
|
+
value: number;
|
658
|
+
campaignId: string;
|
659
|
+
amount: string | bigint;
|
660
|
+
dailyRewardsRecordId: string;
|
661
|
+
}[];
|
662
|
+
} | undefined;
|
663
|
+
name: string;
|
664
|
+
type: string;
|
665
|
+
tokens: {
|
666
|
+
price?: number | null | undefined;
|
667
|
+
symbol: string;
|
668
|
+
name: string | null;
|
669
|
+
id: string;
|
670
|
+
icon: string;
|
671
|
+
chainId: number;
|
672
|
+
address: string;
|
673
|
+
decimals: number;
|
674
|
+
verified: boolean;
|
675
|
+
isTest: boolean;
|
676
|
+
}[];
|
677
|
+
id: string;
|
678
|
+
status: string;
|
679
|
+
tags: string[];
|
680
|
+
identifier: string;
|
681
|
+
chain: {
|
682
|
+
name: string;
|
683
|
+
id: number;
|
684
|
+
icon: string;
|
685
|
+
};
|
686
|
+
chainId: number;
|
687
|
+
action: string;
|
688
|
+
tvl: number;
|
689
|
+
apr: number;
|
690
|
+
dailyRewards: number;
|
691
|
+
campaigns: {
|
692
|
+
campaignStatus?: {
|
693
|
+
error?: string | undefined;
|
694
|
+
details?: any;
|
695
|
+
status: string;
|
696
|
+
campaignId: string;
|
697
|
+
computedUntil: string | bigint;
|
698
|
+
processingStarted: string | bigint;
|
699
|
+
} | undefined;
|
700
|
+
distributionChain?: {
|
701
|
+
name: string;
|
702
|
+
id: number;
|
703
|
+
icon: string;
|
704
|
+
} | undefined;
|
705
|
+
type: string;
|
706
|
+
id: string;
|
707
|
+
params: any;
|
708
|
+
subType: number | null;
|
709
|
+
chain: {
|
710
|
+
name: string;
|
711
|
+
id: number;
|
712
|
+
icon: string;
|
713
|
+
};
|
714
|
+
startTimestamp: string | bigint;
|
715
|
+
endTimestamp: string | bigint;
|
716
|
+
computeChainId: number;
|
717
|
+
distributionChainId: number;
|
718
|
+
campaignId: string;
|
719
|
+
rewardTokenId: string;
|
720
|
+
amount: string;
|
721
|
+
opportunityId: string;
|
722
|
+
creatorAddress: string;
|
723
|
+
rewardToken: {
|
724
|
+
price?: number | null | undefined;
|
725
|
+
symbol: string;
|
726
|
+
name: string | null;
|
727
|
+
id: string;
|
728
|
+
icon: string;
|
729
|
+
chainId: number;
|
730
|
+
address: string;
|
731
|
+
decimals: number;
|
732
|
+
verified: boolean;
|
733
|
+
isTest: boolean;
|
734
|
+
};
|
735
|
+
}[];
|
736
|
+
}[] | {
|
737
|
+
message: string;
|
738
|
+
name: string;
|
739
|
+
} | {
|
740
|
+
code: string;
|
741
|
+
info: string;
|
742
|
+
httpCode: number;
|
743
|
+
} | {
|
744
|
+
readonly 200: {
|
745
|
+
protocol?: {
|
746
|
+
name: string;
|
747
|
+
url: string;
|
748
|
+
description: string;
|
749
|
+
id: string;
|
750
|
+
tags: string[];
|
751
|
+
icon: string;
|
752
|
+
} | null | undefined;
|
753
|
+
depositUrl?: string | undefined;
|
754
|
+
aprRecord?: {
|
755
|
+
timestamp: string | bigint;
|
756
|
+
cumulated: number;
|
757
|
+
breakdowns: {
|
758
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
759
|
+
id: number;
|
760
|
+
identifier: string;
|
761
|
+
value: number;
|
762
|
+
aprRecordId: string;
|
763
|
+
}[];
|
764
|
+
} | undefined;
|
765
|
+
tvlRecord?: {
|
766
|
+
total: number;
|
767
|
+
timestamp: string | bigint;
|
768
|
+
breakdowns: {
|
769
|
+
type: "TOKEN" | "PROTOCOL";
|
770
|
+
id: number;
|
771
|
+
identifier: string;
|
772
|
+
value: number;
|
773
|
+
tvlRecordId: string;
|
774
|
+
}[];
|
775
|
+
} | undefined;
|
776
|
+
rewardsRecord?: {
|
777
|
+
total: number;
|
778
|
+
id: string;
|
779
|
+
timestamp: string | bigint;
|
780
|
+
breakdowns: {
|
781
|
+
token: {
|
782
|
+
price?: number | null | undefined;
|
783
|
+
symbol: string;
|
784
|
+
name: string | null;
|
785
|
+
id: string;
|
786
|
+
icon: string;
|
787
|
+
chainId: number;
|
788
|
+
address: string;
|
789
|
+
decimals: number;
|
790
|
+
verified: boolean;
|
791
|
+
isTest: boolean;
|
792
|
+
};
|
793
|
+
id: number;
|
794
|
+
value: number;
|
795
|
+
campaignId: string;
|
796
|
+
amount: string | bigint;
|
797
|
+
dailyRewardsRecordId: string;
|
798
|
+
}[];
|
799
|
+
} | undefined;
|
800
|
+
name: string;
|
801
|
+
type: string;
|
802
|
+
tokens: {
|
803
|
+
price?: number | null | undefined;
|
804
|
+
symbol: string;
|
805
|
+
name: string | null;
|
806
|
+
id: string;
|
807
|
+
icon: string;
|
808
|
+
chainId: number;
|
809
|
+
address: string;
|
810
|
+
decimals: number;
|
811
|
+
verified: boolean;
|
812
|
+
isTest: boolean;
|
813
|
+
}[];
|
814
|
+
id: string;
|
815
|
+
status: string;
|
816
|
+
tags: string[];
|
817
|
+
identifier: string;
|
818
|
+
chain: {
|
819
|
+
name: string;
|
820
|
+
id: number;
|
821
|
+
icon: string;
|
822
|
+
};
|
823
|
+
chainId: number;
|
824
|
+
action: string;
|
825
|
+
tvl: number;
|
826
|
+
apr: number;
|
827
|
+
dailyRewards: number;
|
828
|
+
campaigns: {
|
829
|
+
campaignStatus?: {
|
830
|
+
error?: string | undefined;
|
831
|
+
details?: any;
|
832
|
+
status: string;
|
833
|
+
campaignId: string;
|
834
|
+
computedUntil: string | bigint;
|
835
|
+
processingStarted: string | bigint;
|
836
|
+
} | undefined;
|
837
|
+
distributionChain?: {
|
838
|
+
name: string;
|
839
|
+
id: number;
|
840
|
+
icon: string;
|
841
|
+
} | undefined;
|
842
|
+
type: string;
|
843
|
+
id: string;
|
844
|
+
params: any;
|
845
|
+
subType: number | null;
|
846
|
+
chain: {
|
847
|
+
name: string;
|
848
|
+
id: number;
|
849
|
+
icon: string;
|
850
|
+
};
|
851
|
+
startTimestamp: string | bigint;
|
852
|
+
endTimestamp: string | bigint;
|
853
|
+
computeChainId: number;
|
854
|
+
distributionChainId: number;
|
855
|
+
campaignId: string;
|
856
|
+
rewardTokenId: string;
|
857
|
+
amount: string;
|
858
|
+
opportunityId: string;
|
859
|
+
creatorAddress: string;
|
860
|
+
rewardToken: {
|
861
|
+
price?: number | null | undefined;
|
862
|
+
symbol: string;
|
863
|
+
name: string | null;
|
864
|
+
id: string;
|
865
|
+
icon: string;
|
866
|
+
chainId: number;
|
867
|
+
address: string;
|
868
|
+
decimals: number;
|
869
|
+
verified: boolean;
|
870
|
+
isTest: boolean;
|
871
|
+
};
|
872
|
+
}[];
|
873
|
+
}[];
|
874
|
+
readonly 404: {
|
875
|
+
message: string;
|
876
|
+
name: string;
|
877
|
+
};
|
878
|
+
readonly 500: {
|
879
|
+
code: string;
|
880
|
+
info: string;
|
881
|
+
httpCode: number;
|
882
|
+
};
|
883
|
+
}) & {
|
884
|
+
protocol?: {
|
885
|
+
name: string;
|
886
|
+
url: string;
|
887
|
+
description: string;
|
888
|
+
id: string;
|
889
|
+
tags: string[];
|
890
|
+
icon: string;
|
891
|
+
} | null | undefined;
|
892
|
+
depositUrl?: string | undefined;
|
893
|
+
aprRecord?: {
|
894
|
+
timestamp: string | bigint;
|
895
|
+
cumulated: number;
|
896
|
+
breakdowns: {
|
897
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
898
|
+
id: number;
|
899
|
+
identifier: string;
|
900
|
+
value: number;
|
901
|
+
aprRecordId: string;
|
902
|
+
}[];
|
903
|
+
} | undefined;
|
904
|
+
tvlRecord?: {
|
905
|
+
total: number;
|
906
|
+
timestamp: string | bigint;
|
907
|
+
breakdowns: {
|
908
|
+
type: "TOKEN" | "PROTOCOL";
|
909
|
+
id: number;
|
910
|
+
identifier: string;
|
911
|
+
value: number;
|
912
|
+
tvlRecordId: string;
|
913
|
+
}[];
|
914
|
+
} | undefined;
|
915
|
+
rewardsRecord?: {
|
916
|
+
total: number;
|
917
|
+
id: string;
|
918
|
+
timestamp: string | bigint;
|
919
|
+
breakdowns: {
|
920
|
+
token: {
|
921
|
+
price?: number | null | undefined;
|
922
|
+
symbol: string;
|
923
|
+
name: string | null;
|
924
|
+
id: string;
|
925
|
+
icon: string;
|
926
|
+
chainId: number;
|
927
|
+
address: string;
|
928
|
+
decimals: number;
|
929
|
+
verified: boolean;
|
930
|
+
isTest: boolean;
|
931
|
+
};
|
932
|
+
id: number;
|
933
|
+
value: number;
|
934
|
+
campaignId: string;
|
935
|
+
amount: string | bigint;
|
936
|
+
dailyRewardsRecordId: string;
|
937
|
+
}[];
|
938
|
+
} | undefined;
|
939
|
+
name: string;
|
940
|
+
type: string;
|
941
|
+
tokens: {
|
942
|
+
price?: number | null | undefined;
|
943
|
+
symbol: string;
|
944
|
+
name: string | null;
|
945
|
+
id: string;
|
946
|
+
icon: string;
|
947
|
+
chainId: number;
|
948
|
+
address: string;
|
949
|
+
decimals: number;
|
950
|
+
verified: boolean;
|
951
|
+
isTest: boolean;
|
952
|
+
}[];
|
953
|
+
id: string;
|
954
|
+
status: string;
|
955
|
+
tags: string[];
|
956
|
+
identifier: string;
|
957
|
+
chain: {
|
958
|
+
name: string;
|
959
|
+
id: number;
|
960
|
+
icon: string;
|
961
|
+
};
|
962
|
+
chainId: number;
|
963
|
+
action: string;
|
964
|
+
tvl: number;
|
965
|
+
apr: number;
|
966
|
+
dailyRewards: number;
|
967
|
+
campaigns: {
|
968
|
+
campaignStatus?: {
|
969
|
+
error?: string | undefined;
|
970
|
+
details?: any;
|
971
|
+
status: string;
|
972
|
+
campaignId: string;
|
973
|
+
computedUntil: string | bigint;
|
974
|
+
processingStarted: string | bigint;
|
975
|
+
} | undefined;
|
976
|
+
distributionChain?: {
|
977
|
+
name: string;
|
978
|
+
id: number;
|
979
|
+
icon: string;
|
980
|
+
} | undefined;
|
981
|
+
type: string;
|
982
|
+
id: string;
|
983
|
+
params: any;
|
984
|
+
subType: number | null;
|
985
|
+
chain: {
|
986
|
+
name: string;
|
987
|
+
id: number;
|
988
|
+
icon: string;
|
989
|
+
};
|
990
|
+
startTimestamp: string | bigint;
|
991
|
+
endTimestamp: string | bigint;
|
992
|
+
computeChainId: number;
|
993
|
+
distributionChainId: number;
|
994
|
+
campaignId: string;
|
995
|
+
rewardTokenId: string;
|
996
|
+
amount: string;
|
997
|
+
opportunityId: string;
|
998
|
+
creatorAddress: string;
|
999
|
+
rewardToken: {
|
1000
|
+
price?: number | null | undefined;
|
1001
|
+
symbol: string;
|
1002
|
+
name: string | null;
|
1003
|
+
id: string;
|
1004
|
+
icon: string;
|
1005
|
+
chainId: number;
|
1006
|
+
address: string;
|
1007
|
+
decimals: number;
|
1008
|
+
verified: boolean;
|
1009
|
+
isTest: boolean;
|
1010
|
+
};
|
1011
|
+
}[];
|
1012
|
+
}[];
|
1013
|
+
404: {
|
1014
|
+
message: string;
|
1015
|
+
name: string;
|
1016
|
+
};
|
1017
|
+
500: {
|
1018
|
+
code: string;
|
1019
|
+
info: string;
|
1020
|
+
httpCode: number;
|
1021
|
+
};
|
1022
|
+
} | {
|
1023
|
+
200: {
|
1024
|
+
readonly 200: {
|
1025
|
+
protocol?: {
|
1026
|
+
name: string;
|
1027
|
+
url: string;
|
1028
|
+
description: string;
|
1029
|
+
id: string;
|
1030
|
+
tags: string[];
|
1031
|
+
icon: string;
|
1032
|
+
} | null | undefined;
|
1033
|
+
depositUrl?: string | undefined;
|
1034
|
+
aprRecord?: {
|
1035
|
+
timestamp: string | bigint;
|
1036
|
+
cumulated: number;
|
1037
|
+
breakdowns: {
|
1038
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
1039
|
+
id: number;
|
1040
|
+
identifier: string;
|
1041
|
+
value: number;
|
1042
|
+
aprRecordId: string;
|
1043
|
+
}[];
|
1044
|
+
} | undefined;
|
1045
|
+
tvlRecord?: {
|
1046
|
+
total: number;
|
1047
|
+
timestamp: string | bigint;
|
1048
|
+
breakdowns: {
|
1049
|
+
type: "TOKEN" | "PROTOCOL";
|
1050
|
+
id: number;
|
1051
|
+
identifier: string;
|
1052
|
+
value: number;
|
1053
|
+
tvlRecordId: string;
|
1054
|
+
}[];
|
1055
|
+
} | undefined;
|
1056
|
+
rewardsRecord?: {
|
1057
|
+
total: number;
|
1058
|
+
id: string;
|
1059
|
+
timestamp: string | bigint;
|
1060
|
+
breakdowns: {
|
1061
|
+
token: {
|
1062
|
+
price?: number | null | undefined;
|
1063
|
+
symbol: string;
|
1064
|
+
name: string | null;
|
1065
|
+
id: string;
|
1066
|
+
icon: string;
|
1067
|
+
chainId: number;
|
1068
|
+
address: string;
|
1069
|
+
decimals: number;
|
1070
|
+
verified: boolean;
|
1071
|
+
isTest: boolean;
|
1072
|
+
};
|
1073
|
+
id: number;
|
1074
|
+
value: number;
|
1075
|
+
campaignId: string;
|
1076
|
+
amount: string | bigint;
|
1077
|
+
dailyRewardsRecordId: string;
|
1078
|
+
}[];
|
1079
|
+
} | undefined;
|
1080
|
+
name: string;
|
1081
|
+
type: string;
|
1082
|
+
tokens: {
|
1083
|
+
price?: number | null | undefined;
|
1084
|
+
symbol: string;
|
1085
|
+
name: string | null;
|
1086
|
+
id: string;
|
1087
|
+
icon: string;
|
1088
|
+
chainId: number;
|
1089
|
+
address: string;
|
1090
|
+
decimals: number;
|
1091
|
+
verified: boolean;
|
1092
|
+
isTest: boolean;
|
1093
|
+
}[];
|
482
1094
|
id: string;
|
483
|
-
|
484
|
-
|
485
|
-
|
1095
|
+
status: string;
|
1096
|
+
tags: string[];
|
1097
|
+
identifier: string;
|
1098
|
+
chain: {
|
1099
|
+
name: string;
|
486
1100
|
id: number;
|
487
|
-
|
1101
|
+
icon: string;
|
1102
|
+
};
|
1103
|
+
chainId: number;
|
1104
|
+
action: string;
|
1105
|
+
tvl: number;
|
1106
|
+
apr: number;
|
1107
|
+
dailyRewards: number;
|
1108
|
+
campaigns: {
|
1109
|
+
campaignStatus?: {
|
1110
|
+
error?: string | undefined;
|
1111
|
+
details?: any;
|
1112
|
+
status: string;
|
1113
|
+
campaignId: string;
|
1114
|
+
computedUntil: string | bigint;
|
1115
|
+
processingStarted: string | bigint;
|
1116
|
+
} | undefined;
|
1117
|
+
distributionChain?: {
|
1118
|
+
name: string;
|
1119
|
+
id: number;
|
1120
|
+
icon: string;
|
1121
|
+
} | undefined;
|
1122
|
+
type: string;
|
1123
|
+
id: string;
|
1124
|
+
params: any;
|
1125
|
+
subType: number | null;
|
1126
|
+
chain: {
|
1127
|
+
name: string;
|
1128
|
+
id: number;
|
1129
|
+
icon: string;
|
1130
|
+
};
|
1131
|
+
startTimestamp: string | bigint;
|
1132
|
+
endTimestamp: string | bigint;
|
1133
|
+
computeChainId: number;
|
1134
|
+
distributionChainId: number;
|
488
1135
|
campaignId: string;
|
489
|
-
|
490
|
-
|
1136
|
+
rewardTokenId: string;
|
1137
|
+
amount: string;
|
1138
|
+
opportunityId: string;
|
1139
|
+
creatorAddress: string;
|
1140
|
+
rewardToken: {
|
1141
|
+
price?: number | null | undefined;
|
491
1142
|
symbol: string;
|
492
1143
|
name: string | null;
|
493
1144
|
id: string;
|
@@ -495,103 +1146,21 @@ export declare const v4: Elysia<"/v4", false, {
|
|
495
1146
|
chainId: number;
|
496
1147
|
address: string;
|
497
1148
|
decimals: number;
|
498
|
-
displaySymbol: string;
|
499
1149
|
verified: boolean;
|
500
1150
|
isTest: boolean;
|
501
|
-
price: number | null;
|
502
1151
|
};
|
503
|
-
amount: bigint;
|
504
1152
|
}[];
|
505
|
-
};
|
506
|
-
campaigns: {
|
507
|
-
params: any;
|
508
|
-
chain: {
|
509
|
-
name: string;
|
510
|
-
id: number;
|
511
|
-
icon: string;
|
512
|
-
};
|
513
|
-
rewardToken: {
|
514
|
-
symbol: string;
|
515
|
-
name: string | null;
|
516
|
-
id: string;
|
517
|
-
icon: string;
|
518
|
-
chainId: number;
|
519
|
-
address: string;
|
520
|
-
decimals: number;
|
521
|
-
verified: boolean;
|
522
|
-
isTest: boolean;
|
523
|
-
} & {
|
524
|
-
price?: number | null | undefined;
|
525
|
-
};
|
526
|
-
distributionChain: {
|
527
|
-
name: string;
|
528
|
-
id: number;
|
529
|
-
icon: string;
|
530
|
-
} | undefined;
|
531
|
-
campaignStatus: {
|
532
|
-
error: string;
|
533
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
534
|
-
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
535
|
-
campaignId: string;
|
536
|
-
computedUntil: bigint;
|
537
|
-
processingStarted: bigint;
|
538
|
-
};
|
539
|
-
creatorAddress: string;
|
540
|
-
Creator: {
|
541
|
-
tags: string[];
|
542
|
-
address: string;
|
543
|
-
creatorId: string | null;
|
544
|
-
};
|
545
|
-
type: string;
|
546
|
-
id: string;
|
547
|
-
subType: number | null;
|
548
|
-
startTimestamp: bigint;
|
549
|
-
endTimestamp: bigint;
|
550
|
-
computeChainId: number;
|
551
|
-
distributionChainId: number;
|
552
|
-
campaignId: string;
|
553
|
-
rewardTokenId: string;
|
554
|
-
amount: string;
|
555
|
-
opportunityId: string;
|
556
1153
|
}[];
|
557
|
-
|
558
|
-
|
559
|
-
tokens: ({
|
560
|
-
symbol: string;
|
561
|
-
name: string | null;
|
562
|
-
id: string;
|
563
|
-
icon: string;
|
564
|
-
chainId: number;
|
565
|
-
address: string;
|
566
|
-
decimals: number;
|
567
|
-
verified: boolean;
|
568
|
-
isTest: boolean;
|
569
|
-
} & {
|
570
|
-
price?: number | null | undefined;
|
571
|
-
})[];
|
572
|
-
chain: {
|
1154
|
+
readonly 404: {
|
1155
|
+
message: string;
|
573
1156
|
name: string;
|
574
|
-
id: number;
|
575
|
-
icon: string;
|
576
1157
|
};
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
icon: string;
|
584
|
-
} | undefined;
|
585
|
-
name: string;
|
586
|
-
type: string;
|
587
|
-
status: import("../../../database/api/.generated").$Enums.Status;
|
588
|
-
tags: string[];
|
589
|
-
identifier: string;
|
590
|
-
chainId: number;
|
591
|
-
action: import("../../../database/api/.generated").$Enums.OpportunityAction;
|
592
|
-
tvl: number;
|
593
|
-
dailyRewards: number;
|
594
|
-
}[];
|
1158
|
+
readonly 500: {
|
1159
|
+
code: string;
|
1160
|
+
info: string;
|
1161
|
+
httpCode: number;
|
1162
|
+
};
|
1163
|
+
};
|
595
1164
|
readonly 404: {
|
596
1165
|
message: string;
|
597
1166
|
name: string;
|
@@ -1283,18 +1852,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1283
1852
|
};
|
1284
1853
|
headers: unknown;
|
1285
1854
|
response: {
|
1286
|
-
|
1287
|
-
|
1288
|
-
url: string;
|
1289
|
-
description: string;
|
1290
|
-
id: string;
|
1291
|
-
tags: string[];
|
1292
|
-
icon: string;
|
1293
|
-
} & {
|
1294
|
-
dailyRewards?: number | undefined;
|
1295
|
-
numberOfLiveCampaigns?: number | undefined;
|
1296
|
-
opportunityLiveTags?: string[] | undefined;
|
1297
|
-
})[];
|
1855
|
+
[x: string]: any;
|
1856
|
+
200: any;
|
1298
1857
|
};
|
1299
1858
|
};
|
1300
1859
|
};
|
@@ -1308,7 +1867,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1308
1867
|
query: unknown;
|
1309
1868
|
headers: unknown;
|
1310
1869
|
response: {
|
1311
|
-
|
1870
|
+
[x: string]: any;
|
1871
|
+
200: any;
|
1312
1872
|
};
|
1313
1873
|
};
|
1314
1874
|
};
|
@@ -1324,17 +1884,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1324
1884
|
query: unknown;
|
1325
1885
|
headers: unknown;
|
1326
1886
|
response: {
|
1327
|
-
|
1328
|
-
|
1329
|
-
url: string;
|
1330
|
-
description: string;
|
1331
|
-
id: string;
|
1332
|
-
tags: string[];
|
1333
|
-
icon: string;
|
1334
|
-
dailyRewards?: number | undefined;
|
1335
|
-
numberOfLiveCampaigns?: number | undefined;
|
1336
|
-
opportunityLiveTags?: string[] | undefined;
|
1337
|
-
} | null;
|
1887
|
+
[x: string]: any;
|
1888
|
+
200: any;
|
1338
1889
|
};
|
1339
1890
|
};
|
1340
1891
|
};
|
@@ -1357,14 +1908,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1357
1908
|
authorization: string;
|
1358
1909
|
};
|
1359
1910
|
response: {
|
1360
|
-
|
1361
|
-
|
1362
|
-
url: string;
|
1363
|
-
description: string;
|
1364
|
-
id: string;
|
1365
|
-
tags: string[];
|
1366
|
-
icon: string;
|
1367
|
-
};
|
1911
|
+
[x: string]: any;
|
1912
|
+
200: any;
|
1368
1913
|
};
|
1369
1914
|
};
|
1370
1915
|
};
|
@@ -1387,14 +1932,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1387
1932
|
authorization: string;
|
1388
1933
|
};
|
1389
1934
|
response: {
|
1390
|
-
|
1391
|
-
|
1392
|
-
url: string;
|
1393
|
-
description: string;
|
1394
|
-
id: string;
|
1395
|
-
tags: string[];
|
1396
|
-
icon: string;
|
1397
|
-
};
|
1935
|
+
[x: string]: any;
|
1936
|
+
200: any;
|
1398
1937
|
};
|
1399
1938
|
};
|
1400
1939
|
};
|
@@ -1555,6 +2094,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1555
2094
|
query: {
|
1556
2095
|
symbol?: string | undefined;
|
1557
2096
|
name?: string | undefined;
|
2097
|
+
id?: string[] | undefined;
|
1558
2098
|
chainId?: number | undefined;
|
1559
2099
|
address?: string | undefined;
|
1560
2100
|
displaySymbol?: string | undefined;
|
@@ -1587,6 +2127,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1587
2127
|
query: {
|
1588
2128
|
symbol?: string | undefined;
|
1589
2129
|
name?: string | undefined;
|
2130
|
+
id?: string[] | undefined;
|
1590
2131
|
chainId?: number | undefined;
|
1591
2132
|
address?: string | undefined;
|
1592
2133
|
displaySymbol?: string | undefined;
|
@@ -2042,17 +2583,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2042
2583
|
query: unknown;
|
2043
2584
|
headers: unknown;
|
2044
2585
|
response: {
|
2045
|
-
|
2046
|
-
|
2047
|
-
id: number;
|
2048
|
-
icon: string;
|
2049
|
-
explorers: {
|
2050
|
-
type: import("../../../database/api/.generated").$Enums.ExplorerType;
|
2051
|
-
url: string;
|
2052
|
-
id: string;
|
2053
|
-
chainId: number;
|
2054
|
-
}[];
|
2055
|
-
} | null;
|
2586
|
+
[x: string]: any;
|
2587
|
+
200: any;
|
2056
2588
|
};
|
2057
2589
|
};
|
2058
2590
|
};
|
@@ -2068,17 +2600,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2068
2600
|
};
|
2069
2601
|
headers: unknown;
|
2070
2602
|
response: {
|
2071
|
-
|
2072
|
-
|
2073
|
-
id: number;
|
2074
|
-
icon: string;
|
2075
|
-
explorers: {
|
2076
|
-
type: import("../../../database/api/.generated").$Enums.ExplorerType;
|
2077
|
-
url: string;
|
2078
|
-
id: string;
|
2079
|
-
chainId: number;
|
2080
|
-
}[];
|
2081
|
-
}[];
|
2603
|
+
[x: string]: any;
|
2604
|
+
200: any;
|
2082
2605
|
};
|
2083
2606
|
};
|
2084
2607
|
};
|
@@ -2094,7 +2617,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2094
2617
|
};
|
2095
2618
|
headers: unknown;
|
2096
2619
|
response: {
|
2097
|
-
|
2620
|
+
[x: string]: any;
|
2621
|
+
200: any;
|
2098
2622
|
};
|
2099
2623
|
};
|
2100
2624
|
};
|
@@ -2105,6 +2629,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2105
2629
|
patch: {
|
2106
2630
|
body: {
|
2107
2631
|
icon?: string | undefined;
|
2632
|
+
dailyRewards?: number | undefined;
|
2633
|
+
liveCampaigns?: number | undefined;
|
2108
2634
|
};
|
2109
2635
|
params: {
|
2110
2636
|
chainId: number;
|
@@ -2114,11 +2640,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2114
2640
|
authorization: string;
|
2115
2641
|
};
|
2116
2642
|
response: {
|
2117
|
-
|
2118
|
-
|
2119
|
-
id: number;
|
2120
|
-
icon: string;
|
2121
|
-
};
|
2643
|
+
[x: string]: any;
|
2644
|
+
200: any;
|
2122
2645
|
};
|
2123
2646
|
};
|
2124
2647
|
};
|
@@ -2140,14 +2663,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2140
2663
|
authorization: string;
|
2141
2664
|
};
|
2142
2665
|
response: {
|
2143
|
-
|
2144
|
-
|
2145
|
-
type: import("../../../database/api/.generated").$Enums.ExplorerType;
|
2146
|
-
url: string;
|
2147
|
-
id: string;
|
2148
|
-
chainId: number;
|
2149
|
-
}[];
|
2150
|
-
};
|
2666
|
+
[x: string]: any;
|
2667
|
+
200: any;
|
2151
2668
|
};
|
2152
2669
|
};
|
2153
2670
|
};
|
@@ -2903,18 +3420,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2903
3420
|
};
|
2904
3421
|
headers: unknown;
|
2905
3422
|
response: {
|
2906
|
-
|
2907
|
-
|
2908
|
-
url: string;
|
2909
|
-
description: string;
|
2910
|
-
id: string;
|
2911
|
-
tags: string[];
|
2912
|
-
icon: string;
|
2913
|
-
} & {
|
2914
|
-
dailyRewards?: number | undefined;
|
2915
|
-
numberOfLiveCampaigns?: number | undefined;
|
2916
|
-
opportunityLiveTags?: string[] | undefined;
|
2917
|
-
})[];
|
3423
|
+
[x: string]: any;
|
3424
|
+
200: any;
|
2918
3425
|
};
|
2919
3426
|
};
|
2920
3427
|
};
|
@@ -3439,7 +3946,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3439
3946
|
endOfDisputePeriod: number;
|
3440
3947
|
disputer: string;
|
3441
3948
|
liveCampaigns: number;
|
3442
|
-
delayed: Awaited<ReturnType<typeof import("./status").StatusService
|
3949
|
+
delayed: Awaited<ReturnType<typeof import("./status").StatusService["findManyDelay"]>>;
|
3443
3950
|
};
|
3444
3951
|
};
|
3445
3952
|
};
|