@merkl/api 0.10.126 → 0.10.128
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/package.json +4 -2
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +2 -1
- package/dist/src/backgroundJobs/jobs/health.d.ts +2 -1
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +2 -1
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +2 -1
- package/dist/src/backgroundJobs/jobs/sync.d.ts +2 -1
- package/dist/src/eden/index.d.ts +237 -116
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +1 -0
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +1 -0
- package/dist/src/index.d.ts +117 -76
- package/dist/src/internal/controllers/endingCampaigns.d.ts +2 -1
- package/dist/src/internal/controllers/unclaimed.d.ts +2 -1
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +3 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +5 -4
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +7 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +8 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +4 -3
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +1 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +3 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +46 -10
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +57 -6
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +48 -0
- package/dist/src/modules/v4/participate/participate.controller.d.ts +5 -4
- package/dist/src/modules/v4/price/price.controller.d.ts +6 -5
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +8 -5
- package/dist/src/modules/v4/reward/reward.controller.d.ts +20 -13
- package/dist/src/modules/v4/reward/reward.model.d.ts +4 -1
- package/dist/src/modules/v4/router.d.ts +115 -70
- package/dist/src/modules/v4/status/status.controller.d.ts +6 -5
- package/dist/src/modules/v4/token/token.controller.d.ts +6 -6
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +2 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +8 -5
- package/dist/src/plugins/error-handling.plugin.d.ts +1 -0
- package/dist/src/plugins/logger.plugin.d.ts +1 -0
- package/dist/src/routes/v1/allowances.d.ts +3 -2
- package/dist/src/routes/v1/balances.d.ts +3 -2
- package/dist/src/routes/v1/prices.d.ts +2 -1
- package/dist/src/routes/v1/tokens.d.ts +2 -1
- package/dist/src/routes/v2/merkl.d.ts +2 -1
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +120 -78
- package/dist/src/routes/v3/app.d.ts +3 -2
- package/dist/src/routes/v3/blacklist.d.ts +118 -77
- package/dist/src/routes/v3/campaign/delay.d.ts +6 -1
- package/dist/src/routes/v3/campaignClaims.d.ts +2 -1
- package/dist/src/routes/v3/campaignReport.d.ts +2 -1
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +3 -2
- package/dist/src/routes/v3/campaigns.d.ts +120 -78
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +2 -1
- package/dist/src/routes/v3/campaignsInfo.d.ts +123 -78
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +2 -1
- package/dist/src/routes/v3/claims.d.ts +2 -1
- package/dist/src/routes/v3/compoundV2.d.ts +12 -2
- package/dist/src/routes/v3/createCampaign.d.ts +2 -1
- package/dist/src/routes/v3/dolomite.d.ts +2 -1
- package/dist/src/routes/v3/euler.d.ts +2 -1
- package/dist/src/routes/v3/exports/campaigns.d.ts +2 -1
- package/dist/src/routes/v3/fetch.d.ts +2 -1
- package/dist/src/routes/v3/health.d.ts +2 -1
- package/dist/src/routes/v3/lostyield.d.ts +2 -1
- package/dist/src/routes/v3/merkl.d.ts +2 -1
- package/dist/src/routes/v3/morphoMarkets.d.ts +2 -1
- package/dist/src/routes/v3/morphoVaults.d.ts +2 -1
- package/dist/src/routes/v3/multiChainPositions.d.ts +120 -78
- package/dist/src/routes/v3/opportunity.d.ts +122 -96
- package/dist/src/routes/v3/overview.d.ts +22 -4
- package/dist/src/routes/v3/parse.d.ts +2 -1
- package/dist/src/routes/v3/payload.d.ts +2 -1
- package/dist/src/routes/v3/poolInfo.d.ts +2 -1
- package/dist/src/routes/v3/positions.d.ts +121 -79
- package/dist/src/routes/v3/radiant.d.ts +2 -1
- package/dist/src/routes/v3/recipients.d.ts +2 -1
- package/dist/src/routes/v3/rewards.d.ts +147 -78
- package/dist/src/routes/v3/rewardsReport.d.ts +2 -1
- package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -1
- package/dist/src/routes/v3/silo.d.ts +2 -1
- package/dist/src/routes/v3/token.d.ts +3 -2
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +2 -1
- package/dist/src/routes/v3/twt/participants.d.ts +2 -1
- package/dist/src/routes/v3/updates.d.ts +127 -78
- package/dist/src/routes/v3/userRewards.d.ts +119 -78
- package/dist/src/utils/error.d.ts +1 -0
- package/dist/src/utils/validation.d.ts +3 -3
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/dist/src/utils/trace.d.ts +0 -26
@@ -10,12 +10,13 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
rewards: {
|
15
16
|
index: {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {};
|
19
20
|
query: {
|
20
21
|
items?: number | undefined;
|
21
22
|
page?: number | undefined;
|
@@ -34,7 +35,7 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
34
35
|
total: {
|
35
36
|
get: {
|
36
37
|
body: unknown;
|
37
|
-
params:
|
38
|
+
params: {};
|
38
39
|
query: {
|
39
40
|
items?: number | undefined;
|
40
41
|
page?: number | undefined;
|
@@ -62,13 +63,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
62
63
|
proofs: string[];
|
63
64
|
rewardToken: string;
|
64
65
|
}[];
|
65
|
-
params:
|
66
|
+
params: {};
|
66
67
|
query: unknown;
|
67
68
|
headers: {
|
68
69
|
authorization: string;
|
69
70
|
};
|
70
71
|
response: {
|
71
|
-
200:
|
72
|
+
200: {
|
73
|
+
count: number;
|
74
|
+
};
|
72
75
|
};
|
73
76
|
};
|
74
77
|
};
|
@@ -94,13 +97,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
94
97
|
claimed: string;
|
95
98
|
}[];
|
96
99
|
}[];
|
97
|
-
params:
|
100
|
+
params: {};
|
98
101
|
query: unknown;
|
99
102
|
headers: {
|
100
103
|
authorization: string;
|
101
104
|
};
|
102
105
|
response: {
|
103
|
-
200:
|
106
|
+
200: {
|
107
|
+
count: number;
|
108
|
+
} | undefined;
|
104
109
|
};
|
105
110
|
};
|
106
111
|
};
|
@@ -130,7 +135,7 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
130
135
|
recipient: string;
|
131
136
|
}[];
|
132
137
|
};
|
133
|
-
params:
|
138
|
+
params: {};
|
134
139
|
query: unknown;
|
135
140
|
headers: {
|
136
141
|
authorization: string;
|
@@ -146,7 +151,7 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
146
151
|
count: {
|
147
152
|
get: {
|
148
153
|
body: unknown;
|
149
|
-
params:
|
154
|
+
params: {};
|
150
155
|
query: {
|
151
156
|
items?: number | undefined;
|
152
157
|
page?: number | undefined;
|
@@ -168,16 +173,18 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
168
173
|
chains: {
|
169
174
|
get: {
|
170
175
|
body: unknown;
|
171
|
-
params:
|
176
|
+
params: {};
|
172
177
|
query: unknown;
|
173
178
|
headers: {
|
174
179
|
authorization: string;
|
175
180
|
};
|
176
181
|
response: {
|
177
|
-
200:
|
178
|
-
|
179
|
-
|
180
|
-
|
182
|
+
200: {
|
183
|
+
[x: string]: {
|
184
|
+
breakdown: number;
|
185
|
+
rewards: Record<string, number>;
|
186
|
+
};
|
187
|
+
};
|
181
188
|
};
|
182
189
|
};
|
183
190
|
};
|
@@ -31,7 +31,10 @@ export type DailyRewardsRecord = Resource<"DailyRewardsRecord", "opportunityId"
|
|
31
31
|
* @description Describes one rewards value of a campaign
|
32
32
|
* @see {@link Resource}
|
33
33
|
*/
|
34
|
-
export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "dailyRewardsRecordId"
|
34
|
+
export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "dailyRewardsRecordId", {
|
35
|
+
token: Token["model"];
|
36
|
+
amount: bigint;
|
37
|
+
}>;
|
35
38
|
export declare const CreateManyBreakdownDto: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
36
39
|
distributionChainId: import("@sinclair/typebox").TNumber;
|
37
40
|
rewardToken: import("@sinclair/typebox").TString;
|