@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
@@ -11,13 +11,14 @@ export declare const unclaimedController: (app: Elysia) => Elysia<"", false, {
|
|
11
11
|
}, {
|
12
12
|
schema: {};
|
13
13
|
macro: {};
|
14
|
+
macroFn: {};
|
14
15
|
}, {
|
15
16
|
v3: {
|
16
17
|
internal: {
|
17
18
|
unclaimed: {
|
18
19
|
get: {
|
19
20
|
body: unknown;
|
20
|
-
params:
|
21
|
+
params: {};
|
21
22
|
query: {
|
22
23
|
timestamp?: number | undefined;
|
23
24
|
months?: number | undefined;
|
@@ -10,12 +10,13 @@ export declare const AccountingController: Elysia<"/accounting", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
accounting: {
|
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;
|
@@ -43,7 +44,7 @@ export declare const AccountingController: Elysia<"/accounting", false, {
|
|
43
44
|
revenues: {
|
44
45
|
get: {
|
45
46
|
body: unknown;
|
46
|
-
params:
|
47
|
+
params: {};
|
47
48
|
query: unknown;
|
48
49
|
headers: {
|
49
50
|
authorization: string;
|
@@ -10,12 +10,13 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
blacklists: {
|
15
16
|
index: {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {};
|
19
20
|
query: unknown;
|
20
21
|
headers: unknown;
|
21
22
|
response: {
|
@@ -36,12 +37,12 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
|
|
36
37
|
all: {
|
37
38
|
get: {
|
38
39
|
body: unknown;
|
39
|
-
params:
|
40
|
+
params: {};
|
40
41
|
query: unknown;
|
41
42
|
headers: unknown;
|
42
43
|
response: {
|
43
44
|
200: {
|
44
|
-
[
|
45
|
+
[x: string]: boolean;
|
45
46
|
};
|
46
47
|
};
|
47
48
|
};
|
@@ -75,7 +76,7 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
|
|
75
76
|
poolAddress: string;
|
76
77
|
userAddress: string;
|
77
78
|
};
|
78
|
-
params:
|
79
|
+
params: {};
|
79
80
|
query: unknown;
|
80
81
|
headers: {
|
81
82
|
authorization: string;
|
@@ -10,6 +10,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
campaigns: {
|
15
16
|
index: {
|
@@ -29,7 +30,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
29
30
|
rewardTokenAddress: string;
|
30
31
|
opportunityIdentifier: string;
|
31
32
|
};
|
32
|
-
params:
|
33
|
+
params: {};
|
33
34
|
query: unknown;
|
34
35
|
headers: {
|
35
36
|
authorization: string;
|
@@ -57,7 +58,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
57
58
|
index: {
|
58
59
|
get: {
|
59
60
|
body: unknown;
|
60
|
-
params:
|
61
|
+
params: {};
|
61
62
|
query: {
|
62
63
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
63
64
|
items?: number | undefined;
|
@@ -117,7 +118,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
117
118
|
count: {
|
118
119
|
get: {
|
119
120
|
body: unknown;
|
120
|
-
params:
|
121
|
+
params: {};
|
121
122
|
query: {
|
122
123
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
123
124
|
items?: number | undefined;
|
@@ -143,7 +144,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
143
144
|
index: {
|
144
145
|
get: {
|
145
146
|
body: unknown;
|
146
|
-
params:
|
147
|
+
params: {};
|
147
148
|
query: {
|
148
149
|
chainId: number;
|
149
150
|
};
|
@@ -165,7 +166,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
165
166
|
count: {
|
166
167
|
get: {
|
167
168
|
body: unknown;
|
168
|
-
params:
|
169
|
+
params: {};
|
169
170
|
query: {
|
170
171
|
chainId: number;
|
171
172
|
};
|
@@ -181,7 +182,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
181
182
|
index: {
|
182
183
|
post: {
|
183
184
|
body: unknown;
|
184
|
-
params:
|
185
|
+
params: {};
|
185
186
|
query: {
|
186
187
|
chainId: number;
|
187
188
|
};
|
@@ -196,4 +196,12 @@ export declare abstract class CampaignService {
|
|
196
196
|
* @returns
|
197
197
|
*/
|
198
198
|
static fetchDynamicData<C extends CampaignType>(chainId: number, campaignType: CampaignType, campaigns: CampaignParameters<ConvertedCampaignType<C>>[]): Promise<any>;
|
199
|
+
/**
|
200
|
+
* Shortcut to get daily amount from total
|
201
|
+
* @param start timestamp
|
202
|
+
* @param end timestamp
|
203
|
+
* @param amount
|
204
|
+
* @returns daily token amount
|
205
|
+
*/
|
206
|
+
static getDailyAmount<T extends bigint | number>(start: T, end: T, amount: bigint): bigint;
|
199
207
|
}
|
@@ -10,6 +10,7 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
chains: {
|
15
16
|
":chainId": {
|
@@ -39,7 +40,7 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
39
40
|
index: {
|
40
41
|
get: {
|
41
42
|
body: unknown;
|
42
|
-
params:
|
43
|
+
params: {};
|
43
44
|
query: {
|
44
45
|
search?: string | undefined;
|
45
46
|
};
|
@@ -63,7 +64,7 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
63
64
|
count: {
|
64
65
|
get: {
|
65
66
|
body: unknown;
|
66
|
-
params:
|
67
|
+
params: {};
|
67
68
|
query: {
|
68
69
|
search?: string | undefined;
|
69
70
|
};
|
@@ -81,7 +82,7 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
81
82
|
url: string;
|
82
83
|
chainId: number;
|
83
84
|
};
|
84
|
-
params:
|
85
|
+
params: {};
|
85
86
|
query: unknown;
|
86
87
|
headers: {
|
87
88
|
authorization: string;
|
@@ -10,12 +10,13 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
roots: {
|
15
16
|
timestamps: {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {};
|
19
20
|
query: {
|
20
21
|
chainId: number;
|
21
22
|
fromTimestamp: string;
|
@@ -38,7 +39,7 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
38
39
|
index: {
|
39
40
|
get: {
|
40
41
|
body: unknown;
|
41
|
-
params:
|
42
|
+
params: {};
|
42
43
|
query: unknown;
|
43
44
|
headers: unknown;
|
44
45
|
response: {
|
@@ -10,6 +10,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
opportunities: {
|
15
16
|
index: {
|
@@ -28,7 +29,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
28
29
|
protocols: string[];
|
29
30
|
mainProtocol: string;
|
30
31
|
};
|
31
|
-
params:
|
32
|
+
params: {};
|
32
33
|
query: unknown;
|
33
34
|
headers: {
|
34
35
|
authorization: string;
|
@@ -83,6 +84,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
83
84
|
value: number;
|
84
85
|
campaignId: string;
|
85
86
|
dailyRewardsRecordId: string;
|
87
|
+
token: {
|
88
|
+
symbol: string;
|
89
|
+
name: string | null;
|
90
|
+
id: string;
|
91
|
+
chainId: number;
|
92
|
+
address: string;
|
93
|
+
icon: string;
|
94
|
+
decimals: number;
|
95
|
+
verified: boolean;
|
96
|
+
price: number | null;
|
97
|
+
};
|
98
|
+
amount: bigint;
|
86
99
|
}[];
|
87
100
|
};
|
88
101
|
id: string;
|
@@ -137,7 +150,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
137
150
|
query: unknown;
|
138
151
|
headers: unknown;
|
139
152
|
response: {
|
140
|
-
200:
|
153
|
+
200: {
|
141
154
|
aprRecord: {
|
142
155
|
cumulated: number;
|
143
156
|
timestamp: bigint;
|
@@ -170,6 +183,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
170
183
|
value: number;
|
171
184
|
campaignId: string;
|
172
185
|
dailyRewardsRecordId: string;
|
186
|
+
token: {
|
187
|
+
symbol: string;
|
188
|
+
name: string | null;
|
189
|
+
id: string;
|
190
|
+
chainId: number;
|
191
|
+
address: string;
|
192
|
+
icon: string;
|
193
|
+
decimals: number;
|
194
|
+
verified: boolean;
|
195
|
+
price: number | null;
|
196
|
+
};
|
197
|
+
amount: bigint;
|
173
198
|
}[];
|
174
199
|
};
|
175
200
|
id: string;
|
@@ -207,7 +232,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
207
232
|
tvl: number;
|
208
233
|
apr: number;
|
209
234
|
dailyRewards: number;
|
210
|
-
} & {
|
211
235
|
campaigns: ({
|
212
236
|
params: any;
|
213
237
|
chain: {
|
@@ -244,7 +268,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
244
268
|
opportunityId: string;
|
245
269
|
creatorAddress: string;
|
246
270
|
} | null)[];
|
247
|
-
}
|
271
|
+
} | null | undefined;
|
248
272
|
};
|
249
273
|
};
|
250
274
|
};
|
@@ -255,9 +279,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
255
279
|
index: {
|
256
280
|
get: {
|
257
281
|
body: unknown;
|
258
|
-
params:
|
282
|
+
params: {};
|
259
283
|
query: {
|
260
|
-
sort?:
|
284
|
+
sort?: undefined;
|
261
285
|
name?: string | undefined;
|
262
286
|
tokens?: string | undefined;
|
263
287
|
status?: string | undefined;
|
@@ -267,7 +291,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
267
291
|
page?: number | undefined;
|
268
292
|
action?: string | undefined;
|
269
293
|
mainProtocolId?: string | undefined;
|
270
|
-
order?:
|
294
|
+
order?: undefined;
|
271
295
|
};
|
272
296
|
headers: unknown;
|
273
297
|
response: {
|
@@ -304,6 +328,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
304
328
|
value: number;
|
305
329
|
campaignId: string;
|
306
330
|
dailyRewardsRecordId: string;
|
331
|
+
token: {
|
332
|
+
symbol: string;
|
333
|
+
name: string | null;
|
334
|
+
id: string;
|
335
|
+
chainId: number;
|
336
|
+
address: string;
|
337
|
+
icon: string;
|
338
|
+
decimals: number;
|
339
|
+
verified: boolean;
|
340
|
+
price: number | null;
|
341
|
+
};
|
342
|
+
amount: bigint;
|
307
343
|
}[];
|
308
344
|
};
|
309
345
|
id: string;
|
@@ -351,9 +387,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
351
387
|
count: {
|
352
388
|
get: {
|
353
389
|
body: unknown;
|
354
|
-
params:
|
390
|
+
params: {};
|
355
391
|
query: {
|
356
|
-
sort?:
|
392
|
+
sort?: undefined;
|
357
393
|
name?: string | undefined;
|
358
394
|
tokens?: string | undefined;
|
359
395
|
status?: string | undefined;
|
@@ -363,7 +399,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
363
399
|
page?: number | undefined;
|
364
400
|
action?: string | undefined;
|
365
401
|
mainProtocolId?: string | undefined;
|
366
|
-
order?:
|
402
|
+
order?: undefined;
|
367
403
|
};
|
368
404
|
headers: unknown;
|
369
405
|
response: {
|
@@ -68,12 +68,29 @@ export declare abstract class OpportunityRepository {
|
|
68
68
|
cumulated: number;
|
69
69
|
})[];
|
70
70
|
DailyRewardsRecords: ({
|
71
|
-
DailyRewardsBreakdown: {
|
71
|
+
DailyRewardsBreakdown: ({
|
72
|
+
Campaign: {
|
73
|
+
startTimestamp: bigint;
|
74
|
+
endTimestamp: bigint;
|
75
|
+
amount: string;
|
76
|
+
RewardToken: {
|
77
|
+
symbol: string;
|
78
|
+
name: string | null;
|
79
|
+
id: string;
|
80
|
+
chainId: number;
|
81
|
+
address: string;
|
82
|
+
icon: string;
|
83
|
+
decimals: number;
|
84
|
+
verified: boolean;
|
85
|
+
price: number | null;
|
86
|
+
};
|
87
|
+
};
|
88
|
+
} & {
|
72
89
|
id: number;
|
73
90
|
value: number;
|
74
91
|
campaignId: string;
|
75
92
|
dailyRewardsRecordId: string;
|
76
|
-
}[];
|
93
|
+
})[];
|
77
94
|
} & {
|
78
95
|
total: number;
|
79
96
|
id: string;
|
@@ -193,12 +210,29 @@ export declare abstract class OpportunityRepository {
|
|
193
210
|
cumulated: number;
|
194
211
|
})[];
|
195
212
|
DailyRewardsRecords: ({
|
196
|
-
DailyRewardsBreakdown: {
|
213
|
+
DailyRewardsBreakdown: ({
|
214
|
+
Campaign: {
|
215
|
+
startTimestamp: bigint;
|
216
|
+
endTimestamp: bigint;
|
217
|
+
amount: string;
|
218
|
+
RewardToken: {
|
219
|
+
symbol: string;
|
220
|
+
name: string | null;
|
221
|
+
id: string;
|
222
|
+
chainId: number;
|
223
|
+
address: string;
|
224
|
+
icon: string;
|
225
|
+
decimals: number;
|
226
|
+
verified: boolean;
|
227
|
+
price: number | null;
|
228
|
+
};
|
229
|
+
};
|
230
|
+
} & {
|
197
231
|
id: number;
|
198
232
|
value: number;
|
199
233
|
campaignId: string;
|
200
234
|
dailyRewardsRecordId: string;
|
201
|
-
}[];
|
235
|
+
})[];
|
202
236
|
} & {
|
203
237
|
total: number;
|
204
238
|
id: string;
|
@@ -311,12 +345,29 @@ export declare abstract class OpportunityRepository {
|
|
311
345
|
cumulated: number;
|
312
346
|
})[];
|
313
347
|
DailyRewardsRecords: ({
|
314
|
-
DailyRewardsBreakdown: {
|
348
|
+
DailyRewardsBreakdown: ({
|
349
|
+
Campaign: {
|
350
|
+
startTimestamp: bigint;
|
351
|
+
endTimestamp: bigint;
|
352
|
+
amount: string;
|
353
|
+
RewardToken: {
|
354
|
+
symbol: string;
|
355
|
+
name: string | null;
|
356
|
+
id: string;
|
357
|
+
chainId: number;
|
358
|
+
address: string;
|
359
|
+
icon: string;
|
360
|
+
decimals: number;
|
361
|
+
verified: boolean;
|
362
|
+
price: number | null;
|
363
|
+
};
|
364
|
+
};
|
365
|
+
} & {
|
315
366
|
id: number;
|
316
367
|
value: number;
|
317
368
|
campaignId: string;
|
318
369
|
dailyRewardsRecordId: string;
|
319
|
-
}[];
|
370
|
+
})[];
|
320
371
|
} & {
|
321
372
|
total: number;
|
322
373
|
id: string;
|
@@ -65,6 +65,18 @@ export declare abstract class OpportunityService {
|
|
65
65
|
value: number;
|
66
66
|
campaignId: string;
|
67
67
|
dailyRewardsRecordId: string;
|
68
|
+
token: {
|
69
|
+
symbol: string;
|
70
|
+
name: string | null;
|
71
|
+
id: string;
|
72
|
+
chainId: number;
|
73
|
+
address: string;
|
74
|
+
icon: string;
|
75
|
+
decimals: number;
|
76
|
+
verified: boolean;
|
77
|
+
price: number | null;
|
78
|
+
};
|
79
|
+
amount: bigint;
|
68
80
|
}[];
|
69
81
|
};
|
70
82
|
id: string;
|
@@ -173,6 +185,18 @@ export declare abstract class OpportunityService {
|
|
173
185
|
value: number;
|
174
186
|
campaignId: string;
|
175
187
|
dailyRewardsRecordId: string;
|
188
|
+
token: {
|
189
|
+
symbol: string;
|
190
|
+
name: string | null;
|
191
|
+
id: string;
|
192
|
+
chainId: number;
|
193
|
+
address: string;
|
194
|
+
icon: string;
|
195
|
+
decimals: number;
|
196
|
+
verified: boolean;
|
197
|
+
price: number | null;
|
198
|
+
};
|
199
|
+
amount: bigint;
|
176
200
|
}[];
|
177
201
|
};
|
178
202
|
id: string;
|
@@ -249,6 +273,18 @@ export declare abstract class OpportunityService {
|
|
249
273
|
value: number;
|
250
274
|
campaignId: string;
|
251
275
|
dailyRewardsRecordId: string;
|
276
|
+
token: {
|
277
|
+
symbol: string;
|
278
|
+
name: string | null;
|
279
|
+
id: string;
|
280
|
+
chainId: number;
|
281
|
+
address: string;
|
282
|
+
icon: string;
|
283
|
+
decimals: number;
|
284
|
+
verified: boolean;
|
285
|
+
price: number | null;
|
286
|
+
};
|
287
|
+
amount: bigint;
|
252
288
|
}[];
|
253
289
|
};
|
254
290
|
id: string;
|
@@ -330,6 +366,18 @@ export declare abstract class OpportunityService {
|
|
330
366
|
value: number;
|
331
367
|
campaignId: string;
|
332
368
|
dailyRewardsRecordId: string;
|
369
|
+
token: {
|
370
|
+
symbol: string;
|
371
|
+
name: string | null;
|
372
|
+
id: string;
|
373
|
+
chainId: number;
|
374
|
+
address: string;
|
375
|
+
icon: string;
|
376
|
+
decimals: number;
|
377
|
+
verified: boolean;
|
378
|
+
price: number | null;
|
379
|
+
};
|
380
|
+
amount: bigint;
|
333
381
|
}[];
|
334
382
|
};
|
335
383
|
id: string;
|
@@ -10,12 +10,13 @@ export declare const ParticipateController: Elysia<"/participate", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
participate: {
|
15
16
|
targets: {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {};
|
19
20
|
query: {
|
20
21
|
identifier?: string | undefined;
|
21
22
|
chainId: number;
|
@@ -33,7 +34,7 @@ export declare const ParticipateController: Elysia<"/participate", false, {
|
|
33
34
|
protocols: {
|
34
35
|
get: {
|
35
36
|
body: unknown;
|
36
|
-
params:
|
37
|
+
params: {};
|
37
38
|
query: {
|
38
39
|
chainId?: number | undefined;
|
39
40
|
};
|
@@ -55,7 +56,7 @@ export declare const ParticipateController: Elysia<"/participate", false, {
|
|
55
56
|
quote: {
|
56
57
|
get: {
|
57
58
|
body: unknown;
|
58
|
-
params:
|
59
|
+
params: {};
|
59
60
|
query: {
|
60
61
|
identifier: string;
|
61
62
|
chainId: number;
|
@@ -81,7 +82,7 @@ export declare const ParticipateController: Elysia<"/participate", false, {
|
|
81
82
|
transaction: {
|
82
83
|
get: {
|
83
84
|
body: unknown;
|
84
|
-
params:
|
85
|
+
params: {};
|
85
86
|
query: {
|
86
87
|
identifier: string;
|
87
88
|
chainId: number;
|
@@ -10,17 +10,18 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
prices: {
|
15
16
|
index: {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {};
|
19
20
|
query: unknown;
|
20
21
|
headers: unknown;
|
21
22
|
response: {
|
22
23
|
200: {
|
23
|
-
[
|
24
|
+
[x: string]: number;
|
24
25
|
};
|
25
26
|
};
|
26
27
|
};
|
@@ -29,7 +30,7 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
29
30
|
array: {
|
30
31
|
get: {
|
31
32
|
body: unknown;
|
32
|
-
params:
|
33
|
+
params: {};
|
33
34
|
query: unknown;
|
34
35
|
headers: unknown;
|
35
36
|
response: {
|
@@ -61,7 +62,7 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
61
62
|
index: {
|
62
63
|
get: {
|
63
64
|
body: unknown;
|
64
|
-
params:
|
65
|
+
params: {};
|
65
66
|
query: unknown;
|
66
67
|
headers: unknown;
|
67
68
|
response: {
|
@@ -107,7 +108,7 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
107
108
|
method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
|
108
109
|
args: {};
|
109
110
|
};
|
110
|
-
params:
|
111
|
+
params: {};
|
111
112
|
query: unknown;
|
112
113
|
headers: {
|
113
114
|
authorization: string;
|
@@ -10,22 +10,25 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
|
+
macroFn: {};
|
13
14
|
}, {
|
14
15
|
protocols: {
|
15
16
|
":id": {
|
16
17
|
get: {
|
17
18
|
body: unknown;
|
18
|
-
params:
|
19
|
+
params: {
|
20
|
+
id: string;
|
21
|
+
};
|
19
22
|
query: unknown;
|
20
23
|
headers: unknown;
|
21
24
|
response: {
|
22
|
-
200:
|
25
|
+
200: {
|
23
26
|
name: string;
|
24
27
|
url: string;
|
25
28
|
description: string;
|
26
29
|
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
27
30
|
icon: string;
|
28
|
-
}
|
31
|
+
} | null;
|
29
32
|
};
|
30
33
|
};
|
31
34
|
};
|
@@ -35,7 +38,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
35
38
|
index: {
|
36
39
|
get: {
|
37
40
|
body: unknown;
|
38
|
-
params:
|
41
|
+
params: {};
|
39
42
|
query: {
|
40
43
|
name?: string | undefined;
|
41
44
|
id?: string[] | undefined;
|
@@ -61,7 +64,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
61
64
|
count: {
|
62
65
|
get: {
|
63
66
|
body: unknown;
|
64
|
-
params:
|
67
|
+
params: {};
|
65
68
|
query: {
|
66
69
|
name?: string | undefined;
|
67
70
|
id?: string[] | undefined;
|