@merkl/api 1.1.47 → 1.1.50

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.
Files changed (29) hide show
  1. package/dist/src/eden/index.d.ts +446 -36
  2. package/dist/src/index.d.ts +223 -18
  3. package/dist/src/modules/v4/apr/apr.model.d.ts +3 -0
  4. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +7 -1
  5. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -0
  7. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +25 -8
  8. package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -4
  9. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +9 -3
  10. package/dist/src/modules/v4/chain/chain.controller.d.ts +1 -1
  11. package/dist/src/modules/v4/creator/creator.controller.d.ts +6 -2
  12. package/dist/src/modules/v4/creator/creator.repository.d.ts +3 -1
  13. package/dist/src/modules/v4/creator/creator.service.d.ts +6 -2
  14. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +186 -6
  15. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +6 -3
  16. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +7 -1
  17. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +73 -17
  18. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +18 -8
  19. package/dist/src/modules/v4/payload/payload.controller.d.ts +13 -4
  20. package/dist/src/modules/v4/payload/payload.model.d.ts +9 -0
  21. package/dist/src/modules/v4/payload/payload.service.d.ts +4 -4
  22. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -1
  23. package/dist/src/modules/v4/reward/reward.model.d.ts +2 -0
  24. package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -1
  25. package/dist/src/modules/v4/reward/reward.service.d.ts +10 -7
  26. package/dist/src/modules/v4/router.d.ts +223 -18
  27. package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +1 -1
@@ -29,6 +29,7 @@ export declare abstract class ProtocolRepository {
29
29
  static findMany(query: GetProtocolsQueryModel): Promise<({
30
30
  MainOpportunities: ({
31
31
  Campaigns: {
32
+ apr: number;
32
33
  campaignId: string;
33
34
  description: string | null;
34
35
  id: string;
@@ -43,6 +44,7 @@ export declare abstract class ProtocolRepository {
43
44
  subType: number | null;
44
45
  rewardTokenId: string;
45
46
  opportunityId: string;
47
+ dailyRewards: number;
46
48
  creatorAddress: string;
47
49
  manualOverrides: import("@package/databases").CampaignManualOverride[];
48
50
  createdAt: Date;
@@ -60,12 +62,12 @@ export declare abstract class ProtocolRepository {
60
62
  action: import("@package/databases").OpportunityAction;
61
63
  type: string;
62
64
  depositUrl: string | null;
65
+ dailyRewards: number;
63
66
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
64
67
  identifier: string;
65
68
  howToSteps: string[];
66
69
  explorerAddress: string | null;
67
70
  mainProtocolId: string | null;
68
- dailyRewards: number;
69
71
  tags: string[];
70
72
  lastCampaignCreatedAt: Date;
71
73
  })[];
@@ -42,6 +42,7 @@ export type DailyRewardsBreakdown = ResourceAPI<"DailyRewardsBreakdown", "id" |
42
42
  export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/typebox").TObject<{
43
43
  campaignId: import("@sinclair/typebox").TString;
44
44
  value: import("@sinclair/typebox").TNumber;
45
+ timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
45
46
  token: import("@sinclair/typebox").TObject<{
46
47
  id: import("@sinclair/typebox").TString;
47
48
  name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
@@ -79,6 +80,7 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
79
80
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
80
81
  campaignId: import("@sinclair/typebox").TString;
81
82
  value: import("@sinclair/typebox").TNumber;
83
+ timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
82
84
  token: import("@sinclair/typebox").TObject<{
83
85
  id: import("@sinclair/typebox").TString;
84
86
  name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
@@ -73,12 +73,12 @@ export declare abstract class RewardRepository {
73
73
  action: import("@package/databases").OpportunityAction;
74
74
  type: string;
75
75
  depositUrl: string | null;
76
+ dailyRewards: number;
76
77
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
77
78
  identifier: string;
78
79
  howToSteps: string[];
79
80
  explorerAddress: string | null;
80
81
  mainProtocolId: string | null;
81
- dailyRewards: number;
82
82
  tags: string[];
83
83
  lastCampaignCreatedAt: Date;
84
84
  };
@@ -21,11 +21,13 @@ export declare abstract class RewardService {
21
21
  timestamp: bigint;
22
22
  breakdowns: ({
23
23
  value: number;
24
+ timestamp: bigint;
24
25
  distributionType: import("@package/databases").DistributionType;
25
26
  identifier: string;
26
27
  type: "CAMPAIGN";
27
28
  } | {
28
29
  value: number;
30
+ timestamp: bigint;
29
31
  identifier: string;
30
32
  type: import("@package/databases").AprType;
31
33
  })[];
@@ -47,6 +49,7 @@ export declare abstract class RewardService {
47
49
  breakdowns: {
48
50
  campaignId: string;
49
51
  id: string;
52
+ timestamp: bigint;
50
53
  dailyRewardsRecordId: string;
51
54
  token: {
52
55
  symbol: string;
@@ -113,9 +116,9 @@ export declare abstract class RewardService {
113
116
  chainId: number;
114
117
  action: import("@package/databases").OpportunityAction;
115
118
  type: string;
119
+ dailyRewards: number;
116
120
  identifier: string;
117
121
  howToSteps: string[];
118
- dailyRewards: number;
119
122
  tags: string[];
120
123
  }, number>>;
121
124
  static getTotalDistributed(since: number): Promise<number>;
@@ -180,12 +183,12 @@ export declare abstract class RewardService {
180
183
  action: import("@package/databases").OpportunityAction;
181
184
  type: string;
182
185
  depositUrl: string | null;
186
+ dailyRewards: number;
183
187
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
184
188
  identifier: string;
185
189
  howToSteps: string[];
186
190
  explorerAddress: string | null;
187
191
  mainProtocolId: string | null;
188
- dailyRewards: number;
189
192
  tags: string[];
190
193
  lastCampaignCreatedAt: Date;
191
194
  };
@@ -268,12 +271,12 @@ export declare abstract class RewardService {
268
271
  action: import("@package/databases").OpportunityAction;
269
272
  type: string;
270
273
  depositUrl: string | null;
274
+ dailyRewards: number;
271
275
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
272
276
  identifier: string;
273
277
  howToSteps: string[];
274
278
  explorerAddress: string | null;
275
279
  mainProtocolId: string | null;
276
- dailyRewards: number;
277
280
  tags: string[];
278
281
  lastCampaignCreatedAt: Date;
279
282
  };
@@ -359,12 +362,12 @@ export declare abstract class RewardService {
359
362
  action: import("@package/databases").OpportunityAction;
360
363
  type: string;
361
364
  depositUrl: string | null;
365
+ dailyRewards: number;
362
366
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
363
367
  identifier: string;
364
368
  howToSteps: string[];
365
369
  explorerAddress: string | null;
366
370
  mainProtocolId: string | null;
367
- dailyRewards: number;
368
371
  tags: string[];
369
372
  lastCampaignCreatedAt: Date;
370
373
  };
@@ -481,12 +484,12 @@ export declare abstract class RewardService {
481
484
  action: import("@package/databases").OpportunityAction;
482
485
  type: string;
483
486
  depositUrl: string | null;
487
+ dailyRewards: number;
484
488
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
485
489
  identifier: string;
486
490
  howToSteps: string[];
487
491
  explorerAddress: string | null;
488
492
  mainProtocolId: string | null;
489
- dailyRewards: number;
490
493
  tags: string[];
491
494
  lastCampaignCreatedAt: Date;
492
495
  };
@@ -584,12 +587,12 @@ export declare abstract class RewardService {
584
587
  action: import("@package/databases").OpportunityAction;
585
588
  type: string;
586
589
  depositUrl: string | null;
590
+ dailyRewards: number;
587
591
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
588
592
  identifier: string;
589
593
  howToSteps: string[];
590
594
  explorerAddress: string | null;
591
595
  mainProtocolId: string | null;
592
- dailyRewards: number;
593
596
  tags: string[];
594
597
  lastCampaignCreatedAt: Date;
595
598
  };
@@ -685,12 +688,12 @@ export declare abstract class RewardService {
685
688
  action: import("@package/databases").OpportunityAction;
686
689
  type: string;
687
690
  depositUrl: string | null;
691
+ dailyRewards: number;
688
692
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
689
693
  identifier: string;
690
694
  howToSteps: string[];
691
695
  explorerAddress: string | null;
692
696
  mainProtocolId: string | null;
693
- dailyRewards: number;
694
697
  tags: string[];
695
698
  lastCampaignCreatedAt: Date;
696
699
  };