@merkl/api 0.20.1 → 0.20.2

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.
@@ -279,44 +279,136 @@ declare const app: Elysia<"", false, {
279
279
  };
280
280
  headers: unknown;
281
281
  response: {
282
- 200: {
283
- apr: number;
284
- aprRecord: {
282
+ 200: ({
283
+ protocol?: {
284
+ id: string;
285
+ name: string;
286
+ url: string;
287
+ description: string;
288
+ tags: string[];
289
+ icon: string;
290
+ } | null | undefined;
291
+ depositUrl?: string | undefined;
292
+ explorerAddress?: string | undefined;
293
+ aprRecord?: {
294
+ timestamp: string | bigint;
285
295
  cumulated: number;
286
- timestamp: bigint;
287
296
  breakdowns: {
288
297
  id: number;
289
- type: import("@db/api").$Enums.AprType;
290
- uuid: string;
298
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
291
299
  identifier: string;
292
300
  value: number;
293
301
  aprRecordId: string;
294
302
  }[];
295
- };
296
- tvlRecord: {
297
- id: string;
303
+ } | undefined;
304
+ tvlRecord?: {
298
305
  total: number;
299
- timestamp: bigint;
306
+ timestamp: string | bigint;
300
307
  breakdowns: {
301
308
  id: number;
302
- type: import("@db/api").$Enums.TvlType;
303
- uuid: string;
309
+ type: "TOKEN" | "PROTOCOL";
304
310
  identifier: string;
305
311
  value: number;
306
312
  tvlRecordId: string;
307
313
  }[];
308
- };
309
- rewardsRecord: {
314
+ } | undefined;
315
+ rewardsRecord?: {
310
316
  id: string;
311
317
  total: number;
312
- timestamp: bigint;
318
+ timestamp: string | bigint;
313
319
  breakdowns: {
314
320
  id: number;
315
- uuid: string;
321
+ token: {
322
+ price?: number | null | undefined;
323
+ symbol: string;
324
+ id: string;
325
+ name: string | null;
326
+ icon: string;
327
+ address: string;
328
+ chainId: number;
329
+ decimals: number;
330
+ verified: boolean;
331
+ isTest: boolean;
332
+ };
316
333
  value: number;
317
334
  campaignId: string;
335
+ amount: string | bigint;
318
336
  dailyRewardsRecordId: string;
337
+ }[];
338
+ } | undefined;
339
+ id: string;
340
+ name: string;
341
+ type: string;
342
+ status: string;
343
+ tokens: {
344
+ price?: number | null | undefined;
345
+ symbol: string;
346
+ id: string;
347
+ name: string | null;
348
+ icon: string;
349
+ address: string;
350
+ chainId: number;
351
+ decimals: number;
352
+ verified: boolean;
353
+ isTest: boolean;
354
+ }[];
355
+ tags: string[];
356
+ identifier: string;
357
+ chain: {
358
+ id: number;
359
+ name: string;
360
+ icon: string;
361
+ };
362
+ action: string;
363
+ chainId: number;
364
+ tvl: number;
365
+ apr: number;
366
+ dailyRewards: number;
367
+ } | null)[];
368
+ } | {
369
+ 200: never;
370
+ } | {
371
+ 200: (Response | ({
372
+ protocol?: {
373
+ id: string;
374
+ name: string;
375
+ url: string;
376
+ description: string;
377
+ tags: string[];
378
+ icon: string;
379
+ } | null | undefined;
380
+ depositUrl?: string | undefined;
381
+ explorerAddress?: string | undefined;
382
+ aprRecord?: {
383
+ timestamp: string | bigint;
384
+ cumulated: number;
385
+ breakdowns: {
386
+ id: number;
387
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
388
+ identifier: string;
389
+ value: number;
390
+ aprRecordId: string;
391
+ }[];
392
+ } | undefined;
393
+ tvlRecord?: {
394
+ total: number;
395
+ timestamp: string | bigint;
396
+ breakdowns: {
397
+ id: number;
398
+ type: "TOKEN" | "PROTOCOL";
399
+ identifier: string;
400
+ value: number;
401
+ tvlRecordId: string;
402
+ }[];
403
+ } | undefined;
404
+ rewardsRecord?: {
405
+ id: string;
406
+ total: number;
407
+ timestamp: string | bigint;
408
+ breakdowns: {
409
+ id: number;
319
410
  token: {
411
+ price?: number | null | undefined;
320
412
  symbol: string;
321
413
  id: string;
322
414
  name: string | null;
@@ -324,26 +416,107 @@ declare const app: Elysia<"", false, {
324
416
  address: string;
325
417
  chainId: number;
326
418
  decimals: number;
327
- displaySymbol: string;
328
419
  verified: boolean;
329
420
  isTest: boolean;
330
- isPoint: boolean;
331
- isNative: boolean;
332
- price: number | null;
333
421
  };
334
- amount: bigint;
422
+ value: number;
423
+ campaignId: string;
424
+ amount: string | bigint;
425
+ dailyRewardsRecordId: string;
335
426
  }[];
427
+ } | undefined;
428
+ id: string;
429
+ name: string;
430
+ type: string;
431
+ status: string;
432
+ tokens: {
433
+ price?: number | null | undefined;
434
+ symbol: string;
435
+ id: string;
436
+ name: string | null;
437
+ icon: string;
438
+ address: string;
439
+ chainId: number;
440
+ decimals: number;
441
+ verified: boolean;
442
+ isTest: boolean;
443
+ }[];
444
+ tags: string[];
445
+ identifier: string;
446
+ chain: {
447
+ id: number;
448
+ name: string;
449
+ icon: string;
336
450
  };
337
- campaigns: {
338
- params: any;
339
- chain: {
340
- id: number;
451
+ action: string;
452
+ chainId: number;
453
+ tvl: number;
454
+ apr: number;
455
+ dailyRewards: number;
456
+ } | null)[] | {
457
+ 200: ({
458
+ protocol?: {
459
+ id: string;
341
460
  name: string;
461
+ url: string;
462
+ description: string;
463
+ tags: string[];
342
464
  icon: string;
343
- };
344
- endTimestamp: number;
345
- startTimestamp: number;
346
- rewardToken: {
465
+ } | null | undefined;
466
+ depositUrl?: string | undefined;
467
+ explorerAddress?: string | undefined;
468
+ aprRecord?: {
469
+ timestamp: string | bigint;
470
+ cumulated: number;
471
+ breakdowns: {
472
+ id: number;
473
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
474
+ identifier: string;
475
+ value: number;
476
+ aprRecordId: string;
477
+ }[];
478
+ } | undefined;
479
+ tvlRecord?: {
480
+ total: number;
481
+ timestamp: string | bigint;
482
+ breakdowns: {
483
+ id: number;
484
+ type: "TOKEN" | "PROTOCOL";
485
+ identifier: string;
486
+ value: number;
487
+ tvlRecordId: string;
488
+ }[];
489
+ } | undefined;
490
+ rewardsRecord?: {
491
+ id: string;
492
+ total: number;
493
+ timestamp: string | bigint;
494
+ breakdowns: {
495
+ id: number;
496
+ token: {
497
+ price?: number | null | undefined;
498
+ symbol: string;
499
+ id: string;
500
+ name: string | null;
501
+ icon: string;
502
+ address: string;
503
+ chainId: number;
504
+ decimals: number;
505
+ verified: boolean;
506
+ isTest: boolean;
507
+ };
508
+ value: number;
509
+ campaignId: string;
510
+ amount: string | bigint;
511
+ dailyRewardsRecordId: string;
512
+ }[];
513
+ } | undefined;
514
+ id: string;
515
+ name: string;
516
+ type: string;
517
+ status: string;
518
+ tokens: {
519
+ price?: number | null | undefined;
347
520
  symbol: string;
348
521
  id: string;
349
522
  name: string | null;
@@ -353,60 +526,83 @@ declare const app: Elysia<"", false, {
353
526
  decimals: number;
354
527
  verified: boolean;
355
528
  isTest: boolean;
356
- isPoint: boolean;
357
- isNative: boolean;
358
- } & {
359
- price?: number | null | undefined;
360
- };
361
- distributionChain: {
529
+ }[];
530
+ tags: string[];
531
+ identifier: string;
532
+ chain: {
362
533
  id: number;
363
534
  name: string;
364
535
  icon: string;
365
- } | undefined;
366
- campaignStatus: {
367
- computedUntil: number;
368
- processingStarted: number;
369
- error: string;
370
- status: import("@db/api").$Enums.RunStatus;
371
- details: import("database/api/.generated/runtime/library").JsonValue;
372
- campaignId: string;
373
- } | undefined;
374
- creatorAddress: string;
375
- creator: {
376
- tags: string[];
377
- address: string;
378
- creatorId: string | null;
379
536
  };
380
- createdAt: string;
381
- Opportunity: {
382
- id: string;
383
- name: string;
384
- type: string;
385
- status: import("@db/api").$Enums.Status;
386
- tags: string[];
537
+ action: string;
538
+ chainId: number;
539
+ tvl: number;
540
+ apr: number;
541
+ dailyRewards: number;
542
+ } | null)[];
543
+ }) & ({
544
+ protocol?: {
545
+ id: string;
546
+ name: string;
547
+ url: string;
548
+ description: string;
549
+ tags: string[];
550
+ icon: string;
551
+ } | null | undefined;
552
+ depositUrl?: string | undefined;
553
+ explorerAddress?: string | undefined;
554
+ aprRecord?: {
555
+ timestamp: string | bigint;
556
+ cumulated: number;
557
+ breakdowns: {
558
+ id: number;
559
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
387
560
  identifier: string;
388
- action: import("@db/api").$Enums.OpportunityAction;
389
- chainId: number;
390
- depositUrl: string | null;
391
- explorerAddress: string | null;
392
- mainProtocolId: string | null;
393
- tvl: number;
394
- apr: number;
395
- dailyRewards: number;
396
- };
561
+ value: number;
562
+ aprRecordId: string;
563
+ }[];
564
+ } | undefined;
565
+ tvlRecord?: {
566
+ total: number;
567
+ timestamp: string | bigint;
568
+ breakdowns: {
569
+ id: number;
570
+ type: "TOKEN" | "PROTOCOL";
571
+ identifier: string;
572
+ value: number;
573
+ tvlRecordId: string;
574
+ }[];
575
+ } | undefined;
576
+ rewardsRecord?: {
397
577
  id: string;
398
- type: string;
399
- subType: number | null;
400
- computeChainId: number;
401
- distributionChainId: number;
402
- campaignId: string;
403
- rewardTokenId: string;
404
- amount: string;
405
- opportunityId: string;
406
- }[] | undefined;
578
+ total: number;
579
+ timestamp: string | bigint;
580
+ breakdowns: {
581
+ id: number;
582
+ token: {
583
+ price?: number | null | undefined;
584
+ symbol: string;
585
+ id: string;
586
+ name: string | null;
587
+ icon: string;
588
+ address: string;
589
+ chainId: number;
590
+ decimals: number;
591
+ verified: boolean;
592
+ isTest: boolean;
593
+ };
594
+ value: number;
595
+ campaignId: string;
596
+ amount: string | bigint;
597
+ dailyRewardsRecordId: string;
598
+ }[];
599
+ } | undefined;
407
600
  id: string;
408
- depositUrl: string | undefined;
409
- tokens: ({
601
+ name: string;
602
+ type: string;
603
+ status: string;
604
+ tokens: {
605
+ price?: number | null | undefined;
410
606
  symbol: string;
411
607
  id: string;
412
608
  name: string | null;
@@ -416,35 +612,109 @@ declare const app: Elysia<"", false, {
416
612
  decimals: number;
417
613
  verified: boolean;
418
614
  isTest: boolean;
419
- isPoint: boolean;
420
- isNative: boolean;
421
- } & {
422
- price?: number | null | undefined;
423
- })[];
615
+ }[];
616
+ tags: string[];
617
+ identifier: string;
424
618
  chain: {
425
619
  id: number;
426
620
  name: string;
427
621
  icon: string;
428
622
  };
429
- protocol: {
430
- id: string;
431
- name: string;
432
- url: string;
433
- description: string;
434
- tags: string[];
435
- icon: string;
436
- } | undefined;
437
- name: string;
438
- type: string;
439
- status: import("@db/api").$Enums.Status;
440
- tags: string[];
441
- identifier: string;
442
- action: import("@db/api").$Enums.OpportunityAction;
623
+ action: string;
443
624
  chainId: number;
444
- explorerAddress: string | null;
445
625
  tvl: number;
626
+ apr: number;
446
627
  dailyRewards: number;
447
- }[];
628
+ } | null)[];
629
+ } | {
630
+ 200: {
631
+ 200: ({
632
+ protocol?: {
633
+ id: string;
634
+ name: string;
635
+ url: string;
636
+ description: string;
637
+ tags: string[];
638
+ icon: string;
639
+ } | null | undefined;
640
+ depositUrl?: string | undefined;
641
+ explorerAddress?: string | undefined;
642
+ aprRecord?: {
643
+ timestamp: string | bigint;
644
+ cumulated: number;
645
+ breakdowns: {
646
+ id: number;
647
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
648
+ identifier: string;
649
+ value: number;
650
+ aprRecordId: string;
651
+ }[];
652
+ } | undefined;
653
+ tvlRecord?: {
654
+ total: number;
655
+ timestamp: string | bigint;
656
+ breakdowns: {
657
+ id: number;
658
+ type: "TOKEN" | "PROTOCOL";
659
+ identifier: string;
660
+ value: number;
661
+ tvlRecordId: string;
662
+ }[];
663
+ } | undefined;
664
+ rewardsRecord?: {
665
+ id: string;
666
+ total: number;
667
+ timestamp: string | bigint;
668
+ breakdowns: {
669
+ id: number;
670
+ token: {
671
+ price?: number | null | undefined;
672
+ symbol: string;
673
+ id: string;
674
+ name: string | null;
675
+ icon: string;
676
+ address: string;
677
+ chainId: number;
678
+ decimals: number;
679
+ verified: boolean;
680
+ isTest: boolean;
681
+ };
682
+ value: number;
683
+ campaignId: string;
684
+ amount: string | bigint;
685
+ dailyRewardsRecordId: string;
686
+ }[];
687
+ } | undefined;
688
+ id: string;
689
+ name: string;
690
+ type: string;
691
+ status: string;
692
+ tokens: {
693
+ price?: number | null | undefined;
694
+ symbol: string;
695
+ id: string;
696
+ name: string | null;
697
+ icon: string;
698
+ address: string;
699
+ chainId: number;
700
+ decimals: number;
701
+ verified: boolean;
702
+ isTest: boolean;
703
+ }[];
704
+ tags: string[];
705
+ identifier: string;
706
+ chain: {
707
+ id: number;
708
+ name: string;
709
+ icon: string;
710
+ };
711
+ action: string;
712
+ chainId: number;
713
+ tvl: number;
714
+ apr: number;
715
+ dailyRewards: number;
716
+ } | null)[];
717
+ };
448
718
  };
449
719
  };
450
720
  };
@@ -508,6 +778,7 @@ declare const app: Elysia<"", false, {
508
778
  icon: string;
509
779
  } | null | undefined;
510
780
  depositUrl?: string | undefined;
781
+ explorerAddress?: string | undefined;
511
782
  aprRecord?: {
512
783
  timestamp: string | bigint;
513
784
  cumulated: number;
@@ -638,6 +909,7 @@ declare const app: Elysia<"", false, {
638
909
  icon: string;
639
910
  } | null | undefined;
640
911
  depositUrl?: string | undefined;
912
+ explorerAddress?: string | undefined;
641
913
  aprRecord?: {
642
914
  timestamp: string | bigint;
643
915
  cumulated: number;
@@ -802,6 +1074,7 @@ declare const app: Elysia<"", false, {
802
1074
  icon: string;
803
1075
  } | null | undefined;
804
1076
  depositUrl?: string | undefined;
1077
+ explorerAddress?: string | undefined;
805
1078
  aprRecord?: {
806
1079
  timestamp: string | bigint;
807
1080
  cumulated: number;