@merkl/api 0.20.167 → 0.20.168
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/index.js +1 -1
- package/dist/src/eden/index.d.ts +4619 -3442
- package/dist/src/index.d.ts +516 -111
- package/dist/src/jobs/update-analytics.js +79 -75
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +25 -0
- package/dist/src/modules/v4/campaign/campaign.controller.js +8 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +16 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +18 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +10 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +7 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +538 -158
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -20
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +10 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +13 -18
- package/dist/src/modules/v4/opportunity/opportunity.service.js +61 -0
- package/dist/src/modules/v4/reward/reward.controller.js +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +1 -7
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +516 -111
- package/dist/src/modules/v4/token/token.controller.js +6 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -350,47 +350,47 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
350
350
|
};
|
351
351
|
headers: unknown;
|
352
352
|
response: {
|
353
|
-
200: {
|
354
|
-
|
355
|
-
|
353
|
+
200: ({
|
354
|
+
protocol?: {
|
355
|
+
url: string;
|
356
|
+
name: string;
|
357
|
+
description: string;
|
358
|
+
id: string;
|
359
|
+
tags: string[];
|
360
|
+
icon: string;
|
361
|
+
} | null | undefined;
|
362
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
363
|
+
depositUrl?: string | undefined;
|
364
|
+
explorerAddress?: string | undefined;
|
365
|
+
aprRecord?: {
|
366
|
+
timestamp: string | bigint;
|
356
367
|
cumulated: number;
|
357
|
-
|
358
|
-
|
368
|
+
breakdowns: {
|
369
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
359
370
|
id: string;
|
360
|
-
value: number;
|
361
|
-
aprRecordId: string;
|
362
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
363
371
|
identifier: string;
|
364
|
-
type: "CAMPAIGN";
|
365
|
-
} | {
|
366
|
-
id: string;
|
367
372
|
value: number;
|
368
373
|
aprRecordId: string;
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
};
|
373
|
-
tvlRecord: {
|
374
|
-
id: string;
|
374
|
+
}[];
|
375
|
+
} | undefined;
|
376
|
+
tvlRecord?: {
|
375
377
|
total: number;
|
376
|
-
timestamp: bigint;
|
378
|
+
timestamp: string | bigint;
|
377
379
|
breakdowns: {
|
378
|
-
type:
|
380
|
+
type: "TOKEN" | "PROTOCOL";
|
379
381
|
id: string;
|
380
382
|
identifier: string;
|
381
383
|
value: number;
|
382
384
|
tvlRecordId: string;
|
383
385
|
}[];
|
384
|
-
};
|
385
|
-
rewardsRecord
|
386
|
-
id: string;
|
386
|
+
} | undefined;
|
387
|
+
rewardsRecord?: {
|
387
388
|
total: number;
|
388
|
-
|
389
|
+
id: string;
|
390
|
+
timestamp: string | bigint;
|
389
391
|
breakdowns: {
|
390
|
-
id: string;
|
391
|
-
campaignId: string;
|
392
|
-
dailyRewardsRecordId: string;
|
393
392
|
token: {
|
393
|
+
price?: number | null | undefined;
|
394
394
|
symbol: string;
|
395
395
|
name: string | null;
|
396
396
|
id: string;
|
@@ -398,101 +398,23 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
398
398
|
address: string;
|
399
399
|
chainId: number;
|
400
400
|
decimals: number;
|
401
|
-
displaySymbol: string;
|
402
401
|
verified: boolean;
|
403
402
|
isTest: boolean;
|
404
403
|
isPoint: boolean;
|
405
404
|
isPreTGE: boolean;
|
406
|
-
isNative: boolean;
|
407
|
-
price: number | null;
|
408
405
|
};
|
409
|
-
amount: any;
|
410
|
-
value: number;
|
411
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
412
|
-
}[];
|
413
|
-
};
|
414
|
-
campaigns: {
|
415
|
-
params: any;
|
416
|
-
chain: {
|
417
|
-
name: string;
|
418
|
-
id: number;
|
419
|
-
icon: string;
|
420
|
-
};
|
421
|
-
endTimestamp: number;
|
422
|
-
startTimestamp: number;
|
423
|
-
rewardToken: {
|
424
|
-
symbol: string;
|
425
|
-
name: string | null;
|
426
406
|
id: string;
|
427
|
-
|
428
|
-
address: string;
|
429
|
-
chainId: number;
|
430
|
-
decimals: number;
|
431
|
-
verified: boolean;
|
432
|
-
isTest: boolean;
|
433
|
-
isPoint: boolean;
|
434
|
-
isPreTGE: boolean;
|
435
|
-
isNative: boolean;
|
436
|
-
} & {
|
437
|
-
price?: number | null | undefined;
|
438
|
-
};
|
439
|
-
distributionChain: {
|
440
|
-
name: string;
|
441
|
-
id: number;
|
442
|
-
icon: string;
|
443
|
-
} | undefined;
|
444
|
-
campaignStatus: {
|
445
|
-
computedUntil: number;
|
446
|
-
processingStarted: number;
|
447
|
-
status: import("@db/api").$Enums.RunStatus;
|
448
|
-
error: string;
|
449
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
407
|
+
value: number;
|
450
408
|
campaignId: string;
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
Opportunity: {
|
461
|
-
status: import("@db/api").$Enums.Status;
|
462
|
-
type: string;
|
463
|
-
name: string;
|
464
|
-
description: string;
|
465
|
-
id: string;
|
466
|
-
tags: string[];
|
467
|
-
identifier: string;
|
468
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
469
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
470
|
-
chainId: number;
|
471
|
-
howToSteps: string[];
|
472
|
-
depositUrl: string | null;
|
473
|
-
explorerAddress: string | null;
|
474
|
-
mainProtocolId: string | null;
|
475
|
-
tvl: number;
|
476
|
-
apr: number;
|
477
|
-
dailyRewards: number;
|
478
|
-
lastCampaignCreatedAt: Date;
|
479
|
-
};
|
480
|
-
type: string;
|
481
|
-
id: string;
|
482
|
-
subType: number | null;
|
483
|
-
computeChainId: number;
|
484
|
-
distributionChainId: number;
|
485
|
-
campaignId: string;
|
486
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
487
|
-
rewardTokenId: string;
|
488
|
-
amount: string;
|
489
|
-
opportunityId: string;
|
490
|
-
}[] | undefined;
|
491
|
-
id: string;
|
492
|
-
depositUrl: string | undefined;
|
493
|
-
explorerAddress: string | undefined;
|
494
|
-
lastCampaignCreatedAt: string;
|
495
|
-
tokens: ({
|
409
|
+
amount: string | bigint;
|
410
|
+
dailyRewardsRecordId: string;
|
411
|
+
}[];
|
412
|
+
} | undefined;
|
413
|
+
status: string;
|
414
|
+
type: string;
|
415
|
+
name: string;
|
416
|
+
tokens: {
|
417
|
+
price?: number | null | undefined;
|
496
418
|
symbol: string;
|
497
419
|
name: string | null;
|
498
420
|
id: string;
|
@@ -504,71 +426,529 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
504
426
|
isTest: boolean;
|
505
427
|
isPoint: boolean;
|
506
428
|
isPreTGE: boolean;
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
429
|
+
}[];
|
430
|
+
description: string;
|
431
|
+
id: string;
|
432
|
+
tags: string[];
|
433
|
+
identifier: string;
|
511
434
|
chain: {
|
512
435
|
name: string;
|
513
436
|
id: number;
|
514
437
|
icon: string;
|
515
438
|
};
|
516
|
-
|
439
|
+
action: string;
|
440
|
+
chainId: number;
|
441
|
+
howToSteps: string[];
|
442
|
+
tvl: number;
|
443
|
+
apr: number;
|
444
|
+
dailyRewards: number;
|
445
|
+
lastCampaignCreatedAt: string;
|
446
|
+
} | null)[];
|
447
|
+
} | {
|
448
|
+
200: never;
|
449
|
+
} | {
|
450
|
+
200: (Response | ({
|
451
|
+
protocol?: {
|
517
452
|
url: string;
|
518
453
|
name: string;
|
519
454
|
description: string;
|
520
455
|
id: string;
|
521
456
|
tags: string[];
|
522
457
|
icon: string;
|
458
|
+
} | null | undefined;
|
459
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
460
|
+
depositUrl?: string | undefined;
|
461
|
+
explorerAddress?: string | undefined;
|
462
|
+
aprRecord?: {
|
463
|
+
timestamp: string | bigint;
|
464
|
+
cumulated: number;
|
465
|
+
breakdowns: {
|
466
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
467
|
+
id: string;
|
468
|
+
identifier: string;
|
469
|
+
value: number;
|
470
|
+
aprRecordId: string;
|
471
|
+
}[];
|
523
472
|
} | undefined;
|
524
|
-
|
473
|
+
tvlRecord?: {
|
474
|
+
total: number;
|
475
|
+
timestamp: string | bigint;
|
476
|
+
breakdowns: {
|
477
|
+
type: "TOKEN" | "PROTOCOL";
|
478
|
+
id: string;
|
479
|
+
identifier: string;
|
480
|
+
value: number;
|
481
|
+
tvlRecordId: string;
|
482
|
+
}[];
|
483
|
+
} | undefined;
|
484
|
+
rewardsRecord?: {
|
485
|
+
total: number;
|
486
|
+
id: string;
|
487
|
+
timestamp: string | bigint;
|
488
|
+
breakdowns: {
|
489
|
+
token: {
|
490
|
+
price?: number | null | undefined;
|
491
|
+
symbol: string;
|
492
|
+
name: string | null;
|
493
|
+
id: string;
|
494
|
+
icon: string;
|
495
|
+
address: string;
|
496
|
+
chainId: number;
|
497
|
+
decimals: number;
|
498
|
+
verified: boolean;
|
499
|
+
isTest: boolean;
|
500
|
+
isPoint: boolean;
|
501
|
+
isPreTGE: boolean;
|
502
|
+
};
|
503
|
+
id: string;
|
504
|
+
value: number;
|
505
|
+
campaignId: string;
|
506
|
+
amount: string | bigint;
|
507
|
+
dailyRewardsRecordId: string;
|
508
|
+
}[];
|
509
|
+
} | undefined;
|
510
|
+
status: string;
|
525
511
|
type: string;
|
526
512
|
name: string;
|
513
|
+
tokens: {
|
514
|
+
price?: number | null | undefined;
|
515
|
+
symbol: string;
|
516
|
+
name: string | null;
|
517
|
+
id: string;
|
518
|
+
icon: string;
|
519
|
+
address: string;
|
520
|
+
chainId: number;
|
521
|
+
decimals: number;
|
522
|
+
verified: boolean;
|
523
|
+
isTest: boolean;
|
524
|
+
isPoint: boolean;
|
525
|
+
isPreTGE: boolean;
|
526
|
+
}[];
|
527
527
|
description: string;
|
528
|
+
id: string;
|
528
529
|
tags: string[];
|
529
530
|
identifier: string;
|
530
|
-
|
531
|
+
chain: {
|
532
|
+
name: string;
|
533
|
+
id: number;
|
534
|
+
icon: string;
|
535
|
+
};
|
536
|
+
action: string;
|
531
537
|
chainId: number;
|
532
538
|
howToSteps: string[];
|
533
539
|
tvl: number;
|
540
|
+
apr: number;
|
534
541
|
dailyRewards: number;
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
542
|
+
lastCampaignCreatedAt: string;
|
543
|
+
} | null)[] | {
|
544
|
+
200: ({
|
545
|
+
protocol?: {
|
546
|
+
url: string;
|
547
|
+
name: string;
|
548
|
+
description: string;
|
549
|
+
id: string;
|
550
|
+
tags: string[];
|
551
|
+
icon: string;
|
552
|
+
} | null | undefined;
|
553
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
554
|
+
depositUrl?: string | undefined;
|
555
|
+
explorerAddress?: string | undefined;
|
556
|
+
aprRecord?: {
|
557
|
+
timestamp: string | bigint;
|
558
|
+
cumulated: number;
|
559
|
+
breakdowns: {
|
560
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
561
|
+
id: string;
|
562
|
+
identifier: string;
|
563
|
+
value: number;
|
564
|
+
aprRecordId: string;
|
565
|
+
}[];
|
566
|
+
} | undefined;
|
567
|
+
tvlRecord?: {
|
568
|
+
total: number;
|
569
|
+
timestamp: string | bigint;
|
570
|
+
breakdowns: {
|
571
|
+
type: "TOKEN" | "PROTOCOL";
|
572
|
+
id: string;
|
573
|
+
identifier: string;
|
574
|
+
value: number;
|
575
|
+
tvlRecordId: string;
|
576
|
+
}[];
|
577
|
+
} | undefined;
|
578
|
+
rewardsRecord?: {
|
579
|
+
total: number;
|
580
|
+
id: string;
|
581
|
+
timestamp: string | bigint;
|
582
|
+
breakdowns: {
|
583
|
+
token: {
|
584
|
+
price?: number | null | undefined;
|
585
|
+
symbol: string;
|
586
|
+
name: string | null;
|
587
|
+
id: string;
|
588
|
+
icon: string;
|
589
|
+
address: string;
|
590
|
+
chainId: number;
|
591
|
+
decimals: number;
|
592
|
+
verified: boolean;
|
593
|
+
isTest: boolean;
|
594
|
+
isPoint: boolean;
|
595
|
+
isPreTGE: boolean;
|
596
|
+
};
|
597
|
+
id: string;
|
598
|
+
value: number;
|
599
|
+
campaignId: string;
|
600
|
+
amount: string | bigint;
|
601
|
+
dailyRewardsRecordId: string;
|
602
|
+
}[];
|
603
|
+
} | undefined;
|
604
|
+
status: string;
|
605
|
+
type: string;
|
606
|
+
name: string;
|
607
|
+
tokens: {
|
608
|
+
price?: number | null | undefined;
|
609
|
+
symbol: string;
|
610
|
+
name: string | null;
|
611
|
+
id: string;
|
612
|
+
icon: string;
|
613
|
+
address: string;
|
614
|
+
chainId: number;
|
615
|
+
decimals: number;
|
616
|
+
verified: boolean;
|
617
|
+
isTest: boolean;
|
618
|
+
isPoint: boolean;
|
619
|
+
isPreTGE: boolean;
|
620
|
+
}[];
|
621
|
+
description: string;
|
622
|
+
id: string;
|
623
|
+
tags: string[];
|
624
|
+
identifier: string;
|
625
|
+
chain: {
|
626
|
+
name: string;
|
627
|
+
id: number;
|
628
|
+
icon: string;
|
629
|
+
};
|
630
|
+
action: string;
|
631
|
+
chainId: number;
|
632
|
+
howToSteps: string[];
|
633
|
+
tvl: number;
|
634
|
+
apr: number;
|
635
|
+
dailyRewards: number;
|
636
|
+
lastCampaignCreatedAt: string;
|
637
|
+
} | null)[];
|
638
|
+
}) & ({
|
639
|
+
protocol?: {
|
640
|
+
url: string;
|
641
|
+
name: string;
|
642
|
+
description: string;
|
643
|
+
id: string;
|
644
|
+
tags: string[];
|
645
|
+
icon: string;
|
646
|
+
} | null | undefined;
|
647
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
648
|
+
depositUrl?: string | undefined;
|
649
|
+
explorerAddress?: string | undefined;
|
650
|
+
aprRecord?: {
|
651
|
+
timestamp: string | bigint;
|
652
|
+
cumulated: number;
|
653
|
+
breakdowns: {
|
654
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
655
|
+
id: string;
|
656
|
+
identifier: string;
|
657
|
+
value: number;
|
658
|
+
aprRecordId: string;
|
659
|
+
}[];
|
660
|
+
} | undefined;
|
661
|
+
tvlRecord?: {
|
662
|
+
total: number;
|
663
|
+
timestamp: string | bigint;
|
664
|
+
breakdowns: {
|
665
|
+
type: "TOKEN" | "PROTOCOL";
|
666
|
+
id: string;
|
667
|
+
identifier: string;
|
668
|
+
value: number;
|
669
|
+
tvlRecordId: string;
|
670
|
+
}[];
|
671
|
+
} | undefined;
|
672
|
+
rewardsRecord?: {
|
673
|
+
total: number;
|
674
|
+
id: string;
|
675
|
+
timestamp: string | bigint;
|
676
|
+
breakdowns: {
|
677
|
+
token: {
|
678
|
+
price?: number | null | undefined;
|
679
|
+
symbol: string;
|
680
|
+
name: string | null;
|
681
|
+
id: string;
|
682
|
+
icon: string;
|
683
|
+
address: string;
|
684
|
+
chainId: number;
|
685
|
+
decimals: number;
|
686
|
+
verified: boolean;
|
687
|
+
isTest: boolean;
|
688
|
+
isPoint: boolean;
|
689
|
+
isPreTGE: boolean;
|
690
|
+
};
|
691
|
+
id: string;
|
692
|
+
value: number;
|
693
|
+
campaignId: string;
|
694
|
+
amount: string | bigint;
|
695
|
+
dailyRewardsRecordId: string;
|
696
|
+
}[];
|
697
|
+
} | undefined;
|
698
|
+
status: string;
|
699
|
+
type: string;
|
700
|
+
name: string;
|
701
|
+
tokens: {
|
702
|
+
price?: number | null | undefined;
|
703
|
+
symbol: string;
|
704
|
+
name: string | null;
|
705
|
+
id: string;
|
706
|
+
icon: string;
|
707
|
+
address: string;
|
708
|
+
chainId: number;
|
709
|
+
decimals: number;
|
710
|
+
verified: boolean;
|
711
|
+
isTest: boolean;
|
712
|
+
isPoint: boolean;
|
713
|
+
isPreTGE: boolean;
|
714
|
+
}[];
|
715
|
+
description: string;
|
716
|
+
id: string;
|
717
|
+
tags: string[];
|
718
|
+
identifier: string;
|
719
|
+
chain: {
|
720
|
+
name: string;
|
721
|
+
id: number;
|
722
|
+
icon: string;
|
723
|
+
};
|
724
|
+
action: string;
|
725
|
+
chainId: number;
|
726
|
+
howToSteps: string[];
|
727
|
+
tvl: number;
|
728
|
+
apr: number;
|
729
|
+
dailyRewards: number;
|
730
|
+
lastCampaignCreatedAt: string;
|
731
|
+
} | null)[];
|
732
|
+
} | {
|
733
|
+
200: {
|
734
|
+
200: ({
|
735
|
+
protocol?: {
|
736
|
+
url: string;
|
737
|
+
name: string;
|
738
|
+
description: string;
|
739
|
+
id: string;
|
740
|
+
tags: string[];
|
741
|
+
icon: string;
|
742
|
+
} | null | undefined;
|
743
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
744
|
+
depositUrl?: string | undefined;
|
745
|
+
explorerAddress?: string | undefined;
|
746
|
+
aprRecord?: {
|
747
|
+
timestamp: string | bigint;
|
748
|
+
cumulated: number;
|
749
|
+
breakdowns: {
|
750
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
751
|
+
id: string;
|
752
|
+
identifier: string;
|
753
|
+
value: number;
|
754
|
+
aprRecordId: string;
|
755
|
+
}[];
|
756
|
+
} | undefined;
|
757
|
+
tvlRecord?: {
|
758
|
+
total: number;
|
759
|
+
timestamp: string | bigint;
|
760
|
+
breakdowns: {
|
761
|
+
type: "TOKEN" | "PROTOCOL";
|
762
|
+
id: string;
|
763
|
+
identifier: string;
|
764
|
+
value: number;
|
765
|
+
tvlRecordId: string;
|
766
|
+
}[];
|
767
|
+
} | undefined;
|
768
|
+
rewardsRecord?: {
|
769
|
+
total: number;
|
770
|
+
id: string;
|
771
|
+
timestamp: string | bigint;
|
772
|
+
breakdowns: {
|
773
|
+
token: {
|
774
|
+
price?: number | null | undefined;
|
775
|
+
symbol: string;
|
776
|
+
name: string | null;
|
777
|
+
id: string;
|
778
|
+
icon: string;
|
779
|
+
address: string;
|
780
|
+
chainId: number;
|
781
|
+
decimals: number;
|
782
|
+
verified: boolean;
|
783
|
+
isTest: boolean;
|
784
|
+
isPoint: boolean;
|
785
|
+
isPreTGE: boolean;
|
786
|
+
};
|
787
|
+
id: string;
|
788
|
+
value: number;
|
789
|
+
campaignId: string;
|
790
|
+
amount: string | bigint;
|
791
|
+
dailyRewardsRecordId: string;
|
792
|
+
}[];
|
793
|
+
} | undefined;
|
794
|
+
status: string;
|
795
|
+
type: string;
|
796
|
+
name: string;
|
797
|
+
tokens: {
|
798
|
+
price?: number | null | undefined;
|
799
|
+
symbol: string;
|
800
|
+
name: string | null;
|
801
|
+
id: string;
|
802
|
+
icon: string;
|
803
|
+
address: string;
|
804
|
+
chainId: number;
|
805
|
+
decimals: number;
|
806
|
+
verified: boolean;
|
807
|
+
isTest: boolean;
|
808
|
+
isPoint: boolean;
|
809
|
+
isPreTGE: boolean;
|
810
|
+
}[];
|
811
|
+
description: string;
|
812
|
+
id: string;
|
813
|
+
tags: string[];
|
814
|
+
identifier: string;
|
815
|
+
chain: {
|
816
|
+
name: string;
|
817
|
+
id: number;
|
818
|
+
icon: string;
|
819
|
+
};
|
820
|
+
action: string;
|
821
|
+
chainId: number;
|
822
|
+
howToSteps: string[];
|
823
|
+
tvl: number;
|
824
|
+
apr: number;
|
825
|
+
dailyRewards: number;
|
826
|
+
lastCampaignCreatedAt: string;
|
827
|
+
} | null)[];
|
828
|
+
};
|
829
|
+
};
|
830
|
+
};
|
831
|
+
};
|
832
|
+
};
|
833
|
+
} & {
|
834
|
+
opportunities: {
|
835
|
+
count: {
|
836
|
+
get: {
|
837
|
+
body: unknown;
|
838
|
+
params: {};
|
839
|
+
query: {
|
840
|
+
status?: string | undefined;
|
841
|
+
search?: string | undefined;
|
842
|
+
sort?: string | undefined;
|
843
|
+
type?: string | undefined;
|
844
|
+
name?: string | undefined;
|
845
|
+
tokens?: string | undefined;
|
846
|
+
items?: number | undefined;
|
847
|
+
tags?: string | undefined;
|
848
|
+
identifier?: string | undefined;
|
849
|
+
page?: number | undefined;
|
850
|
+
action?: string | undefined;
|
851
|
+
campaignId?: string | undefined;
|
852
|
+
creatorAddress?: string | undefined;
|
853
|
+
chainId?: string | undefined;
|
854
|
+
mainProtocolId?: string | undefined;
|
855
|
+
campaigns?: boolean | undefined;
|
856
|
+
point?: boolean | undefined;
|
857
|
+
rewardTokenSymbol?: string | undefined;
|
858
|
+
order?: string | undefined;
|
859
|
+
test?: boolean | undefined;
|
860
|
+
minimumTvl?: number | undefined;
|
861
|
+
};
|
862
|
+
headers: unknown;
|
863
|
+
response: {
|
864
|
+
200: number;
|
865
|
+
};
|
866
|
+
};
|
867
|
+
};
|
868
|
+
};
|
869
|
+
} & {
|
870
|
+
opportunities: {
|
871
|
+
bins: {
|
872
|
+
apr: {
|
873
|
+
get: {
|
874
|
+
body: unknown;
|
875
|
+
params: {};
|
876
|
+
query: {
|
877
|
+
status?: string | undefined;
|
878
|
+
search?: string | undefined;
|
879
|
+
sort?: string | undefined;
|
880
|
+
type?: string | undefined;
|
881
|
+
name?: string | undefined;
|
882
|
+
tokens?: string | undefined;
|
883
|
+
items?: number | undefined;
|
884
|
+
tags?: string | undefined;
|
885
|
+
identifier?: string | undefined;
|
886
|
+
page?: number | undefined;
|
887
|
+
action?: string | undefined;
|
888
|
+
campaignId?: string | undefined;
|
889
|
+
creatorAddress?: string | undefined;
|
890
|
+
chainId?: string | undefined;
|
891
|
+
mainProtocolId?: string | undefined;
|
892
|
+
campaigns?: boolean | undefined;
|
893
|
+
point?: boolean | undefined;
|
894
|
+
rewardTokenSymbol?: string | undefined;
|
895
|
+
order?: string | undefined;
|
896
|
+
test?: boolean | undefined;
|
897
|
+
minimumTvl?: number | undefined;
|
898
|
+
};
|
899
|
+
headers: unknown;
|
900
|
+
response: {
|
901
|
+
200: {
|
902
|
+
min: number;
|
903
|
+
max: number;
|
904
|
+
overThreshold: number;
|
905
|
+
binWidth: number;
|
906
|
+
bins: any[];
|
907
|
+
};
|
908
|
+
};
|
909
|
+
};
|
910
|
+
};
|
911
|
+
};
|
912
|
+
};
|
913
|
+
} & {
|
914
|
+
opportunities: {
|
915
|
+
bins: {
|
916
|
+
tvl: {
|
917
|
+
get: {
|
918
|
+
body: unknown;
|
919
|
+
params: {};
|
920
|
+
query: {
|
921
|
+
status?: string | undefined;
|
922
|
+
search?: string | undefined;
|
923
|
+
sort?: string | undefined;
|
924
|
+
type?: string | undefined;
|
925
|
+
name?: string | undefined;
|
926
|
+
tokens?: string | undefined;
|
927
|
+
items?: number | undefined;
|
928
|
+
tags?: string | undefined;
|
929
|
+
identifier?: string | undefined;
|
930
|
+
page?: number | undefined;
|
931
|
+
action?: string | undefined;
|
932
|
+
campaignId?: string | undefined;
|
933
|
+
creatorAddress?: string | undefined;
|
934
|
+
chainId?: string | undefined;
|
935
|
+
mainProtocolId?: string | undefined;
|
936
|
+
campaigns?: boolean | undefined;
|
937
|
+
point?: boolean | undefined;
|
938
|
+
rewardTokenSymbol?: string | undefined;
|
939
|
+
order?: string | undefined;
|
940
|
+
test?: boolean | undefined;
|
941
|
+
minimumTvl?: number | undefined;
|
942
|
+
};
|
943
|
+
headers: unknown;
|
944
|
+
response: {
|
945
|
+
200: {
|
946
|
+
min: number;
|
947
|
+
max: number;
|
948
|
+
binWidth: number;
|
949
|
+
bins: any[];
|
950
|
+
};
|
951
|
+
};
|
572
952
|
};
|
573
953
|
};
|
574
954
|
};
|