@merkl/api 1.1.46 → 1.1.49
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/src/eden/index.d.ts +164 -38
- package/dist/src/index.d.ts +82 -19
- package/dist/src/modules/v4/apr/apr.model.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +13 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +6 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +41 -8
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -4
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +15 -3
- package/dist/src/modules/v4/chain/chain.controller.d.ts +9 -0
- package/dist/src/modules/v4/chain/chain.model.d.ts +3 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +12 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +6 -2
- package/dist/src/modules/v4/creator/creator.repository.d.ts +3 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +6 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +21 -7
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +10 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +9 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +91 -17
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +24 -8
- package/dist/src/modules/v4/payload/payload.controller.d.ts +13 -4
- package/dist/src/modules/v4/payload/payload.model.d.ts +9 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +4 -4
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +24 -7
- package/dist/src/modules/v4/router.d.ts +82 -19
- package/dist/src/modules/v4/status/status.controller.d.ts +0 -1
- package/dist/src/modules/v4/status/status.service.d.ts +0 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +5 -1
- package/dist/src/modules/v4/user/user.model.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -49,6 +49,15 @@ export declare const SinglePayloadInputDto: import("@sinclair/typebox").TObject<
|
|
49
49
|
contract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
50
50
|
rewardsUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
51
51
|
dataUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
52
|
+
vaultAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
53
|
+
computeScoreParameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
54
|
+
computeMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
55
|
+
computeSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
56
|
+
}>>;
|
57
|
+
distributionMethodParameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
58
|
+
distributionMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
59
|
+
distributionSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
60
|
+
}>>;
|
52
61
|
}>;
|
53
62
|
export declare const ProgramPayloadInputDto: import("@sinclair/typebox").TObject<{
|
54
63
|
program: import("@sinclair/typebox").TString;
|
@@ -81,12 +81,12 @@ export declare class PayloadService {
|
|
81
81
|
action: import("@package/databases").OpportunityAction;
|
82
82
|
type: string;
|
83
83
|
depositUrl: string | null;
|
84
|
+
dailyRewards: number;
|
84
85
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
85
86
|
identifier: string;
|
86
87
|
howToSteps: string[];
|
87
88
|
explorerAddress: string | null;
|
88
89
|
mainProtocolId: string | null;
|
89
|
-
dailyRewards: number;
|
90
90
|
tags: string[];
|
91
91
|
lastCampaignCreatedAt: Date;
|
92
92
|
}) | undefined;
|
@@ -178,12 +178,12 @@ export declare class PayloadService {
|
|
178
178
|
action: import("@package/databases").OpportunityAction;
|
179
179
|
type: string;
|
180
180
|
depositUrl: string | null;
|
181
|
+
dailyRewards: number;
|
181
182
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
182
183
|
identifier: string;
|
183
184
|
howToSteps: string[];
|
184
185
|
explorerAddress: string | null;
|
185
186
|
mainProtocolId: string | null;
|
186
|
-
dailyRewards: number;
|
187
187
|
tags: string[];
|
188
188
|
lastCampaignCreatedAt: Date;
|
189
189
|
});
|
@@ -273,12 +273,12 @@ export declare class PayloadService {
|
|
273
273
|
action: import("@package/databases").OpportunityAction;
|
274
274
|
type: string;
|
275
275
|
depositUrl: string | null;
|
276
|
+
dailyRewards: number;
|
276
277
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
277
278
|
identifier: string;
|
278
279
|
howToSteps: string[];
|
279
280
|
explorerAddress: string | null;
|
280
281
|
mainProtocolId: string | null;
|
281
|
-
dailyRewards: number;
|
282
282
|
tags: string[];
|
283
283
|
lastCampaignCreatedAt: Date;
|
284
284
|
});
|
@@ -368,12 +368,12 @@ export declare class PayloadService {
|
|
368
368
|
action: import("@package/databases").OpportunityAction;
|
369
369
|
type: string;
|
370
370
|
depositUrl: string | null;
|
371
|
+
dailyRewards: number;
|
371
372
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
372
373
|
identifier: string;
|
373
374
|
howToSteps: string[];
|
374
375
|
explorerAddress: string | null;
|
375
376
|
mainProtocolId: string | null;
|
376
|
-
dailyRewards: number;
|
377
377
|
tags: string[];
|
378
378
|
lastCampaignCreatedAt: Date;
|
379
379
|
});
|
@@ -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
|
})[];
|
@@ -26,8 +26,10 @@ export declare abstract class RewardRepository {
|
|
26
26
|
Opportunity: {
|
27
27
|
Chain: {
|
28
28
|
name: string;
|
29
|
+
endOfDisputePeriod: number;
|
29
30
|
id: number;
|
30
31
|
icon: string;
|
32
|
+
liveCampaigns: number;
|
31
33
|
};
|
32
34
|
Tokens: {
|
33
35
|
symbol: string;
|
@@ -71,12 +73,12 @@ export declare abstract class RewardRepository {
|
|
71
73
|
action: import("@package/databases").OpportunityAction;
|
72
74
|
type: string;
|
73
75
|
depositUrl: string | null;
|
76
|
+
dailyRewards: number;
|
74
77
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
75
78
|
identifier: string;
|
76
79
|
howToSteps: string[];
|
77
80
|
explorerAddress: string | null;
|
78
81
|
mainProtocolId: string | null;
|
79
|
-
dailyRewards: number;
|
80
82
|
tags: string[];
|
81
83
|
lastCampaignCreatedAt: Date;
|
82
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;
|
@@ -88,8 +91,10 @@ export declare abstract class RewardService {
|
|
88
91
|
})[];
|
89
92
|
chain: {
|
90
93
|
name: string;
|
94
|
+
endOfDisputePeriod: number;
|
91
95
|
id: number;
|
92
96
|
icon: string;
|
97
|
+
liveCampaigns: number;
|
93
98
|
};
|
94
99
|
protocol: {
|
95
100
|
name: string;
|
@@ -111,9 +116,9 @@ export declare abstract class RewardService {
|
|
111
116
|
chainId: number;
|
112
117
|
action: import("@package/databases").OpportunityAction;
|
113
118
|
type: string;
|
119
|
+
dailyRewards: number;
|
114
120
|
identifier: string;
|
115
121
|
howToSteps: string[];
|
116
|
-
dailyRewards: number;
|
117
122
|
tags: string[];
|
118
123
|
}, number>>;
|
119
124
|
static getTotalDistributed(since: number): Promise<number>;
|
@@ -131,8 +136,10 @@ export declare abstract class RewardService {
|
|
131
136
|
opportunity: {
|
132
137
|
Chain: {
|
133
138
|
name: string;
|
139
|
+
endOfDisputePeriod: number;
|
134
140
|
id: number;
|
135
141
|
icon: string;
|
142
|
+
liveCampaigns: number;
|
136
143
|
};
|
137
144
|
Tokens: {
|
138
145
|
symbol: string;
|
@@ -176,12 +183,12 @@ export declare abstract class RewardService {
|
|
176
183
|
action: import("@package/databases").OpportunityAction;
|
177
184
|
type: string;
|
178
185
|
depositUrl: string | null;
|
186
|
+
dailyRewards: number;
|
179
187
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
180
188
|
identifier: string;
|
181
189
|
howToSteps: string[];
|
182
190
|
explorerAddress: string | null;
|
183
191
|
mainProtocolId: string | null;
|
184
|
-
dailyRewards: number;
|
185
192
|
tags: string[];
|
186
193
|
lastCampaignCreatedAt: Date;
|
187
194
|
};
|
@@ -217,8 +224,10 @@ export declare abstract class RewardService {
|
|
217
224
|
opportunity: {
|
218
225
|
Chain: {
|
219
226
|
name: string;
|
227
|
+
endOfDisputePeriod: number;
|
220
228
|
id: number;
|
221
229
|
icon: string;
|
230
|
+
liveCampaigns: number;
|
222
231
|
};
|
223
232
|
Tokens: {
|
224
233
|
symbol: string;
|
@@ -262,12 +271,12 @@ export declare abstract class RewardService {
|
|
262
271
|
action: import("@package/databases").OpportunityAction;
|
263
272
|
type: string;
|
264
273
|
depositUrl: string | null;
|
274
|
+
dailyRewards: number;
|
265
275
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
266
276
|
identifier: string;
|
267
277
|
howToSteps: string[];
|
268
278
|
explorerAddress: string | null;
|
269
279
|
mainProtocolId: string | null;
|
270
|
-
dailyRewards: number;
|
271
280
|
tags: string[];
|
272
281
|
lastCampaignCreatedAt: Date;
|
273
282
|
};
|
@@ -306,8 +315,10 @@ export declare abstract class RewardService {
|
|
306
315
|
Opportunity: {
|
307
316
|
Chain: {
|
308
317
|
name: string;
|
318
|
+
endOfDisputePeriod: number;
|
309
319
|
id: number;
|
310
320
|
icon: string;
|
321
|
+
liveCampaigns: number;
|
311
322
|
};
|
312
323
|
Tokens: {
|
313
324
|
symbol: string;
|
@@ -351,12 +362,12 @@ export declare abstract class RewardService {
|
|
351
362
|
action: import("@package/databases").OpportunityAction;
|
352
363
|
type: string;
|
353
364
|
depositUrl: string | null;
|
365
|
+
dailyRewards: number;
|
354
366
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
355
367
|
identifier: string;
|
356
368
|
howToSteps: string[];
|
357
369
|
explorerAddress: string | null;
|
358
370
|
mainProtocolId: string | null;
|
359
|
-
dailyRewards: number;
|
360
371
|
tags: string[];
|
361
372
|
lastCampaignCreatedAt: Date;
|
362
373
|
};
|
@@ -426,8 +437,10 @@ export declare abstract class RewardService {
|
|
426
437
|
opportunity: {
|
427
438
|
Chain: {
|
428
439
|
name: string;
|
440
|
+
endOfDisputePeriod: number;
|
429
441
|
id: number;
|
430
442
|
icon: string;
|
443
|
+
liveCampaigns: number;
|
431
444
|
};
|
432
445
|
Tokens: {
|
433
446
|
symbol: string;
|
@@ -471,12 +484,12 @@ export declare abstract class RewardService {
|
|
471
484
|
action: import("@package/databases").OpportunityAction;
|
472
485
|
type: string;
|
473
486
|
depositUrl: string | null;
|
487
|
+
dailyRewards: number;
|
474
488
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
475
489
|
identifier: string;
|
476
490
|
howToSteps: string[];
|
477
491
|
explorerAddress: string | null;
|
478
492
|
mainProtocolId: string | null;
|
479
|
-
dailyRewards: number;
|
480
493
|
tags: string[];
|
481
494
|
lastCampaignCreatedAt: Date;
|
482
495
|
};
|
@@ -527,8 +540,10 @@ export declare abstract class RewardService {
|
|
527
540
|
opportunity: {
|
528
541
|
Chain: {
|
529
542
|
name: string;
|
543
|
+
endOfDisputePeriod: number;
|
530
544
|
id: number;
|
531
545
|
icon: string;
|
546
|
+
liveCampaigns: number;
|
532
547
|
};
|
533
548
|
Tokens: {
|
534
549
|
symbol: string;
|
@@ -572,12 +587,12 @@ export declare abstract class RewardService {
|
|
572
587
|
action: import("@package/databases").OpportunityAction;
|
573
588
|
type: string;
|
574
589
|
depositUrl: string | null;
|
590
|
+
dailyRewards: number;
|
575
591
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
576
592
|
identifier: string;
|
577
593
|
howToSteps: string[];
|
578
594
|
explorerAddress: string | null;
|
579
595
|
mainProtocolId: string | null;
|
580
|
-
dailyRewards: number;
|
581
596
|
tags: string[];
|
582
597
|
lastCampaignCreatedAt: Date;
|
583
598
|
};
|
@@ -626,8 +641,10 @@ export declare abstract class RewardService {
|
|
626
641
|
Opportunity: {
|
627
642
|
Chain: {
|
628
643
|
name: string;
|
644
|
+
endOfDisputePeriod: number;
|
629
645
|
id: number;
|
630
646
|
icon: string;
|
647
|
+
liveCampaigns: number;
|
631
648
|
};
|
632
649
|
Tokens: {
|
633
650
|
symbol: string;
|
@@ -671,12 +688,12 @@ export declare abstract class RewardService {
|
|
671
688
|
action: import("@package/databases").OpportunityAction;
|
672
689
|
type: string;
|
673
690
|
depositUrl: string | null;
|
691
|
+
dailyRewards: number;
|
674
692
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
675
693
|
identifier: string;
|
676
694
|
howToSteps: string[];
|
677
695
|
explorerAddress: string | null;
|
678
696
|
mainProtocolId: string | null;
|
679
|
-
dailyRewards: number;
|
680
697
|
tags: string[];
|
681
698
|
lastCampaignCreatedAt: Date;
|
682
699
|
};
|