@merkl/api 0.18.8 → 0.18.10
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/backgroundJobs/index.js +1 -1
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.js +1 -1
- package/dist/src/eden/index.d.ts +521 -518
- package/dist/src/factories/opportunityMetadata/implementations/Clamm.js +1 -1
- package/dist/src/index.d.ts +111 -110
- package/dist/src/index.js +1 -1
- package/dist/src/jobs/etl/pendings.js +1 -1
- package/dist/src/jobs/etl/reward-breakdowns.js +1 -1
- package/dist/src/jobs/etl/rewards.js +1 -1
- package/dist/src/jobs/etl/update-euler-vaults.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +1 -1
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +1 -1
- package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +1 -1
- package/dist/src/libs/getTokensList.d.ts +3 -0
- package/dist/src/libs/positions/erc20/index.js +1 -0
- package/dist/src/libs/staticCampaigns.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +6 -6
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +16 -16
- package/dist/src/modules/v4/accounting/accounting.repository.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +20 -20
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +29 -29
- package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +26 -26
- package/dist/src/modules/v4/chain/chain.repository.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +1 -1
- package/dist/src/modules/v4/creator/creator.repository.js +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.repository.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +34 -34
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +57 -57
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +35 -35
- package/dist/src/modules/v4/price/price.repository.js +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +11 -11
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -3
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -1
- package/dist/src/modules/v4/referral/referral.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.repository.js +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +17 -17
- package/dist/src/modules/v4/router.d.ts +102 -102
- package/dist/src/modules/v4/status/status.controller.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.js +1 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +12 -12
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -9
- package/dist/src/modules/v4/token/token.repository.js +3 -9
- package/dist/src/modules/v4/token/token.service.d.ts +10 -10
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/user/user.controller.d.ts +6 -6
- package/dist/src/modules/v4/user/user.repository.js +1 -1
- package/dist/src/modules/v4/user/user.service.js +1 -1
- package/dist/src/routes/v3/campaign/delay.js +1 -1
- package/dist/src/routes/v3/campaignClaims.d.ts +1 -1
- package/dist/src/routes/v3/campaignClaims.js +1 -1
- package/dist/src/routes/v3/campaigns.d.ts +3 -2
- package/dist/src/routes/v3/campaigns.js +21 -59
- package/dist/src/routes/v3/multiChainPositions.js +1 -0
- package/dist/src/routes/v3/opportunity.d.ts +1 -1
- package/dist/src/routes/v3/parse.d.ts +1 -1
- package/dist/src/routes/v3/positions.js +1 -0
- package/dist/src/routes/v3/recipients.d.ts +1 -1
- package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
- package/dist/src/routes/v3/router.d.ts +9 -8
- package/dist/src/routes/v3/token.d.ts +1 -1
- package/dist/src/utils/execute.d.ts +3 -13
- package/dist/src/utils/execute.js +77 -1
- package/dist/src/utils/generic.d.ts +1 -18
- package/dist/src/utils/generic.js +2 -76
- package/dist/src/utils/hashArray.d.ts +1 -0
- package/dist/src/utils/hashArray.js +4 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +0 -4
- package/dist/src/utils/queries/allCampaigns.js +0 -39
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/utils/addString.d.ts +0 -2
- package/dist/src/utils/addString.js +0 -6
- package/dist/src/utils/crypto.d.ts +0 -1
- package/dist/src/utils/crypto.js +0 -4
- package/dist/src/utils/queries/activeCampaigns.d.ts +0 -3
- package/dist/src/utils/queries/activeCampaigns.js +0 -22
- package/dist/src/utils/validation.d.ts +0 -5
- package/dist/src/utils/validation.js +0 -20
- /package/dist/{src/utils/prisma.d.ts → database/index.d.ts} +0 -0
- /package/dist/{src/utils/prisma.js → database/index.js} +0 -0
- /package/dist/src/utils/{camelToKebabCase.d.ts → caseChanges.d.ts} +0 -0
- /package/dist/src/utils/{camelToKebabCase.js → caseChanges.js} +0 -0
@@ -14,8 +14,8 @@ export declare abstract class OpportunityRepository {
|
|
14
14
|
status: import("@db/api").$Enums.Status;
|
15
15
|
tags: string[];
|
16
16
|
identifier: string;
|
17
|
-
chainId: number;
|
18
17
|
action: import("@db/api").$Enums.OpportunityAction;
|
18
|
+
chainId: number;
|
19
19
|
depositUrl: string | null;
|
20
20
|
mainProtocolId: string | null;
|
21
21
|
tvl: number;
|
@@ -34,8 +34,8 @@ export declare abstract class OpportunityRepository {
|
|
34
34
|
id: string;
|
35
35
|
name: string | null;
|
36
36
|
icon: string;
|
37
|
-
chainId: number;
|
38
37
|
address: string;
|
38
|
+
chainId: number;
|
39
39
|
decimals: number;
|
40
40
|
displaySymbol: string;
|
41
41
|
verified: boolean;
|
@@ -48,14 +48,14 @@ export declare abstract class OpportunityRepository {
|
|
48
48
|
type: string;
|
49
49
|
params: Prisma.JsonValue;
|
50
50
|
subType: number | null;
|
51
|
-
startTimestamp: bigint;
|
52
|
-
endTimestamp: bigint;
|
53
51
|
computeChainId: number;
|
54
52
|
distributionChainId: number;
|
55
53
|
campaignId: string;
|
56
54
|
rewardTokenId: string;
|
57
55
|
amount: string;
|
58
56
|
opportunityId: string;
|
57
|
+
startTimestamp: bigint;
|
58
|
+
endTimestamp: bigint;
|
59
59
|
creatorAddress: string;
|
60
60
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
61
61
|
})[];
|
@@ -64,8 +64,8 @@ export declare abstract class OpportunityRepository {
|
|
64
64
|
id: string;
|
65
65
|
name: string | null;
|
66
66
|
icon: string;
|
67
|
-
chainId: number;
|
68
67
|
address: string;
|
68
|
+
chainId: number;
|
69
69
|
decimals: number;
|
70
70
|
displaySymbol: string;
|
71
71
|
verified: boolean;
|
@@ -100,8 +100,8 @@ export declare abstract class OpportunityRepository {
|
|
100
100
|
} & {
|
101
101
|
id: string;
|
102
102
|
total: number;
|
103
|
-
timestamp: bigint;
|
104
103
|
opportunityId: string;
|
104
|
+
timestamp: bigint;
|
105
105
|
})[];
|
106
106
|
AprRecords: ({
|
107
107
|
AprBreakdown: {
|
@@ -113,23 +113,23 @@ export declare abstract class OpportunityRepository {
|
|
113
113
|
}[];
|
114
114
|
} & {
|
115
115
|
id: string;
|
116
|
-
timestamp: bigint;
|
117
116
|
opportunityId: string;
|
117
|
+
timestamp: bigint;
|
118
118
|
cumulated: number;
|
119
119
|
})[];
|
120
120
|
DailyRewardsRecords: ({
|
121
121
|
DailyRewardsBreakdown: ({
|
122
122
|
Campaign: {
|
123
|
+
amount: string;
|
123
124
|
startTimestamp: bigint;
|
124
125
|
endTimestamp: bigint;
|
125
|
-
amount: string;
|
126
126
|
RewardToken: {
|
127
127
|
symbol: string;
|
128
128
|
id: string;
|
129
129
|
name: string | null;
|
130
130
|
icon: string;
|
131
|
-
chainId: number;
|
132
131
|
address: string;
|
132
|
+
chainId: number;
|
133
133
|
decimals: number;
|
134
134
|
displaySymbol: string;
|
135
135
|
verified: boolean;
|
@@ -155,8 +155,8 @@ export declare abstract class OpportunityRepository {
|
|
155
155
|
} & {
|
156
156
|
id: string;
|
157
157
|
total: number;
|
158
|
-
timestamp: bigint;
|
159
158
|
opportunityId: string;
|
159
|
+
timestamp: bigint;
|
160
160
|
})[];
|
161
161
|
} & {
|
162
162
|
id: string;
|
@@ -165,8 +165,8 @@ export declare abstract class OpportunityRepository {
|
|
165
165
|
status: import("@db/api").$Enums.Status;
|
166
166
|
tags: string[];
|
167
167
|
identifier: string;
|
168
|
-
chainId: number;
|
169
168
|
action: import("@db/api").$Enums.OpportunityAction;
|
169
|
+
chainId: number;
|
170
170
|
depositUrl: string | null;
|
171
171
|
mainProtocolId: string | null;
|
172
172
|
tvl: number;
|
@@ -184,14 +184,14 @@ export declare abstract class OpportunityRepository {
|
|
184
184
|
type: string;
|
185
185
|
params: Prisma.JsonValue;
|
186
186
|
subType: number | null;
|
187
|
-
startTimestamp: bigint;
|
188
|
-
endTimestamp: bigint;
|
189
187
|
computeChainId: number;
|
190
188
|
distributionChainId: number;
|
191
189
|
campaignId: string;
|
192
190
|
rewardTokenId: string;
|
193
191
|
amount: string;
|
194
192
|
opportunityId: string;
|
193
|
+
startTimestamp: bigint;
|
194
|
+
endTimestamp: bigint;
|
195
195
|
creatorAddress: string;
|
196
196
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
197
197
|
}[];
|
@@ -200,8 +200,8 @@ export declare abstract class OpportunityRepository {
|
|
200
200
|
id: string;
|
201
201
|
name: string | null;
|
202
202
|
icon: string;
|
203
|
-
chainId: number;
|
204
203
|
address: string;
|
204
|
+
chainId: number;
|
205
205
|
decimals: number;
|
206
206
|
displaySymbol: string;
|
207
207
|
verified: boolean;
|
@@ -236,8 +236,8 @@ export declare abstract class OpportunityRepository {
|
|
236
236
|
} & {
|
237
237
|
id: string;
|
238
238
|
total: number;
|
239
|
-
timestamp: bigint;
|
240
239
|
opportunityId: string;
|
240
|
+
timestamp: bigint;
|
241
241
|
})[];
|
242
242
|
AprRecords: ({
|
243
243
|
AprBreakdown: {
|
@@ -249,23 +249,23 @@ export declare abstract class OpportunityRepository {
|
|
249
249
|
}[];
|
250
250
|
} & {
|
251
251
|
id: string;
|
252
|
-
timestamp: bigint;
|
253
252
|
opportunityId: string;
|
253
|
+
timestamp: bigint;
|
254
254
|
cumulated: number;
|
255
255
|
})[];
|
256
256
|
DailyRewardsRecords: ({
|
257
257
|
DailyRewardsBreakdown: ({
|
258
258
|
Campaign: {
|
259
|
+
amount: string;
|
259
260
|
startTimestamp: bigint;
|
260
261
|
endTimestamp: bigint;
|
261
|
-
amount: string;
|
262
262
|
RewardToken: {
|
263
263
|
symbol: string;
|
264
264
|
id: string;
|
265
265
|
name: string | null;
|
266
266
|
icon: string;
|
267
|
-
chainId: number;
|
268
267
|
address: string;
|
268
|
+
chainId: number;
|
269
269
|
decimals: number;
|
270
270
|
displaySymbol: string;
|
271
271
|
verified: boolean;
|
@@ -291,8 +291,8 @@ export declare abstract class OpportunityRepository {
|
|
291
291
|
} & {
|
292
292
|
id: string;
|
293
293
|
total: number;
|
294
|
-
timestamp: bigint;
|
295
294
|
opportunityId: string;
|
295
|
+
timestamp: bigint;
|
296
296
|
})[];
|
297
297
|
} & {
|
298
298
|
id: string;
|
@@ -301,8 +301,8 @@ export declare abstract class OpportunityRepository {
|
|
301
301
|
status: import("@db/api").$Enums.Status;
|
302
302
|
tags: string[];
|
303
303
|
identifier: string;
|
304
|
-
chainId: number;
|
305
304
|
action: import("@db/api").$Enums.OpportunityAction;
|
305
|
+
chainId: number;
|
306
306
|
depositUrl: string | null;
|
307
307
|
mainProtocolId: string | null;
|
308
308
|
tvl: number;
|
@@ -350,8 +350,8 @@ export declare abstract class OpportunityRepository {
|
|
350
350
|
id: string;
|
351
351
|
name: string | null;
|
352
352
|
icon: string;
|
353
|
-
chainId: number;
|
354
353
|
address: string;
|
354
|
+
chainId: number;
|
355
355
|
decimals: number;
|
356
356
|
displaySymbol: string;
|
357
357
|
verified: boolean;
|
@@ -377,14 +377,14 @@ export declare abstract class OpportunityRepository {
|
|
377
377
|
type: string;
|
378
378
|
params: Prisma.JsonValue;
|
379
379
|
subType: number | null;
|
380
|
-
startTimestamp: bigint;
|
381
|
-
endTimestamp: bigint;
|
382
380
|
computeChainId: number;
|
383
381
|
distributionChainId: number;
|
384
382
|
campaignId: string;
|
385
383
|
rewardTokenId: string;
|
386
384
|
amount: string;
|
387
385
|
opportunityId: string;
|
386
|
+
startTimestamp: bigint;
|
387
|
+
endTimestamp: bigint;
|
388
388
|
creatorAddress: string;
|
389
389
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
390
390
|
})[];
|
@@ -393,8 +393,8 @@ export declare abstract class OpportunityRepository {
|
|
393
393
|
id: string;
|
394
394
|
name: string | null;
|
395
395
|
icon: string;
|
396
|
-
chainId: number;
|
397
396
|
address: string;
|
397
|
+
chainId: number;
|
398
398
|
decimals: number;
|
399
399
|
displaySymbol: string;
|
400
400
|
verified: boolean;
|
@@ -429,8 +429,8 @@ export declare abstract class OpportunityRepository {
|
|
429
429
|
} & {
|
430
430
|
id: string;
|
431
431
|
total: number;
|
432
|
-
timestamp: bigint;
|
433
432
|
opportunityId: string;
|
433
|
+
timestamp: bigint;
|
434
434
|
})[];
|
435
435
|
AprRecords: ({
|
436
436
|
AprBreakdown: {
|
@@ -442,23 +442,23 @@ export declare abstract class OpportunityRepository {
|
|
442
442
|
}[];
|
443
443
|
} & {
|
444
444
|
id: string;
|
445
|
-
timestamp: bigint;
|
446
445
|
opportunityId: string;
|
446
|
+
timestamp: bigint;
|
447
447
|
cumulated: number;
|
448
448
|
})[];
|
449
449
|
DailyRewardsRecords: ({
|
450
450
|
DailyRewardsBreakdown: ({
|
451
451
|
Campaign: {
|
452
|
+
amount: string;
|
452
453
|
startTimestamp: bigint;
|
453
454
|
endTimestamp: bigint;
|
454
|
-
amount: string;
|
455
455
|
RewardToken: {
|
456
456
|
symbol: string;
|
457
457
|
id: string;
|
458
458
|
name: string | null;
|
459
459
|
icon: string;
|
460
|
-
chainId: number;
|
461
460
|
address: string;
|
461
|
+
chainId: number;
|
462
462
|
decimals: number;
|
463
463
|
displaySymbol: string;
|
464
464
|
verified: boolean;
|
@@ -484,8 +484,8 @@ export declare abstract class OpportunityRepository {
|
|
484
484
|
} & {
|
485
485
|
id: string;
|
486
486
|
total: number;
|
487
|
-
timestamp: bigint;
|
488
487
|
opportunityId: string;
|
488
|
+
timestamp: bigint;
|
489
489
|
})[];
|
490
490
|
} & {
|
491
491
|
id: string;
|
@@ -494,8 +494,8 @@ export declare abstract class OpportunityRepository {
|
|
494
494
|
status: import("@db/api").$Enums.Status;
|
495
495
|
tags: string[];
|
496
496
|
identifier: string;
|
497
|
-
chainId: number;
|
498
497
|
action: import("@db/api").$Enums.OpportunityAction;
|
498
|
+
chainId: number;
|
499
499
|
depositUrl: string | null;
|
500
500
|
mainProtocolId: string | null;
|
501
501
|
tvl: number;
|
@@ -520,14 +520,14 @@ export declare abstract class OpportunityRepository {
|
|
520
520
|
type: string;
|
521
521
|
params: Prisma.JsonValue;
|
522
522
|
subType: number | null;
|
523
|
-
startTimestamp: bigint;
|
524
|
-
endTimestamp: bigint;
|
525
523
|
computeChainId: number;
|
526
524
|
distributionChainId: number;
|
527
525
|
campaignId: string;
|
528
526
|
rewardTokenId: string;
|
529
527
|
amount: string;
|
530
528
|
opportunityId: string;
|
529
|
+
startTimestamp: bigint;
|
530
|
+
endTimestamp: bigint;
|
531
531
|
creatorAddress: string;
|
532
532
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
533
533
|
}[];
|
@@ -536,8 +536,8 @@ export declare abstract class OpportunityRepository {
|
|
536
536
|
id: string;
|
537
537
|
name: string | null;
|
538
538
|
icon: string;
|
539
|
-
chainId: number;
|
540
539
|
address: string;
|
540
|
+
chainId: number;
|
541
541
|
decimals: number;
|
542
542
|
displaySymbol: string;
|
543
543
|
verified: boolean;
|
@@ -572,8 +572,8 @@ export declare abstract class OpportunityRepository {
|
|
572
572
|
} & {
|
573
573
|
id: string;
|
574
574
|
total: number;
|
575
|
-
timestamp: bigint;
|
576
575
|
opportunityId: string;
|
576
|
+
timestamp: bigint;
|
577
577
|
})[];
|
578
578
|
AprRecords: ({
|
579
579
|
AprBreakdown: {
|
@@ -585,23 +585,23 @@ export declare abstract class OpportunityRepository {
|
|
585
585
|
}[];
|
586
586
|
} & {
|
587
587
|
id: string;
|
588
|
-
timestamp: bigint;
|
589
588
|
opportunityId: string;
|
589
|
+
timestamp: bigint;
|
590
590
|
cumulated: number;
|
591
591
|
})[];
|
592
592
|
DailyRewardsRecords: ({
|
593
593
|
DailyRewardsBreakdown: ({
|
594
594
|
Campaign: {
|
595
|
+
amount: string;
|
595
596
|
startTimestamp: bigint;
|
596
597
|
endTimestamp: bigint;
|
597
|
-
amount: string;
|
598
598
|
RewardToken: {
|
599
599
|
symbol: string;
|
600
600
|
id: string;
|
601
601
|
name: string | null;
|
602
602
|
icon: string;
|
603
|
-
chainId: number;
|
604
603
|
address: string;
|
604
|
+
chainId: number;
|
605
605
|
decimals: number;
|
606
606
|
displaySymbol: string;
|
607
607
|
verified: boolean;
|
@@ -627,8 +627,8 @@ export declare abstract class OpportunityRepository {
|
|
627
627
|
} & {
|
628
628
|
id: string;
|
629
629
|
total: number;
|
630
|
-
timestamp: bigint;
|
631
630
|
opportunityId: string;
|
631
|
+
timestamp: bigint;
|
632
632
|
})[];
|
633
633
|
} & {
|
634
634
|
id: string;
|
@@ -637,8 +637,8 @@ export declare abstract class OpportunityRepository {
|
|
637
637
|
status: import("@db/api").$Enums.Status;
|
638
638
|
tags: string[];
|
639
639
|
identifier: string;
|
640
|
-
chainId: number;
|
641
640
|
action: import("@db/api").$Enums.OpportunityAction;
|
641
|
+
chainId: number;
|
642
642
|
depositUrl: string | null;
|
643
643
|
mainProtocolId: string | null;
|
644
644
|
tvl: number;
|
@@ -681,8 +681,8 @@ export declare abstract class OpportunityRepository {
|
|
681
681
|
id: string;
|
682
682
|
name: string | null;
|
683
683
|
icon: string;
|
684
|
-
chainId: number;
|
685
684
|
address: string;
|
685
|
+
chainId: number;
|
686
686
|
decimals: number;
|
687
687
|
displaySymbol: string;
|
688
688
|
verified: boolean;
|
@@ -708,14 +708,14 @@ export declare abstract class OpportunityRepository {
|
|
708
708
|
type: string;
|
709
709
|
params: Prisma.JsonValue;
|
710
710
|
subType: number | null;
|
711
|
-
startTimestamp: bigint;
|
712
|
-
endTimestamp: bigint;
|
713
711
|
computeChainId: number;
|
714
712
|
distributionChainId: number;
|
715
713
|
campaignId: string;
|
716
714
|
rewardTokenId: string;
|
717
715
|
amount: string;
|
718
716
|
opportunityId: string;
|
717
|
+
startTimestamp: bigint;
|
718
|
+
endTimestamp: bigint;
|
719
719
|
creatorAddress: string;
|
720
720
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
721
721
|
})[];
|
@@ -724,8 +724,8 @@ export declare abstract class OpportunityRepository {
|
|
724
724
|
id: string;
|
725
725
|
name: string | null;
|
726
726
|
icon: string;
|
727
|
-
chainId: number;
|
728
727
|
address: string;
|
728
|
+
chainId: number;
|
729
729
|
decimals: number;
|
730
730
|
displaySymbol: string;
|
731
731
|
verified: boolean;
|
@@ -760,8 +760,8 @@ export declare abstract class OpportunityRepository {
|
|
760
760
|
} & {
|
761
761
|
id: string;
|
762
762
|
total: number;
|
763
|
-
timestamp: bigint;
|
764
763
|
opportunityId: string;
|
764
|
+
timestamp: bigint;
|
765
765
|
})[];
|
766
766
|
AprRecords: ({
|
767
767
|
AprBreakdown: {
|
@@ -773,23 +773,23 @@ export declare abstract class OpportunityRepository {
|
|
773
773
|
}[];
|
774
774
|
} & {
|
775
775
|
id: string;
|
776
|
-
timestamp: bigint;
|
777
776
|
opportunityId: string;
|
777
|
+
timestamp: bigint;
|
778
778
|
cumulated: number;
|
779
779
|
})[];
|
780
780
|
DailyRewardsRecords: ({
|
781
781
|
DailyRewardsBreakdown: ({
|
782
782
|
Campaign: {
|
783
|
+
amount: string;
|
783
784
|
startTimestamp: bigint;
|
784
785
|
endTimestamp: bigint;
|
785
|
-
amount: string;
|
786
786
|
RewardToken: {
|
787
787
|
symbol: string;
|
788
788
|
id: string;
|
789
789
|
name: string | null;
|
790
790
|
icon: string;
|
791
|
-
chainId: number;
|
792
791
|
address: string;
|
792
|
+
chainId: number;
|
793
793
|
decimals: number;
|
794
794
|
displaySymbol: string;
|
795
795
|
verified: boolean;
|
@@ -815,8 +815,8 @@ export declare abstract class OpportunityRepository {
|
|
815
815
|
} & {
|
816
816
|
id: string;
|
817
817
|
total: number;
|
818
|
-
timestamp: bigint;
|
819
818
|
opportunityId: string;
|
819
|
+
timestamp: bigint;
|
820
820
|
})[];
|
821
821
|
} & {
|
822
822
|
id: string;
|
@@ -825,8 +825,8 @@ export declare abstract class OpportunityRepository {
|
|
825
825
|
status: import("@db/api").$Enums.Status;
|
826
826
|
tags: string[];
|
827
827
|
identifier: string;
|
828
|
-
chainId: number;
|
829
828
|
action: import("@db/api").$Enums.OpportunityAction;
|
829
|
+
chainId: number;
|
830
830
|
depositUrl: string | null;
|
831
831
|
mainProtocolId: string | null;
|
832
832
|
tvl: number;
|
@@ -847,8 +847,8 @@ export declare abstract class OpportunityRepository {
|
|
847
847
|
static updateRecords(opportunityId: string, apr: AprRecord["model"], tvl: TvlRecord["model"], dailyRewards: DailyRewardsRecord["model"]): Promise<{
|
848
848
|
aprRecord: {
|
849
849
|
id: string;
|
850
|
-
timestamp: bigint;
|
851
850
|
opportunityId: string;
|
851
|
+
timestamp: bigint;
|
852
852
|
cumulated: number;
|
853
853
|
};
|
854
854
|
tvlRecord: {
|
@@ -862,8 +862,8 @@ export declare abstract class OpportunityRepository {
|
|
862
862
|
} & {
|
863
863
|
id: string;
|
864
864
|
total: number;
|
865
|
-
timestamp: bigint;
|
866
865
|
opportunityId: string;
|
866
|
+
timestamp: bigint;
|
867
867
|
};
|
868
868
|
dailyRewardsRecord: {
|
869
869
|
DailyRewardsBreakdown: {
|
@@ -875,8 +875,8 @@ export declare abstract class OpportunityRepository {
|
|
875
875
|
} & {
|
876
876
|
id: string;
|
877
877
|
total: number;
|
878
|
-
timestamp: bigint;
|
879
878
|
opportunityId: string;
|
879
|
+
timestamp: bigint;
|
880
880
|
};
|
881
881
|
opportunity: {
|
882
882
|
id: string;
|
@@ -885,8 +885,8 @@ export declare abstract class OpportunityRepository {
|
|
885
885
|
status: import("@db/api").$Enums.Status;
|
886
886
|
tags: string[];
|
887
887
|
identifier: string;
|
888
|
-
chainId: number;
|
889
888
|
action: import("@db/api").$Enums.OpportunityAction;
|
889
|
+
chainId: number;
|
890
890
|
depositUrl: string | null;
|
891
891
|
mainProtocolId: string | null;
|
892
892
|
tvl: number;
|
@@ -901,8 +901,8 @@ export declare abstract class OpportunityRepository {
|
|
901
901
|
status: import("@db/api").$Enums.Status;
|
902
902
|
tags: string[];
|
903
903
|
identifier: string;
|
904
|
-
chainId: number;
|
905
904
|
action: import("@db/api").$Enums.OpportunityAction;
|
905
|
+
chainId: number;
|
906
906
|
depositUrl: string | null;
|
907
907
|
mainProtocolId: string | null;
|
908
908
|
tvl: number;
|
@@ -916,8 +916,8 @@ export declare abstract class OpportunityRepository {
|
|
916
916
|
status: import("@db/api").$Enums.Status;
|
917
917
|
tags: string[];
|
918
918
|
identifier: string;
|
919
|
-
chainId: number;
|
920
919
|
action: import("@db/api").$Enums.OpportunityAction;
|
920
|
+
chainId: number;
|
921
921
|
depositUrl: string | null;
|
922
922
|
mainProtocolId: string | null;
|
923
923
|
tvl: number;
|
@@ -931,8 +931,8 @@ export declare abstract class OpportunityRepository {
|
|
931
931
|
status: import("@db/api").$Enums.Status;
|
932
932
|
tags: string[];
|
933
933
|
identifier: string;
|
934
|
-
chainId: number;
|
935
934
|
action: import("@db/api").$Enums.OpportunityAction;
|
935
|
+
chainId: number;
|
936
936
|
depositUrl: string | null;
|
937
937
|
mainProtocolId: string | null;
|
938
938
|
tvl: number;
|
@@ -955,8 +955,8 @@ export declare abstract class OpportunityRepository {
|
|
955
955
|
status: import("@db/api").$Enums.Status;
|
956
956
|
tags: string[];
|
957
957
|
identifier: string;
|
958
|
-
chainId: number;
|
959
958
|
action: import("@db/api").$Enums.OpportunityAction;
|
959
|
+
chainId: number;
|
960
960
|
depositUrl: string | null;
|
961
961
|
mainProtocolId: string | null;
|
962
962
|
tvl: number;
|