@merkl/api 0.16.40 → 0.16.42
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.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/campaignsForMainParameter.js +4 -0
- package/dist/src/routes/v3/router.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -176,57 +176,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
176
176
|
amount: bigint;
|
177
177
|
}[];
|
178
178
|
};
|
179
|
-
campaigns: {
|
180
|
-
params: any;
|
181
|
-
chain: {
|
182
|
-
name: string;
|
183
|
-
id: number;
|
184
|
-
icon: string;
|
185
|
-
};
|
186
|
-
rewardToken: {
|
187
|
-
symbol: string;
|
188
|
-
name: string | null;
|
189
|
-
id: string;
|
190
|
-
icon: string;
|
191
|
-
chainId: number;
|
192
|
-
address: string;
|
193
|
-
decimals: number;
|
194
|
-
verified: boolean;
|
195
|
-
isTest: boolean;
|
196
|
-
} & {
|
197
|
-
price?: number | null | undefined;
|
198
|
-
};
|
199
|
-
distributionChain: {
|
200
|
-
name: string;
|
201
|
-
id: number;
|
202
|
-
icon: string;
|
203
|
-
} | undefined;
|
204
|
-
campaignStatus: {
|
205
|
-
error: string;
|
206
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
207
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
208
|
-
campaignId: string;
|
209
|
-
computedUntil: bigint;
|
210
|
-
processingStarted: bigint;
|
211
|
-
};
|
212
|
-
creatorAddress: string;
|
213
|
-
Creator: {
|
214
|
-
tags: string[];
|
215
|
-
address: string;
|
216
|
-
creatorId: string | null;
|
217
|
-
};
|
218
|
-
type: string;
|
219
|
-
id: string;
|
220
|
-
subType: number | null;
|
221
|
-
startTimestamp: bigint;
|
222
|
-
endTimestamp: bigint;
|
223
|
-
computeChainId: number;
|
224
|
-
distributionChainId: number;
|
225
|
-
campaignId: string;
|
226
|
-
rewardTokenId: string;
|
227
|
-
amount: string;
|
228
|
-
opportunityId: string;
|
229
|
-
}[];
|
230
179
|
id: string;
|
231
180
|
depositUrl: string | undefined;
|
232
181
|
tokens: ({
|
@@ -439,40 +388,95 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
439
388
|
headers: unknown;
|
440
389
|
response: {
|
441
390
|
200: {
|
442
|
-
|
443
|
-
|
391
|
+
message: string;
|
392
|
+
name: string;
|
393
|
+
};
|
394
|
+
readonly 404: {
|
395
|
+
message: string;
|
396
|
+
name: string;
|
397
|
+
};
|
398
|
+
readonly 500: {
|
399
|
+
code: string;
|
400
|
+
info: string;
|
401
|
+
httpCode: number;
|
402
|
+
};
|
403
|
+
} | {
|
404
|
+
200: {
|
405
|
+
code: string;
|
406
|
+
info: string;
|
407
|
+
httpCode: number;
|
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: never;
|
420
|
+
404: {
|
421
|
+
message: string;
|
422
|
+
name: string;
|
423
|
+
};
|
424
|
+
readonly 500: {
|
425
|
+
code: string;
|
426
|
+
info: string;
|
427
|
+
httpCode: number;
|
428
|
+
};
|
429
|
+
} | {
|
430
|
+
200: never;
|
431
|
+
500: {
|
432
|
+
code: string;
|
433
|
+
info: string;
|
434
|
+
httpCode: number;
|
435
|
+
};
|
436
|
+
readonly 404: {
|
437
|
+
message: string;
|
438
|
+
name: string;
|
439
|
+
};
|
440
|
+
} | {
|
441
|
+
200: {
|
442
|
+
protocol?: {
|
443
|
+
name: string;
|
444
|
+
url: string;
|
445
|
+
description: string;
|
446
|
+
id: string;
|
447
|
+
tags: string[];
|
448
|
+
icon: string;
|
449
|
+
} | null | undefined;
|
450
|
+
depositUrl?: string | undefined;
|
451
|
+
aprRecord?: {
|
452
|
+
timestamp: string | bigint;
|
444
453
|
cumulated: number;
|
445
|
-
timestamp: bigint;
|
446
454
|
breakdowns: {
|
447
|
-
type:
|
455
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
448
456
|
id: number;
|
449
457
|
identifier: string;
|
450
458
|
value: number;
|
451
459
|
aprRecordId: string;
|
452
460
|
}[];
|
453
|
-
};
|
454
|
-
tvlRecord
|
455
|
-
id: string;
|
461
|
+
} | undefined;
|
462
|
+
tvlRecord?: {
|
456
463
|
total: number;
|
457
|
-
timestamp: bigint;
|
464
|
+
timestamp: string | bigint;
|
458
465
|
breakdowns: {
|
459
|
-
type:
|
466
|
+
type: "TOKEN" | "PROTOCOL";
|
460
467
|
id: number;
|
461
468
|
identifier: string;
|
462
469
|
value: number;
|
463
470
|
tvlRecordId: string;
|
464
471
|
}[];
|
465
|
-
};
|
466
|
-
rewardsRecord
|
467
|
-
id: string;
|
472
|
+
} | undefined;
|
473
|
+
rewardsRecord?: {
|
468
474
|
total: number;
|
469
|
-
|
475
|
+
id: string;
|
476
|
+
timestamp: string | bigint;
|
470
477
|
breakdowns: {
|
471
|
-
id: number;
|
472
|
-
value: number;
|
473
|
-
campaignId: string;
|
474
|
-
dailyRewardsRecordId: string;
|
475
478
|
token: {
|
479
|
+
price?: number | null | undefined;
|
476
480
|
symbol: string;
|
477
481
|
name: string | null;
|
478
482
|
id: string;
|
@@ -480,22 +484,78 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
480
484
|
chainId: number;
|
481
485
|
address: string;
|
482
486
|
decimals: number;
|
483
|
-
displaySymbol: string;
|
484
487
|
verified: boolean;
|
485
488
|
isTest: boolean;
|
486
|
-
price: number | null;
|
487
489
|
};
|
488
|
-
|
490
|
+
id: number;
|
491
|
+
value: number;
|
492
|
+
campaignId: string;
|
493
|
+
amount: string | bigint;
|
494
|
+
dailyRewardsRecordId: string;
|
489
495
|
}[];
|
496
|
+
} | undefined;
|
497
|
+
name: string;
|
498
|
+
type: string;
|
499
|
+
tokens: {
|
500
|
+
price?: number | null | undefined;
|
501
|
+
symbol: string;
|
502
|
+
name: string | null;
|
503
|
+
id: string;
|
504
|
+
icon: string;
|
505
|
+
chainId: number;
|
506
|
+
address: string;
|
507
|
+
decimals: number;
|
508
|
+
verified: boolean;
|
509
|
+
isTest: boolean;
|
510
|
+
}[];
|
511
|
+
id: string;
|
512
|
+
status: string;
|
513
|
+
tags: string[];
|
514
|
+
identifier: string;
|
515
|
+
chain: {
|
516
|
+
name: string;
|
517
|
+
id: number;
|
518
|
+
icon: string;
|
490
519
|
};
|
520
|
+
chainId: number;
|
521
|
+
action: string;
|
522
|
+
tvl: number;
|
523
|
+
apr: number;
|
524
|
+
dailyRewards: number;
|
491
525
|
campaigns: {
|
526
|
+
campaignStatus?: {
|
527
|
+
error?: string | undefined;
|
528
|
+
details?: any;
|
529
|
+
status: string;
|
530
|
+
campaignId: string;
|
531
|
+
computedUntil: string | bigint;
|
532
|
+
processingStarted: string | bigint;
|
533
|
+
} | undefined;
|
534
|
+
distributionChain?: {
|
535
|
+
name: string;
|
536
|
+
id: number;
|
537
|
+
icon: string;
|
538
|
+
} | undefined;
|
539
|
+
type: string;
|
540
|
+
id: string;
|
492
541
|
params: any;
|
542
|
+
subType: number | null;
|
493
543
|
chain: {
|
494
544
|
name: string;
|
495
545
|
id: number;
|
496
546
|
icon: string;
|
497
547
|
};
|
548
|
+
startTimestamp: string | bigint;
|
549
|
+
endTimestamp: string | bigint;
|
550
|
+
computeChainId: number;
|
551
|
+
distributionChainId: number;
|
552
|
+
campaignId: string;
|
553
|
+
rewardTokenId: string;
|
554
|
+
amount: string;
|
555
|
+
opportunityId: string;
|
556
|
+
creatorAddress: string;
|
498
557
|
rewardToken: {
|
558
|
+
price?: number | null | undefined;
|
499
559
|
symbol: string;
|
500
560
|
name: string | null;
|
501
561
|
id: string;
|
@@ -505,78 +565,587 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
505
565
|
decimals: number;
|
506
566
|
verified: boolean;
|
507
567
|
isTest: boolean;
|
508
|
-
} & {
|
509
|
-
price?: number | null | undefined;
|
510
|
-
};
|
511
|
-
distributionChain: {
|
512
|
-
name: string;
|
513
|
-
id: number;
|
514
|
-
icon: string;
|
515
|
-
} | undefined;
|
516
|
-
campaignStatus: {
|
517
|
-
error: string;
|
518
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
519
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
520
|
-
campaignId: string;
|
521
|
-
computedUntil: bigint;
|
522
|
-
processingStarted: bigint;
|
523
|
-
};
|
524
|
-
creatorAddress: string;
|
525
|
-
Creator: {
|
526
|
-
tags: string[];
|
527
|
-
address: string;
|
528
|
-
creatorId: string | null;
|
529
568
|
};
|
530
|
-
type: string;
|
531
|
-
id: string;
|
532
|
-
subType: number | null;
|
533
|
-
startTimestamp: bigint;
|
534
|
-
endTimestamp: bigint;
|
535
|
-
computeChainId: number;
|
536
|
-
distributionChainId: number;
|
537
|
-
campaignId: string;
|
538
|
-
rewardTokenId: string;
|
539
|
-
amount: string;
|
540
|
-
opportunityId: string;
|
541
569
|
}[];
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
570
|
+
}[];
|
571
|
+
readonly 404: {
|
572
|
+
message: string;
|
573
|
+
name: string;
|
574
|
+
};
|
575
|
+
readonly 500: {
|
576
|
+
code: string;
|
577
|
+
info: string;
|
578
|
+
httpCode: number;
|
579
|
+
};
|
580
|
+
} | {
|
581
|
+
200: never;
|
582
|
+
readonly 404: {
|
583
|
+
message: string;
|
584
|
+
name: string;
|
585
|
+
};
|
586
|
+
readonly 500: {
|
587
|
+
code: string;
|
588
|
+
info: string;
|
589
|
+
httpCode: number;
|
590
|
+
};
|
591
|
+
} | {
|
592
|
+
200: (Response | {
|
593
|
+
protocol?: {
|
563
594
|
name: string;
|
564
595
|
url: string;
|
565
596
|
description: string;
|
566
597
|
id: string;
|
567
598
|
tags: string[];
|
568
599
|
icon: string;
|
600
|
+
} | null | undefined;
|
601
|
+
depositUrl?: string | undefined;
|
602
|
+
aprRecord?: {
|
603
|
+
timestamp: string | bigint;
|
604
|
+
cumulated: number;
|
605
|
+
breakdowns: {
|
606
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
607
|
+
id: number;
|
608
|
+
identifier: string;
|
609
|
+
value: number;
|
610
|
+
aprRecordId: string;
|
611
|
+
}[];
|
569
612
|
} | undefined;
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
613
|
+
tvlRecord?: {
|
614
|
+
total: number;
|
615
|
+
timestamp: string | bigint;
|
616
|
+
breakdowns: {
|
617
|
+
type: "TOKEN" | "PROTOCOL";
|
618
|
+
id: number;
|
619
|
+
identifier: string;
|
620
|
+
value: number;
|
621
|
+
tvlRecordId: string;
|
622
|
+
}[];
|
623
|
+
} | undefined;
|
624
|
+
rewardsRecord?: {
|
625
|
+
total: number;
|
626
|
+
id: string;
|
627
|
+
timestamp: string | bigint;
|
628
|
+
breakdowns: {
|
629
|
+
token: {
|
630
|
+
price?: number | null | undefined;
|
631
|
+
symbol: string;
|
632
|
+
name: string | null;
|
633
|
+
id: string;
|
634
|
+
icon: string;
|
635
|
+
chainId: number;
|
636
|
+
address: string;
|
637
|
+
decimals: number;
|
638
|
+
verified: boolean;
|
639
|
+
isTest: boolean;
|
640
|
+
};
|
641
|
+
id: number;
|
642
|
+
value: number;
|
643
|
+
campaignId: string;
|
644
|
+
amount: string | bigint;
|
645
|
+
dailyRewardsRecordId: string;
|
646
|
+
}[];
|
647
|
+
} | undefined;
|
648
|
+
name: string;
|
649
|
+
type: string;
|
650
|
+
tokens: {
|
651
|
+
price?: number | null | undefined;
|
652
|
+
symbol: string;
|
653
|
+
name: string | null;
|
654
|
+
id: string;
|
655
|
+
icon: string;
|
656
|
+
chainId: number;
|
657
|
+
address: string;
|
658
|
+
decimals: number;
|
659
|
+
verified: boolean;
|
660
|
+
isTest: boolean;
|
661
|
+
}[];
|
662
|
+
id: string;
|
663
|
+
status: string;
|
664
|
+
tags: string[];
|
665
|
+
identifier: string;
|
666
|
+
chain: {
|
667
|
+
name: string;
|
668
|
+
id: number;
|
669
|
+
icon: string;
|
670
|
+
};
|
671
|
+
chainId: number;
|
672
|
+
action: string;
|
673
|
+
tvl: number;
|
674
|
+
apr: number;
|
675
|
+
dailyRewards: number;
|
676
|
+
campaigns: {
|
677
|
+
campaignStatus?: {
|
678
|
+
error?: string | undefined;
|
679
|
+
details?: any;
|
680
|
+
status: string;
|
681
|
+
campaignId: string;
|
682
|
+
computedUntil: string | bigint;
|
683
|
+
processingStarted: string | bigint;
|
684
|
+
} | undefined;
|
685
|
+
distributionChain?: {
|
686
|
+
name: string;
|
687
|
+
id: number;
|
688
|
+
icon: string;
|
689
|
+
} | undefined;
|
690
|
+
type: string;
|
691
|
+
id: string;
|
692
|
+
params: any;
|
693
|
+
subType: number | null;
|
694
|
+
chain: {
|
695
|
+
name: string;
|
696
|
+
id: number;
|
697
|
+
icon: string;
|
698
|
+
};
|
699
|
+
startTimestamp: string | bigint;
|
700
|
+
endTimestamp: string | bigint;
|
701
|
+
computeChainId: number;
|
702
|
+
distributionChainId: number;
|
703
|
+
campaignId: string;
|
704
|
+
rewardTokenId: string;
|
705
|
+
amount: string;
|
706
|
+
opportunityId: string;
|
707
|
+
creatorAddress: string;
|
708
|
+
rewardToken: {
|
709
|
+
price?: number | null | undefined;
|
710
|
+
symbol: string;
|
711
|
+
name: string | null;
|
712
|
+
id: string;
|
713
|
+
icon: string;
|
714
|
+
chainId: number;
|
715
|
+
address: string;
|
716
|
+
decimals: number;
|
717
|
+
verified: boolean;
|
718
|
+
isTest: boolean;
|
719
|
+
};
|
720
|
+
}[];
|
721
|
+
}[] | {
|
722
|
+
message: string;
|
723
|
+
name: string;
|
724
|
+
} | {
|
725
|
+
code: string;
|
726
|
+
info: string;
|
727
|
+
httpCode: number;
|
728
|
+
} | {
|
729
|
+
readonly 200: {
|
730
|
+
protocol?: {
|
731
|
+
name: string;
|
732
|
+
url: string;
|
733
|
+
description: string;
|
734
|
+
id: string;
|
735
|
+
tags: string[];
|
736
|
+
icon: string;
|
737
|
+
} | null | undefined;
|
738
|
+
depositUrl?: string | undefined;
|
739
|
+
aprRecord?: {
|
740
|
+
timestamp: string | bigint;
|
741
|
+
cumulated: number;
|
742
|
+
breakdowns: {
|
743
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
744
|
+
id: number;
|
745
|
+
identifier: string;
|
746
|
+
value: number;
|
747
|
+
aprRecordId: string;
|
748
|
+
}[];
|
749
|
+
} | undefined;
|
750
|
+
tvlRecord?: {
|
751
|
+
total: number;
|
752
|
+
timestamp: string | bigint;
|
753
|
+
breakdowns: {
|
754
|
+
type: "TOKEN" | "PROTOCOL";
|
755
|
+
id: number;
|
756
|
+
identifier: string;
|
757
|
+
value: number;
|
758
|
+
tvlRecordId: string;
|
759
|
+
}[];
|
760
|
+
} | undefined;
|
761
|
+
rewardsRecord?: {
|
762
|
+
total: number;
|
763
|
+
id: string;
|
764
|
+
timestamp: string | bigint;
|
765
|
+
breakdowns: {
|
766
|
+
token: {
|
767
|
+
price?: number | null | undefined;
|
768
|
+
symbol: string;
|
769
|
+
name: string | null;
|
770
|
+
id: string;
|
771
|
+
icon: string;
|
772
|
+
chainId: number;
|
773
|
+
address: string;
|
774
|
+
decimals: number;
|
775
|
+
verified: boolean;
|
776
|
+
isTest: boolean;
|
777
|
+
};
|
778
|
+
id: number;
|
779
|
+
value: number;
|
780
|
+
campaignId: string;
|
781
|
+
amount: string | bigint;
|
782
|
+
dailyRewardsRecordId: string;
|
783
|
+
}[];
|
784
|
+
} | undefined;
|
785
|
+
name: string;
|
786
|
+
type: string;
|
787
|
+
tokens: {
|
788
|
+
price?: number | null | undefined;
|
789
|
+
symbol: string;
|
790
|
+
name: string | null;
|
791
|
+
id: string;
|
792
|
+
icon: string;
|
793
|
+
chainId: number;
|
794
|
+
address: string;
|
795
|
+
decimals: number;
|
796
|
+
verified: boolean;
|
797
|
+
isTest: boolean;
|
798
|
+
}[];
|
799
|
+
id: string;
|
800
|
+
status: string;
|
801
|
+
tags: string[];
|
802
|
+
identifier: string;
|
803
|
+
chain: {
|
804
|
+
name: string;
|
805
|
+
id: number;
|
806
|
+
icon: string;
|
807
|
+
};
|
808
|
+
chainId: number;
|
809
|
+
action: string;
|
810
|
+
tvl: number;
|
811
|
+
apr: number;
|
812
|
+
dailyRewards: number;
|
813
|
+
campaigns: {
|
814
|
+
campaignStatus?: {
|
815
|
+
error?: string | undefined;
|
816
|
+
details?: any;
|
817
|
+
status: string;
|
818
|
+
campaignId: string;
|
819
|
+
computedUntil: string | bigint;
|
820
|
+
processingStarted: string | bigint;
|
821
|
+
} | undefined;
|
822
|
+
distributionChain?: {
|
823
|
+
name: string;
|
824
|
+
id: number;
|
825
|
+
icon: string;
|
826
|
+
} | undefined;
|
827
|
+
type: string;
|
828
|
+
id: string;
|
829
|
+
params: any;
|
830
|
+
subType: number | null;
|
831
|
+
chain: {
|
832
|
+
name: string;
|
833
|
+
id: number;
|
834
|
+
icon: string;
|
835
|
+
};
|
836
|
+
startTimestamp: string | bigint;
|
837
|
+
endTimestamp: string | bigint;
|
838
|
+
computeChainId: number;
|
839
|
+
distributionChainId: number;
|
840
|
+
campaignId: string;
|
841
|
+
rewardTokenId: string;
|
842
|
+
amount: string;
|
843
|
+
opportunityId: string;
|
844
|
+
creatorAddress: string;
|
845
|
+
rewardToken: {
|
846
|
+
price?: number | null | undefined;
|
847
|
+
symbol: string;
|
848
|
+
name: string | null;
|
849
|
+
id: string;
|
850
|
+
icon: string;
|
851
|
+
chainId: number;
|
852
|
+
address: string;
|
853
|
+
decimals: number;
|
854
|
+
verified: boolean;
|
855
|
+
isTest: boolean;
|
856
|
+
};
|
857
|
+
}[];
|
858
|
+
}[];
|
859
|
+
readonly 404: {
|
860
|
+
message: string;
|
861
|
+
name: string;
|
862
|
+
};
|
863
|
+
readonly 500: {
|
864
|
+
code: string;
|
865
|
+
info: string;
|
866
|
+
httpCode: number;
|
867
|
+
};
|
868
|
+
}) & {
|
869
|
+
protocol?: {
|
870
|
+
name: string;
|
871
|
+
url: string;
|
872
|
+
description: string;
|
873
|
+
id: string;
|
874
|
+
tags: string[];
|
875
|
+
icon: string;
|
876
|
+
} | null | undefined;
|
877
|
+
depositUrl?: string | undefined;
|
878
|
+
aprRecord?: {
|
879
|
+
timestamp: string | bigint;
|
880
|
+
cumulated: number;
|
881
|
+
breakdowns: {
|
882
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
883
|
+
id: number;
|
884
|
+
identifier: string;
|
885
|
+
value: number;
|
886
|
+
aprRecordId: string;
|
887
|
+
}[];
|
888
|
+
} | undefined;
|
889
|
+
tvlRecord?: {
|
890
|
+
total: number;
|
891
|
+
timestamp: string | bigint;
|
892
|
+
breakdowns: {
|
893
|
+
type: "TOKEN" | "PROTOCOL";
|
894
|
+
id: number;
|
895
|
+
identifier: string;
|
896
|
+
value: number;
|
897
|
+
tvlRecordId: string;
|
898
|
+
}[];
|
899
|
+
} | undefined;
|
900
|
+
rewardsRecord?: {
|
901
|
+
total: number;
|
902
|
+
id: string;
|
903
|
+
timestamp: string | bigint;
|
904
|
+
breakdowns: {
|
905
|
+
token: {
|
906
|
+
price?: number | null | undefined;
|
907
|
+
symbol: string;
|
908
|
+
name: string | null;
|
909
|
+
id: string;
|
910
|
+
icon: string;
|
911
|
+
chainId: number;
|
912
|
+
address: string;
|
913
|
+
decimals: number;
|
914
|
+
verified: boolean;
|
915
|
+
isTest: boolean;
|
916
|
+
};
|
917
|
+
id: number;
|
918
|
+
value: number;
|
919
|
+
campaignId: string;
|
920
|
+
amount: string | bigint;
|
921
|
+
dailyRewardsRecordId: string;
|
922
|
+
}[];
|
923
|
+
} | undefined;
|
924
|
+
name: string;
|
925
|
+
type: string;
|
926
|
+
tokens: {
|
927
|
+
price?: number | null | undefined;
|
928
|
+
symbol: string;
|
929
|
+
name: string | null;
|
930
|
+
id: string;
|
931
|
+
icon: string;
|
932
|
+
chainId: number;
|
933
|
+
address: string;
|
934
|
+
decimals: number;
|
935
|
+
verified: boolean;
|
936
|
+
isTest: boolean;
|
937
|
+
}[];
|
938
|
+
id: string;
|
939
|
+
status: string;
|
940
|
+
tags: string[];
|
941
|
+
identifier: string;
|
942
|
+
chain: {
|
943
|
+
name: string;
|
944
|
+
id: number;
|
945
|
+
icon: string;
|
946
|
+
};
|
947
|
+
chainId: number;
|
948
|
+
action: string;
|
949
|
+
tvl: number;
|
950
|
+
apr: number;
|
951
|
+
dailyRewards: number;
|
952
|
+
campaigns: {
|
953
|
+
campaignStatus?: {
|
954
|
+
error?: string | undefined;
|
955
|
+
details?: any;
|
956
|
+
status: string;
|
957
|
+
campaignId: string;
|
958
|
+
computedUntil: string | bigint;
|
959
|
+
processingStarted: string | bigint;
|
960
|
+
} | undefined;
|
961
|
+
distributionChain?: {
|
962
|
+
name: string;
|
963
|
+
id: number;
|
964
|
+
icon: string;
|
965
|
+
} | undefined;
|
966
|
+
type: string;
|
967
|
+
id: string;
|
968
|
+
params: any;
|
969
|
+
subType: number | null;
|
970
|
+
chain: {
|
971
|
+
name: string;
|
972
|
+
id: number;
|
973
|
+
icon: string;
|
974
|
+
};
|
975
|
+
startTimestamp: string | bigint;
|
976
|
+
endTimestamp: string | bigint;
|
977
|
+
computeChainId: number;
|
978
|
+
distributionChainId: number;
|
979
|
+
campaignId: string;
|
980
|
+
rewardTokenId: string;
|
981
|
+
amount: string;
|
982
|
+
opportunityId: string;
|
983
|
+
creatorAddress: string;
|
984
|
+
rewardToken: {
|
985
|
+
price?: number | null | undefined;
|
986
|
+
symbol: string;
|
987
|
+
name: string | null;
|
988
|
+
id: string;
|
989
|
+
icon: string;
|
990
|
+
chainId: number;
|
991
|
+
address: string;
|
992
|
+
decimals: number;
|
993
|
+
verified: boolean;
|
994
|
+
isTest: boolean;
|
995
|
+
};
|
996
|
+
}[];
|
997
|
+
}[];
|
998
|
+
404: {
|
999
|
+
message: string;
|
1000
|
+
name: string;
|
1001
|
+
};
|
1002
|
+
500: {
|
1003
|
+
code: string;
|
1004
|
+
info: string;
|
1005
|
+
httpCode: number;
|
1006
|
+
};
|
1007
|
+
} | {
|
1008
|
+
200: {
|
1009
|
+
readonly 200: {
|
1010
|
+
protocol?: {
|
1011
|
+
name: string;
|
1012
|
+
url: string;
|
1013
|
+
description: string;
|
1014
|
+
id: string;
|
1015
|
+
tags: string[];
|
1016
|
+
icon: string;
|
1017
|
+
} | null | undefined;
|
1018
|
+
depositUrl?: string | undefined;
|
1019
|
+
aprRecord?: {
|
1020
|
+
timestamp: string | bigint;
|
1021
|
+
cumulated: number;
|
1022
|
+
breakdowns: {
|
1023
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
1024
|
+
id: number;
|
1025
|
+
identifier: string;
|
1026
|
+
value: number;
|
1027
|
+
aprRecordId: string;
|
1028
|
+
}[];
|
1029
|
+
} | undefined;
|
1030
|
+
tvlRecord?: {
|
1031
|
+
total: number;
|
1032
|
+
timestamp: string | bigint;
|
1033
|
+
breakdowns: {
|
1034
|
+
type: "TOKEN" | "PROTOCOL";
|
1035
|
+
id: number;
|
1036
|
+
identifier: string;
|
1037
|
+
value: number;
|
1038
|
+
tvlRecordId: string;
|
1039
|
+
}[];
|
1040
|
+
} | undefined;
|
1041
|
+
rewardsRecord?: {
|
1042
|
+
total: number;
|
1043
|
+
id: string;
|
1044
|
+
timestamp: string | bigint;
|
1045
|
+
breakdowns: {
|
1046
|
+
token: {
|
1047
|
+
price?: number | null | undefined;
|
1048
|
+
symbol: string;
|
1049
|
+
name: string | null;
|
1050
|
+
id: string;
|
1051
|
+
icon: string;
|
1052
|
+
chainId: number;
|
1053
|
+
address: string;
|
1054
|
+
decimals: number;
|
1055
|
+
verified: boolean;
|
1056
|
+
isTest: boolean;
|
1057
|
+
};
|
1058
|
+
id: number;
|
1059
|
+
value: number;
|
1060
|
+
campaignId: string;
|
1061
|
+
amount: string | bigint;
|
1062
|
+
dailyRewardsRecordId: string;
|
1063
|
+
}[];
|
1064
|
+
} | undefined;
|
1065
|
+
name: string;
|
1066
|
+
type: string;
|
1067
|
+
tokens: {
|
1068
|
+
price?: number | null | undefined;
|
1069
|
+
symbol: string;
|
1070
|
+
name: string | null;
|
1071
|
+
id: string;
|
1072
|
+
icon: string;
|
1073
|
+
chainId: number;
|
1074
|
+
address: string;
|
1075
|
+
decimals: number;
|
1076
|
+
verified: boolean;
|
1077
|
+
isTest: boolean;
|
1078
|
+
}[];
|
1079
|
+
id: string;
|
1080
|
+
status: string;
|
1081
|
+
tags: string[];
|
1082
|
+
identifier: string;
|
1083
|
+
chain: {
|
1084
|
+
name: string;
|
1085
|
+
id: number;
|
1086
|
+
icon: string;
|
1087
|
+
};
|
1088
|
+
chainId: number;
|
1089
|
+
action: string;
|
1090
|
+
tvl: number;
|
1091
|
+
apr: number;
|
1092
|
+
dailyRewards: number;
|
1093
|
+
campaigns: {
|
1094
|
+
campaignStatus?: {
|
1095
|
+
error?: string | undefined;
|
1096
|
+
details?: any;
|
1097
|
+
status: string;
|
1098
|
+
campaignId: string;
|
1099
|
+
computedUntil: string | bigint;
|
1100
|
+
processingStarted: string | bigint;
|
1101
|
+
} | undefined;
|
1102
|
+
distributionChain?: {
|
1103
|
+
name: string;
|
1104
|
+
id: number;
|
1105
|
+
icon: string;
|
1106
|
+
} | undefined;
|
1107
|
+
type: string;
|
1108
|
+
id: string;
|
1109
|
+
params: any;
|
1110
|
+
subType: number | null;
|
1111
|
+
chain: {
|
1112
|
+
name: string;
|
1113
|
+
id: number;
|
1114
|
+
icon: string;
|
1115
|
+
};
|
1116
|
+
startTimestamp: string | bigint;
|
1117
|
+
endTimestamp: string | bigint;
|
1118
|
+
computeChainId: number;
|
1119
|
+
distributionChainId: number;
|
1120
|
+
campaignId: string;
|
1121
|
+
rewardTokenId: string;
|
1122
|
+
amount: string;
|
1123
|
+
opportunityId: string;
|
1124
|
+
creatorAddress: string;
|
1125
|
+
rewardToken: {
|
1126
|
+
price?: number | null | undefined;
|
1127
|
+
symbol: string;
|
1128
|
+
name: string | null;
|
1129
|
+
id: string;
|
1130
|
+
icon: string;
|
1131
|
+
chainId: number;
|
1132
|
+
address: string;
|
1133
|
+
decimals: number;
|
1134
|
+
verified: boolean;
|
1135
|
+
isTest: boolean;
|
1136
|
+
};
|
1137
|
+
}[];
|
1138
|
+
}[];
|
1139
|
+
readonly 404: {
|
1140
|
+
message: string;
|
1141
|
+
name: string;
|
1142
|
+
};
|
1143
|
+
readonly 500: {
|
1144
|
+
code: string;
|
1145
|
+
info: string;
|
1146
|
+
httpCode: number;
|
1147
|
+
};
|
1148
|
+
};
|
580
1149
|
readonly 404: {
|
581
1150
|
message: string;
|
582
1151
|
name: string;
|