@merkl/api 0.10.168 → 0.10.170
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/edge.js +6 -3
- package/dist/database/api/.generated/index-browser.js +3 -0
- package/dist/database/api/.generated/index.d.ts +113 -0
- package/dist/database/api/.generated/index.js +6 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +17 -15
- package/dist/database/api/.generated/wasm.js +3 -0
- package/dist/src/cache/declaration.d.ts +0 -30
- package/dist/src/cache/declaration.js +0 -30
- package/dist/src/eden/index.d.ts +167 -15
- package/dist/src/index.d.ts +59 -5
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.d.ts +29 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.js +31 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
- package/dist/src/libs/positions/clamm/index.d.ts +1 -2
- package/dist/src/libs/positions/clamm/index.js +322 -330
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +2 -2
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -2
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -4
- package/dist/src/libs/positions/euler/index.js +2 -3
- package/dist/src/libs/positions/index.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -2
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +10 -5
- package/dist/src/modules/v4/campaign/campaign.service.js +10 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +20 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +83 -5
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +31 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +162 -8
- package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -0
- package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.js +90 -0
- package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.js +69 -0
- package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.js +71 -0
- package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.js +45 -0
- package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.js +47 -0
- package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.js +40 -0
- package/dist/src/modules/v4/position/index.d.ts +2 -0
- package/dist/src/modules/v4/position/index.js +2 -0
- package/dist/src/modules/v4/position/position.controller.d.ts +39 -0
- package/dist/src/modules/v4/position/position.controller.js +16 -0
- package/dist/src/modules/v4/position/position.model.d.ts +25 -0
- package/dist/src/modules/v4/position/position.model.js +5 -0
- package/dist/src/modules/v4/position/position.repository.d.ts +14 -0
- package/dist/src/modules/v4/position/position.repository.js +6 -0
- package/dist/src/modules/v4/position/position.service.d.ts +5 -0
- package/dist/src/modules/v4/position/position.service.js +34 -0
- package/dist/src/modules/v4/price/price.controller.js +1 -1
- package/dist/src/modules/v4/price/price.service.d.ts +1 -1
- package/dist/src/modules/v4/price/price.service.js +3 -3
- package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +27 -0
- package/dist/src/modules/v4/reward/reward.service.js +5 -2
- package/dist/src/modules/v4/router.d.ts +59 -5
- package/dist/src/modules/v4/router.js +3 -1
- package/dist/src/modules/v4/token/token.controller.d.ts +6 -0
- package/dist/src/modules/v4/token/token.service.d.ts +12 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +8 -0
- package/dist/src/routes/v1/prices.js +2 -4
- package/dist/src/routes/v3/blacklist.d.ts +59 -5
- package/dist/src/routes/v3/campaigns.d.ts +60 -6
- package/dist/src/routes/v3/campaignsInfo.d.ts +59 -5
- package/dist/src/routes/v3/multiChainPositions.d.ts +59 -5
- package/dist/src/routes/v3/opportunity.d.ts +59 -5
- package/dist/src/routes/v3/positions.d.ts +59 -5
- package/dist/src/routes/v3/recipients.d.ts +6 -2
- package/dist/src/routes/v3/recipients.js +14 -8
- package/dist/src/routes/v3/rewards.d.ts +59 -5
- package/dist/src/routes/v3/updates.d.ts +59 -5
- package/dist/src/routes/v3/userRewards.d.ts +59 -5
- package/dist/src/utils/decodeCalls.js +4 -1
- package/dist/src/utils/encodeCalls.js +4 -1
- package/dist/src/utils/generateCardName.js +2 -0
- package/dist/src/utils/prices/services/erc4626Service.js +10 -4
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/libs/reports/campaignReport.d.ts +0 -9
- package/dist/src/libs/reports/campaignReport.js +0 -37
- package/dist/src/libs/reports/mainParameterRewards.d.ts +0 -3
- package/dist/src/libs/reports/mainParameterRewards.js +0 -48
@@ -15,26 +15,6 @@ export declare const CacheDeclaration: {
|
|
15
15
|
redisTTL: TTLType.Minutes5;
|
16
16
|
localCache: false;
|
17
17
|
};
|
18
|
-
CampaignRewards: {
|
19
|
-
compressed: true;
|
20
|
-
redisTTL: TTLType.Hours12;
|
21
|
-
localCache: false;
|
22
|
-
};
|
23
|
-
RewardsMainParameter: {
|
24
|
-
compressed: true;
|
25
|
-
redisTTL: TTLType.Hours12;
|
26
|
-
localCache: false;
|
27
|
-
};
|
28
|
-
RewardsMainParameterDelta: {
|
29
|
-
compressed: true;
|
30
|
-
redisTTL: TTLType.Hours12;
|
31
|
-
localCache: false;
|
32
|
-
};
|
33
|
-
CampaignRewardsDelta: {
|
34
|
-
compressed: true;
|
35
|
-
redisTTL: TTLType.Hours12;
|
36
|
-
localCache: false;
|
37
|
-
};
|
38
18
|
LastBlockBefore: {
|
39
19
|
compressed: false;
|
40
20
|
redisTTL: TTLType.Hours12;
|
@@ -75,16 +55,6 @@ export declare const CacheDeclaration: {
|
|
75
55
|
redisTTL: TTLType.Minutes30;
|
76
56
|
localCache: false;
|
77
57
|
};
|
78
|
-
FarmedPositions: {
|
79
|
-
compressed: false;
|
80
|
-
redisTTL: TTLType.Minutes2;
|
81
|
-
localCache: false;
|
82
|
-
};
|
83
|
-
JsonByTimestamp: {
|
84
|
-
compressed: false;
|
85
|
-
redisTTL: TTLType.Minutes10;
|
86
|
-
localCache: false;
|
87
|
-
};
|
88
58
|
Prices: {
|
89
59
|
compressed: true;
|
90
60
|
redisTTL: TTLType.Minutes30;
|
@@ -3,26 +3,6 @@ export const CacheDeclaration = {
|
|
3
3
|
Updates: { compressed: false, redisTTL: TTLType.Minutes2, localCache: false },
|
4
4
|
Delays: { compressed: false, redisTTL: TTLType.Minutes2, localCache: false },
|
5
5
|
TwtParticipants: { compressed: false, redisTTL: TTLType.Minutes5, localCache: false },
|
6
|
-
CampaignRewards: {
|
7
|
-
compressed: true,
|
8
|
-
redisTTL: TTLType.Hours12,
|
9
|
-
localCache: false,
|
10
|
-
},
|
11
|
-
RewardsMainParameter: {
|
12
|
-
compressed: true,
|
13
|
-
redisTTL: TTLType.Hours12,
|
14
|
-
localCache: false,
|
15
|
-
},
|
16
|
-
RewardsMainParameterDelta: {
|
17
|
-
compressed: true,
|
18
|
-
redisTTL: TTLType.Hours12,
|
19
|
-
localCache: false,
|
20
|
-
},
|
21
|
-
CampaignRewardsDelta: {
|
22
|
-
compressed: true,
|
23
|
-
redisTTL: TTLType.Hours12,
|
24
|
-
localCache: false,
|
25
|
-
},
|
26
6
|
LastBlockBefore: {
|
27
7
|
compressed: false,
|
28
8
|
redisTTL: TTLType.Hours12,
|
@@ -63,16 +43,6 @@ export const CacheDeclaration = {
|
|
63
43
|
redisTTL: TTLType.Minutes30,
|
64
44
|
localCache: false,
|
65
45
|
},
|
66
|
-
FarmedPositions: {
|
67
|
-
compressed: false,
|
68
|
-
redisTTL: TTLType.Minutes2,
|
69
|
-
localCache: false,
|
70
|
-
},
|
71
|
-
JsonByTimestamp: {
|
72
|
-
compressed: false,
|
73
|
-
redisTTL: TTLType.Minutes10,
|
74
|
-
localCache: false,
|
75
|
-
},
|
76
46
|
Prices: {
|
77
47
|
compressed: true,
|
78
48
|
redisTTL: TTLType.Minutes30,
|