@merkl/api 1.7.16 → 1.7.18
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 +41 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +42 -0
- package/dist/src/index.d.ts +41 -0
- package/dist/src/jobs/analytics/aggregators/campaign-aggregator.d.ts +5 -0
- package/dist/src/jobs/analytics/aggregators/campaign-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/aggregators/cohort-aggregator.d.ts +6 -0
- package/dist/src/jobs/analytics/aggregators/cohort-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/aggregators/reward-aggregator.d.ts +6 -0
- package/dist/src/jobs/analytics/aggregators/reward-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/analytics.model.d.ts +42 -0
- package/dist/src/jobs/analytics/analytics.model.js.map +1 -0
- package/dist/src/jobs/analytics/analytics.service.d.ts +9 -0
- package/dist/src/jobs/analytics/analytics.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-client.service.d.ts +10 -0
- package/dist/src/jobs/analytics/notion/notion-client.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-cohort-sync.service.d.ts +5 -0
- package/dist/src/jobs/analytics/notion/notion-cohort-sync.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-sync.service.d.ts +4 -0
- package/dist/src/jobs/analytics/notion/notion-sync.service.js.map +1 -0
- package/dist/src/jobs/update-analytics.js.map +1 -1
- package/dist/src/jobs/update-dynamic-data.js.map +1 -1
- package/dist/src/jobs/update-rpc-calls-cache.js.map +1 -1
- package/dist/src/jobs/update-user-claim-db.d.ts +3 -0
- package/dist/src/jobs/update-user-claim-db.js.map +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +80 -80
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +12 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +11 -1
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +9 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +9 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +11 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +3 -0
- package/dist/src/modules/v4/config/config.controller.d.ts +1 -0
- package/dist/src/modules/v4/config/config.service.d.ts +1 -0
- package/dist/src/modules/v4/dispute/dispute.repository.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +47 -42
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +7 -0
- package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
- package/dist/src/modules/v4/previousConfig/previousConfig.repository.d.ts +43 -0
- package/dist/src/modules/v4/previousConfig/previousConfig.repository.js.map +1 -0
- package/dist/src/modules/v4/program/program.repository.d.ts +4 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +32 -0
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +41 -0
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -0
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +11 -0
- package/dist/src/scripts/importOpportunities.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +422 -380
- package/dist/src/utils/parseDistributionType.d.ts +1430 -1388
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
|
@@ -2089,6 +2089,7 @@ declare const eden: {
|
|
|
2089
2089
|
url: string;
|
|
2090
2090
|
chainId: number;
|
|
2091
2091
|
}[] | undefined;
|
|
2092
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
2092
2093
|
};
|
|
2093
2094
|
protocol: {
|
|
2094
2095
|
id: string;
|
|
@@ -3340,6 +3341,7 @@ declare const eden: {
|
|
|
3340
3341
|
icon: string;
|
|
3341
3342
|
liveCampaigns: number;
|
|
3342
3343
|
endOfDisputePeriod: number;
|
|
3344
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
3343
3345
|
};
|
|
3344
3346
|
DailyRewardsRecords: ({
|
|
3345
3347
|
DailyRewardsBreakdown: ({
|
|
@@ -3585,6 +3587,7 @@ declare const eden: {
|
|
|
3585
3587
|
icon: string;
|
|
3586
3588
|
liveCampaigns: number;
|
|
3587
3589
|
endOfDisputePeriod: number;
|
|
3590
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
3588
3591
|
};
|
|
3589
3592
|
DailyRewardsRecords: ({
|
|
3590
3593
|
DailyRewardsBreakdown: ({
|
|
@@ -3829,6 +3832,7 @@ declare const eden: {
|
|
|
3829
3832
|
icon: string;
|
|
3830
3833
|
liveCampaigns: number;
|
|
3831
3834
|
endOfDisputePeriod: number;
|
|
3835
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
3832
3836
|
};
|
|
3833
3837
|
DailyRewardsRecords: ({
|
|
3834
3838
|
DailyRewardsBreakdown: ({
|
|
@@ -4073,6 +4077,7 @@ declare const eden: {
|
|
|
4073
4077
|
icon: string;
|
|
4074
4078
|
liveCampaigns: number;
|
|
4075
4079
|
endOfDisputePeriod: number;
|
|
4080
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
4076
4081
|
};
|
|
4077
4082
|
DailyRewardsRecords: ({
|
|
4078
4083
|
DailyRewardsBreakdown: ({
|
|
@@ -4812,6 +4817,7 @@ declare const eden: {
|
|
|
4812
4817
|
url: string;
|
|
4813
4818
|
chainId: number;
|
|
4814
4819
|
}[] | undefined;
|
|
4820
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
4815
4821
|
};
|
|
4816
4822
|
protocol: {
|
|
4817
4823
|
id: string;
|
|
@@ -5383,6 +5389,7 @@ declare const eden: {
|
|
|
5383
5389
|
url: string;
|
|
5384
5390
|
chainId: number;
|
|
5385
5391
|
}[] | undefined;
|
|
5392
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5386
5393
|
} | undefined;
|
|
5387
5394
|
protocol?: {
|
|
5388
5395
|
id: string;
|
|
@@ -5515,6 +5522,7 @@ declare const eden: {
|
|
|
5515
5522
|
icon: string;
|
|
5516
5523
|
liveCampaigns: number;
|
|
5517
5524
|
endOfDisputePeriod: number;
|
|
5525
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5518
5526
|
}) | null;
|
|
5519
5527
|
Opportunity: ({
|
|
5520
5528
|
ActivePrograms: {
|
|
@@ -5530,6 +5538,7 @@ declare const eden: {
|
|
|
5530
5538
|
icon: string;
|
|
5531
5539
|
liveCampaigns: number;
|
|
5532
5540
|
endOfDisputePeriod: number;
|
|
5541
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5533
5542
|
};
|
|
5534
5543
|
MainProtocol: {
|
|
5535
5544
|
id: string;
|
|
@@ -5609,6 +5618,7 @@ declare const eden: {
|
|
|
5609
5618
|
icon: string;
|
|
5610
5619
|
liveCampaigns: number;
|
|
5611
5620
|
endOfDisputePeriod: number;
|
|
5621
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5612
5622
|
};
|
|
5613
5623
|
MainProtocol: {
|
|
5614
5624
|
id: string;
|
|
@@ -5798,6 +5808,7 @@ declare const eden: {
|
|
|
5798
5808
|
url: string;
|
|
5799
5809
|
chainId: number;
|
|
5800
5810
|
}[] | undefined;
|
|
5811
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5801
5812
|
} | undefined;
|
|
5802
5813
|
protocol?: {
|
|
5803
5814
|
id: string;
|
|
@@ -5874,6 +5885,7 @@ declare const eden: {
|
|
|
5874
5885
|
icon: string;
|
|
5875
5886
|
liveCampaigns: number;
|
|
5876
5887
|
endOfDisputePeriod: number;
|
|
5888
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5877
5889
|
}) | null;
|
|
5878
5890
|
Opportunity: ({
|
|
5879
5891
|
ActivePrograms: {
|
|
@@ -5889,6 +5901,7 @@ declare const eden: {
|
|
|
5889
5901
|
icon: string;
|
|
5890
5902
|
liveCampaigns: number;
|
|
5891
5903
|
endOfDisputePeriod: number;
|
|
5904
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5892
5905
|
};
|
|
5893
5906
|
MainProtocol: {
|
|
5894
5907
|
id: string;
|
|
@@ -5968,6 +5981,7 @@ declare const eden: {
|
|
|
5968
5981
|
icon: string;
|
|
5969
5982
|
liveCampaigns: number;
|
|
5970
5983
|
endOfDisputePeriod: number;
|
|
5984
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5971
5985
|
};
|
|
5972
5986
|
MainProtocol: {
|
|
5973
5987
|
id: string;
|
|
@@ -6178,6 +6192,7 @@ declare const eden: {
|
|
|
6178
6192
|
url: string;
|
|
6179
6193
|
chainId: number;
|
|
6180
6194
|
}[] | undefined;
|
|
6195
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6181
6196
|
} | undefined;
|
|
6182
6197
|
protocol?: {
|
|
6183
6198
|
id: string;
|
|
@@ -6269,6 +6284,7 @@ declare const eden: {
|
|
|
6269
6284
|
url: string;
|
|
6270
6285
|
chainId: number;
|
|
6271
6286
|
}[] | undefined;
|
|
6287
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6272
6288
|
};
|
|
6273
6289
|
422: {
|
|
6274
6290
|
type: "validation";
|
|
@@ -6303,6 +6319,7 @@ declare const eden: {
|
|
|
6303
6319
|
url: string;
|
|
6304
6320
|
chainId: number;
|
|
6305
6321
|
}[] | undefined;
|
|
6322
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6306
6323
|
};
|
|
6307
6324
|
422: {
|
|
6308
6325
|
type: "validation";
|
|
@@ -6369,6 +6386,7 @@ declare const eden: {
|
|
|
6369
6386
|
url: string;
|
|
6370
6387
|
chainId: number;
|
|
6371
6388
|
}[] | undefined;
|
|
6389
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6372
6390
|
};
|
|
6373
6391
|
422: {
|
|
6374
6392
|
type: "validation";
|
|
@@ -7052,6 +7070,7 @@ declare const eden: {
|
|
|
7052
7070
|
icon: string;
|
|
7053
7071
|
liveCampaigns: number;
|
|
7054
7072
|
endOfDisputePeriod: number;
|
|
7073
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
7055
7074
|
};
|
|
7056
7075
|
DailyRewardsRecords: ({
|
|
7057
7076
|
DailyRewardsBreakdown: ({
|
|
@@ -9071,6 +9090,7 @@ declare const eden: {
|
|
|
9071
9090
|
icon: string;
|
|
9072
9091
|
liveCampaigns: number;
|
|
9073
9092
|
endOfDisputePeriod: number;
|
|
9093
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
9074
9094
|
};
|
|
9075
9095
|
DailyRewardsRecords: ({
|
|
9076
9096
|
DailyRewardsBreakdown: ({
|
|
@@ -9732,6 +9752,7 @@ declare const eden: {
|
|
|
9732
9752
|
icon: string;
|
|
9733
9753
|
liveCampaigns: number;
|
|
9734
9754
|
endOfDisputePeriod: number;
|
|
9755
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
9735
9756
|
};
|
|
9736
9757
|
DailyRewardsRecords: ({
|
|
9737
9758
|
DailyRewardsBreakdown: ({
|
|
@@ -11329,6 +11350,7 @@ declare const eden: {
|
|
|
11329
11350
|
icon: string;
|
|
11330
11351
|
liveCampaigns: number;
|
|
11331
11352
|
endOfDisputePeriod: number;
|
|
11353
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
11332
11354
|
};
|
|
11333
11355
|
DailyRewardsRecords: ({
|
|
11334
11356
|
DailyRewardsBreakdown: ({
|
|
@@ -11614,6 +11636,7 @@ declare const eden: {
|
|
|
11614
11636
|
icon: string;
|
|
11615
11637
|
liveCampaigns: number;
|
|
11616
11638
|
endOfDisputePeriod: number;
|
|
11639
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
11617
11640
|
};
|
|
11618
11641
|
DailyRewardsRecords: ({
|
|
11619
11642
|
DailyRewardsBreakdown: ({
|
|
@@ -11945,6 +11968,7 @@ declare const eden: {
|
|
|
11945
11968
|
icon: string;
|
|
11946
11969
|
liveCampaigns: number;
|
|
11947
11970
|
endOfDisputePeriod: number;
|
|
11971
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
11948
11972
|
};
|
|
11949
11973
|
DailyRewardsRecords: ({
|
|
11950
11974
|
DailyRewardsBreakdown: ({
|
|
@@ -15336,6 +15360,7 @@ declare const eden: {
|
|
|
15336
15360
|
url: string;
|
|
15337
15361
|
chainId: number;
|
|
15338
15362
|
}[] | undefined;
|
|
15363
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15339
15364
|
};
|
|
15340
15365
|
chainId: number;
|
|
15341
15366
|
dailyRewards: number;
|
|
@@ -15492,6 +15517,7 @@ declare const eden: {
|
|
|
15492
15517
|
url: string;
|
|
15493
15518
|
chainId: number;
|
|
15494
15519
|
}[] | undefined;
|
|
15520
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15495
15521
|
};
|
|
15496
15522
|
computeChainId: number;
|
|
15497
15523
|
createdAt: string;
|
|
@@ -15562,6 +15588,7 @@ declare const eden: {
|
|
|
15562
15588
|
url: string;
|
|
15563
15589
|
chainId: number;
|
|
15564
15590
|
}[] | undefined;
|
|
15591
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15565
15592
|
} | undefined;
|
|
15566
15593
|
creator?: {
|
|
15567
15594
|
address: string;
|
|
@@ -15672,6 +15699,7 @@ declare const eden: {
|
|
|
15672
15699
|
url: string;
|
|
15673
15700
|
chainId: number;
|
|
15674
15701
|
}[] | undefined;
|
|
15702
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15675
15703
|
};
|
|
15676
15704
|
chainId: number;
|
|
15677
15705
|
dailyRewards: number;
|
|
@@ -15828,6 +15856,7 @@ declare const eden: {
|
|
|
15828
15856
|
url: string;
|
|
15829
15857
|
chainId: number;
|
|
15830
15858
|
}[] | undefined;
|
|
15859
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15831
15860
|
};
|
|
15832
15861
|
computeChainId: number;
|
|
15833
15862
|
createdAt: string;
|
|
@@ -15898,6 +15927,7 @@ declare const eden: {
|
|
|
15898
15927
|
url: string;
|
|
15899
15928
|
chainId: number;
|
|
15900
15929
|
}[] | undefined;
|
|
15930
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15901
15931
|
} | undefined;
|
|
15902
15932
|
creator?: {
|
|
15903
15933
|
address: string;
|
|
@@ -16091,6 +16121,12 @@ declare const eden: {
|
|
|
16091
16121
|
icon: string;
|
|
16092
16122
|
liveCampaigns: number;
|
|
16093
16123
|
endOfDisputePeriod: number;
|
|
16124
|
+
explorers?: {
|
|
16125
|
+
type: "BLOCKSCOUT" | "ETHERSCAN";
|
|
16126
|
+
url: string;
|
|
16127
|
+
chainId: number;
|
|
16128
|
+
}[] | undefined;
|
|
16129
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
16094
16130
|
};
|
|
16095
16131
|
rewards: {
|
|
16096
16132
|
distributionChainId: number;
|
|
@@ -16148,6 +16184,7 @@ declare const eden: {
|
|
|
16148
16184
|
icon: string;
|
|
16149
16185
|
liveCampaigns: number;
|
|
16150
16186
|
endOfDisputePeriod: number;
|
|
16187
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
16151
16188
|
};
|
|
16152
16189
|
MainProtocol: {
|
|
16153
16190
|
id: string;
|
|
@@ -16274,6 +16311,7 @@ declare const eden: {
|
|
|
16274
16311
|
icon: string;
|
|
16275
16312
|
liveCampaigns: number;
|
|
16276
16313
|
endOfDisputePeriod: number;
|
|
16314
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
16277
16315
|
};
|
|
16278
16316
|
MainProtocol: {
|
|
16279
16317
|
id: string;
|
|
@@ -16365,6 +16403,7 @@ declare const eden: {
|
|
|
16365
16403
|
url: string;
|
|
16366
16404
|
chainId: number;
|
|
16367
16405
|
}[] | undefined;
|
|
16406
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
16368
16407
|
};
|
|
16369
16408
|
chainId: number;
|
|
16370
16409
|
dailyRewards: number;
|
|
@@ -16521,6 +16560,7 @@ declare const eden: {
|
|
|
16521
16560
|
url: string;
|
|
16522
16561
|
chainId: number;
|
|
16523
16562
|
}[] | undefined;
|
|
16563
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
16524
16564
|
};
|
|
16525
16565
|
computeChainId: number;
|
|
16526
16566
|
createdAt: string;
|
|
@@ -16591,6 +16631,7 @@ declare const eden: {
|
|
|
16591
16631
|
url: string;
|
|
16592
16632
|
chainId: number;
|
|
16593
16633
|
}[] | undefined;
|
|
16634
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
16594
16635
|
} | undefined;
|
|
16595
16636
|
creator?: {
|
|
16596
16637
|
address: string;
|
|
@@ -287,6 +287,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
287
287
|
computeSettings: {
|
|
288
288
|
maxDeposit: string;
|
|
289
289
|
};
|
|
290
|
+
} | {
|
|
291
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
292
|
+
computeSettings: {
|
|
293
|
+
boostDuration: string;
|
|
294
|
+
eligibilityThreshold: string;
|
|
295
|
+
boostMultiplier: string;
|
|
296
|
+
};
|
|
290
297
|
} | undefined;
|
|
291
298
|
forwarders: ({
|
|
292
299
|
priority: number;
|
|
@@ -614,6 +621,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
614
621
|
computeSettings: {
|
|
615
622
|
maxDeposit: string;
|
|
616
623
|
};
|
|
624
|
+
} | {
|
|
625
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
626
|
+
computeSettings: {
|
|
627
|
+
boostDuration: string;
|
|
628
|
+
eligibilityThreshold: string;
|
|
629
|
+
boostMultiplier: string;
|
|
630
|
+
};
|
|
617
631
|
} | undefined;
|
|
618
632
|
forwarders: ({
|
|
619
633
|
priority: number;
|
|
@@ -945,6 +959,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
945
959
|
computeSettings: {
|
|
946
960
|
maxDeposit: string;
|
|
947
961
|
};
|
|
962
|
+
} | {
|
|
963
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
964
|
+
computeSettings: {
|
|
965
|
+
boostDuration: string;
|
|
966
|
+
eligibilityThreshold: string;
|
|
967
|
+
boostMultiplier: string;
|
|
968
|
+
};
|
|
948
969
|
} | undefined;
|
|
949
970
|
forwarders: ({
|
|
950
971
|
priority: number;
|
|
@@ -1272,6 +1293,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
1272
1293
|
computeSettings: {
|
|
1273
1294
|
maxDeposit: string;
|
|
1274
1295
|
};
|
|
1296
|
+
} | {
|
|
1297
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
1298
|
+
computeSettings: {
|
|
1299
|
+
boostDuration: string;
|
|
1300
|
+
eligibilityThreshold: string;
|
|
1301
|
+
boostMultiplier: string;
|
|
1302
|
+
};
|
|
1275
1303
|
} | undefined;
|
|
1276
1304
|
forwarders: ({
|
|
1277
1305
|
priority: number;
|
|
@@ -1601,6 +1629,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
1601
1629
|
computeSettings: {
|
|
1602
1630
|
maxDeposit: string;
|
|
1603
1631
|
};
|
|
1632
|
+
} | {
|
|
1633
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
1634
|
+
computeSettings: {
|
|
1635
|
+
boostDuration: string;
|
|
1636
|
+
eligibilityThreshold: string;
|
|
1637
|
+
boostMultiplier: string;
|
|
1638
|
+
};
|
|
1604
1639
|
} | undefined;
|
|
1605
1640
|
forwarders: ({
|
|
1606
1641
|
priority: number;
|
|
@@ -1928,6 +1963,13 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
|
|
|
1928
1963
|
computeSettings: {
|
|
1929
1964
|
maxDeposit: string;
|
|
1930
1965
|
};
|
|
1966
|
+
} | {
|
|
1967
|
+
computeMethod: import("@package/resources/enums").personalizedBoostWindow;
|
|
1968
|
+
computeSettings: {
|
|
1969
|
+
boostDuration: string;
|
|
1970
|
+
eligibilityThreshold: string;
|
|
1971
|
+
boostMultiplier: string;
|
|
1972
|
+
};
|
|
1931
1973
|
} | undefined;
|
|
1932
1974
|
forwarders: ({
|
|
1933
1975
|
priority: number;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -732,6 +732,7 @@ declare const app: Elysia<"", {
|
|
|
732
732
|
url: string;
|
|
733
733
|
chainId: number;
|
|
734
734
|
}[] | undefined;
|
|
735
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
735
736
|
};
|
|
736
737
|
protocol: {
|
|
737
738
|
id: string;
|
|
@@ -2415,6 +2416,7 @@ declare const app: Elysia<"", {
|
|
|
2415
2416
|
url: string;
|
|
2416
2417
|
chainId: number;
|
|
2417
2418
|
}[] | undefined;
|
|
2419
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
2418
2420
|
};
|
|
2419
2421
|
protocol: {
|
|
2420
2422
|
id: string;
|
|
@@ -3186,6 +3188,7 @@ declare const app: Elysia<"", {
|
|
|
3186
3188
|
icon: string;
|
|
3187
3189
|
liveCampaigns: number;
|
|
3188
3190
|
endOfDisputePeriod: number;
|
|
3191
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
3189
3192
|
};
|
|
3190
3193
|
DailyRewardsRecords: ({
|
|
3191
3194
|
DailyRewardsBreakdown: ({
|
|
@@ -3988,6 +3991,7 @@ declare const app: Elysia<"", {
|
|
|
3988
3991
|
icon: string;
|
|
3989
3992
|
liveCampaigns: number;
|
|
3990
3993
|
endOfDisputePeriod: number;
|
|
3994
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
3991
3995
|
};
|
|
3992
3996
|
DailyRewardsRecords: ({
|
|
3993
3997
|
DailyRewardsBreakdown: ({
|
|
@@ -4240,6 +4244,7 @@ declare const app: Elysia<"", {
|
|
|
4240
4244
|
icon: string;
|
|
4241
4245
|
liveCampaigns: number;
|
|
4242
4246
|
endOfDisputePeriod: number;
|
|
4247
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
4243
4248
|
};
|
|
4244
4249
|
DailyRewardsRecords: ({
|
|
4245
4250
|
DailyRewardsBreakdown: ({
|
|
@@ -4491,6 +4496,7 @@ declare const app: Elysia<"", {
|
|
|
4491
4496
|
icon: string;
|
|
4492
4497
|
liveCampaigns: number;
|
|
4493
4498
|
endOfDisputePeriod: number;
|
|
4499
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
4494
4500
|
};
|
|
4495
4501
|
DailyRewardsRecords: ({
|
|
4496
4502
|
DailyRewardsBreakdown: ({
|
|
@@ -5005,6 +5011,7 @@ declare const app: Elysia<"", {
|
|
|
5005
5011
|
url: string;
|
|
5006
5012
|
chainId: number;
|
|
5007
5013
|
}[] | undefined;
|
|
5014
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5008
5015
|
} | undefined;
|
|
5009
5016
|
protocol?: {
|
|
5010
5017
|
id: string;
|
|
@@ -5117,6 +5124,7 @@ declare const app: Elysia<"", {
|
|
|
5117
5124
|
url: string;
|
|
5118
5125
|
chainId: number;
|
|
5119
5126
|
}[] | undefined;
|
|
5127
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5120
5128
|
} | undefined;
|
|
5121
5129
|
protocol?: {
|
|
5122
5130
|
id: string;
|
|
@@ -5176,6 +5184,7 @@ declare const app: Elysia<"", {
|
|
|
5176
5184
|
icon: string;
|
|
5177
5185
|
liveCampaigns: number;
|
|
5178
5186
|
endOfDisputePeriod: number;
|
|
5187
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5179
5188
|
}) | null;
|
|
5180
5189
|
Opportunity: ({
|
|
5181
5190
|
ActivePrograms: {
|
|
@@ -5191,6 +5200,7 @@ declare const app: Elysia<"", {
|
|
|
5191
5200
|
icon: string;
|
|
5192
5201
|
liveCampaigns: number;
|
|
5193
5202
|
endOfDisputePeriod: number;
|
|
5203
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5194
5204
|
};
|
|
5195
5205
|
MainProtocol: {
|
|
5196
5206
|
id: string;
|
|
@@ -5270,6 +5280,7 @@ declare const app: Elysia<"", {
|
|
|
5270
5280
|
icon: string;
|
|
5271
5281
|
liveCampaigns: number;
|
|
5272
5282
|
endOfDisputePeriod: number;
|
|
5283
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5273
5284
|
};
|
|
5274
5285
|
MainProtocol: {
|
|
5275
5286
|
id: string;
|
|
@@ -5487,6 +5498,7 @@ declare const app: Elysia<"", {
|
|
|
5487
5498
|
url: string;
|
|
5488
5499
|
chainId: number;
|
|
5489
5500
|
}[] | undefined;
|
|
5501
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5490
5502
|
} | undefined;
|
|
5491
5503
|
protocol?: {
|
|
5492
5504
|
id: string;
|
|
@@ -5569,6 +5581,7 @@ declare const app: Elysia<"", {
|
|
|
5569
5581
|
icon: string;
|
|
5570
5582
|
liveCampaigns: number;
|
|
5571
5583
|
endOfDisputePeriod: number;
|
|
5584
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5572
5585
|
}) | null;
|
|
5573
5586
|
Opportunity: ({
|
|
5574
5587
|
ActivePrograms: {
|
|
@@ -5584,6 +5597,7 @@ declare const app: Elysia<"", {
|
|
|
5584
5597
|
icon: string;
|
|
5585
5598
|
liveCampaigns: number;
|
|
5586
5599
|
endOfDisputePeriod: number;
|
|
5600
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5587
5601
|
};
|
|
5588
5602
|
MainProtocol: {
|
|
5589
5603
|
id: string;
|
|
@@ -5663,6 +5677,7 @@ declare const app: Elysia<"", {
|
|
|
5663
5677
|
icon: string;
|
|
5664
5678
|
liveCampaigns: number;
|
|
5665
5679
|
endOfDisputePeriod: number;
|
|
5680
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
5666
5681
|
};
|
|
5667
5682
|
MainProtocol: {
|
|
5668
5683
|
id: string;
|
|
@@ -5977,6 +5992,7 @@ declare const app: Elysia<"", {
|
|
|
5977
5992
|
url: string;
|
|
5978
5993
|
chainId: number;
|
|
5979
5994
|
}[] | undefined;
|
|
5995
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
5980
5996
|
};
|
|
5981
5997
|
422: {
|
|
5982
5998
|
type: "validation";
|
|
@@ -6046,6 +6062,7 @@ declare const app: Elysia<"", {
|
|
|
6046
6062
|
url: string;
|
|
6047
6063
|
chainId: number;
|
|
6048
6064
|
}[] | undefined;
|
|
6065
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6049
6066
|
};
|
|
6050
6067
|
422: {
|
|
6051
6068
|
type: "validation";
|
|
@@ -6087,6 +6104,7 @@ declare const app: Elysia<"", {
|
|
|
6087
6104
|
url: string;
|
|
6088
6105
|
chainId: number;
|
|
6089
6106
|
}[] | undefined;
|
|
6107
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
6090
6108
|
};
|
|
6091
6109
|
422: {
|
|
6092
6110
|
type: "validation";
|
|
@@ -6815,6 +6833,7 @@ declare const app: Elysia<"", {
|
|
|
6815
6833
|
icon: string;
|
|
6816
6834
|
liveCampaigns: number;
|
|
6817
6835
|
endOfDisputePeriod: number;
|
|
6836
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
6818
6837
|
};
|
|
6819
6838
|
DailyRewardsRecords: ({
|
|
6820
6839
|
DailyRewardsBreakdown: ({
|
|
@@ -10859,6 +10878,7 @@ declare const app: Elysia<"", {
|
|
|
10859
10878
|
icon: string;
|
|
10860
10879
|
liveCampaigns: number;
|
|
10861
10880
|
endOfDisputePeriod: number;
|
|
10881
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
10862
10882
|
};
|
|
10863
10883
|
DailyRewardsRecords: ({
|
|
10864
10884
|
DailyRewardsBreakdown: ({
|
|
@@ -11319,6 +11339,7 @@ declare const app: Elysia<"", {
|
|
|
11319
11339
|
icon: string;
|
|
11320
11340
|
liveCampaigns: number;
|
|
11321
11341
|
endOfDisputePeriod: number;
|
|
11342
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
11322
11343
|
};
|
|
11323
11344
|
DailyRewardsRecords: ({
|
|
11324
11345
|
DailyRewardsBreakdown: ({
|
|
@@ -11842,6 +11863,7 @@ declare const app: Elysia<"", {
|
|
|
11842
11863
|
icon: string;
|
|
11843
11864
|
liveCampaigns: number;
|
|
11844
11865
|
endOfDisputePeriod: number;
|
|
11866
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
11845
11867
|
};
|
|
11846
11868
|
DailyRewardsRecords: ({
|
|
11847
11869
|
DailyRewardsBreakdown: ({
|
|
@@ -12112,6 +12134,7 @@ declare const app: Elysia<"", {
|
|
|
12112
12134
|
icon: string;
|
|
12113
12135
|
liveCampaigns: number;
|
|
12114
12136
|
endOfDisputePeriod: number;
|
|
12137
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
12115
12138
|
};
|
|
12116
12139
|
DailyRewardsRecords: ({
|
|
12117
12140
|
DailyRewardsBreakdown: ({
|
|
@@ -12383,6 +12406,7 @@ declare const app: Elysia<"", {
|
|
|
12383
12406
|
icon: string;
|
|
12384
12407
|
liveCampaigns: number;
|
|
12385
12408
|
endOfDisputePeriod: number;
|
|
12409
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
12386
12410
|
};
|
|
12387
12411
|
DailyRewardsRecords: ({
|
|
12388
12412
|
DailyRewardsBreakdown: ({
|
|
@@ -15160,6 +15184,7 @@ declare const app: Elysia<"", {
|
|
|
15160
15184
|
url: string;
|
|
15161
15185
|
chainId: number;
|
|
15162
15186
|
}[] | undefined;
|
|
15187
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15163
15188
|
};
|
|
15164
15189
|
chainId: number;
|
|
15165
15190
|
dailyRewards: number;
|
|
@@ -15316,6 +15341,7 @@ declare const app: Elysia<"", {
|
|
|
15316
15341
|
url: string;
|
|
15317
15342
|
chainId: number;
|
|
15318
15343
|
}[] | undefined;
|
|
15344
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15319
15345
|
};
|
|
15320
15346
|
computeChainId: number;
|
|
15321
15347
|
createdAt: string;
|
|
@@ -15386,6 +15412,7 @@ declare const app: Elysia<"", {
|
|
|
15386
15412
|
url: string;
|
|
15387
15413
|
chainId: number;
|
|
15388
15414
|
}[] | undefined;
|
|
15415
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15389
15416
|
} | undefined;
|
|
15390
15417
|
creator?: {
|
|
15391
15418
|
address: string;
|
|
@@ -15501,6 +15528,7 @@ declare const app: Elysia<"", {
|
|
|
15501
15528
|
url: string;
|
|
15502
15529
|
chainId: number;
|
|
15503
15530
|
}[] | undefined;
|
|
15531
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15504
15532
|
};
|
|
15505
15533
|
chainId: number;
|
|
15506
15534
|
dailyRewards: number;
|
|
@@ -15657,6 +15685,7 @@ declare const app: Elysia<"", {
|
|
|
15657
15685
|
url: string;
|
|
15658
15686
|
chainId: number;
|
|
15659
15687
|
}[] | undefined;
|
|
15688
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15660
15689
|
};
|
|
15661
15690
|
computeChainId: number;
|
|
15662
15691
|
createdAt: string;
|
|
@@ -15727,6 +15756,7 @@ declare const app: Elysia<"", {
|
|
|
15727
15756
|
url: string;
|
|
15728
15757
|
chainId: number;
|
|
15729
15758
|
}[] | undefined;
|
|
15759
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
15730
15760
|
} | undefined;
|
|
15731
15761
|
creator?: {
|
|
15732
15762
|
address: string;
|
|
@@ -16995,6 +17025,12 @@ declare const app: Elysia<"", {
|
|
|
16995
17025
|
icon: string;
|
|
16996
17026
|
liveCampaigns: number;
|
|
16997
17027
|
endOfDisputePeriod: number;
|
|
17028
|
+
explorers?: {
|
|
17029
|
+
type: "BLOCKSCOUT" | "ETHERSCAN";
|
|
17030
|
+
url: string;
|
|
17031
|
+
chainId: number;
|
|
17032
|
+
}[] | undefined;
|
|
17033
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
16998
17034
|
};
|
|
16999
17035
|
rewards: {
|
|
17000
17036
|
distributionChainId: number;
|
|
@@ -17052,6 +17088,7 @@ declare const app: Elysia<"", {
|
|
|
17052
17088
|
icon: string;
|
|
17053
17089
|
liveCampaigns: number;
|
|
17054
17090
|
endOfDisputePeriod: number;
|
|
17091
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
17055
17092
|
};
|
|
17056
17093
|
MainProtocol: {
|
|
17057
17094
|
id: string;
|
|
@@ -17178,6 +17215,7 @@ declare const app: Elysia<"", {
|
|
|
17178
17215
|
icon: string;
|
|
17179
17216
|
liveCampaigns: number;
|
|
17180
17217
|
endOfDisputePeriod: number;
|
|
17218
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
17181
17219
|
};
|
|
17182
17220
|
MainProtocol: {
|
|
17183
17221
|
id: string;
|
|
@@ -17269,6 +17307,7 @@ declare const app: Elysia<"", {
|
|
|
17269
17307
|
url: string;
|
|
17270
17308
|
chainId: number;
|
|
17271
17309
|
}[] | undefined;
|
|
17310
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
17272
17311
|
};
|
|
17273
17312
|
chainId: number;
|
|
17274
17313
|
dailyRewards: number;
|
|
@@ -17425,6 +17464,7 @@ declare const app: Elysia<"", {
|
|
|
17425
17464
|
url: string;
|
|
17426
17465
|
chainId: number;
|
|
17427
17466
|
}[] | undefined;
|
|
17467
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
17428
17468
|
};
|
|
17429
17469
|
computeChainId: number;
|
|
17430
17470
|
createdAt: string;
|
|
@@ -17495,6 +17535,7 @@ declare const app: Elysia<"", {
|
|
|
17495
17535
|
url: string;
|
|
17496
17536
|
chainId: number;
|
|
17497
17537
|
}[] | undefined;
|
|
17538
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
17498
17539
|
} | undefined;
|
|
17499
17540
|
creator?: {
|
|
17500
17541
|
address: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class CampaignAggregator {
|
|
2
|
+
static countByChains(createdAfter: Date): Promise<Record<string, number>>;
|
|
3
|
+
static countByProtocols(createdAfter: Date): Promise<Record<string, number>>;
|
|
4
|
+
static countByTypes(createdAfter: Date): Promise<Record<string, number>>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign-aggregator.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/jobs/analytics/aggregators/campaign-aggregator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAEhF,MAAM,OAAO,kBAAkB;IAC7B,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,YAAkB,EAAmC;QAC9E,OAAO,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,aAAa,EAAE;YACvE,YAAY;SACb,CAAC,CAAC;IAAA,CACJ;IAED,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,YAAkB,EAAmC;QACjF,OAAO,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,gBAAgB,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC;IAAA,CAC/F;IAED,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,YAAkB,EAAmC;QAC7E,OAAO,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,YAAY,EAAE;YACtE,YAAY;SACb,CAAC,CAAC;IAAA,CACJ;CACF"}
|