@merkl/api 1.0.42 → 1.0.44
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 +1590 -1518
- package/dist/src/index.d.ts +842 -848
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -2
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +4 -4
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +303 -315
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -2
- package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +627 -627
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +36 -4
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +4 -4
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +18 -18
- package/dist/src/modules/v4/reward/reward.model.d.ts +6 -6
- package/dist/src/modules/v4/router.d.ts +842 -848
- package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
- package/dist/src/modules/v4/token/token.model.d.ts +2 -2
- package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
- package/dist/src/modules/v4/token/token.service.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
- package/dist/src/modules/v4/user/user.model.d.ts +2 -2
- package/dist/src/utils/pagination.d.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -15,78 +15,151 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
15
15
|
parser: {};
|
16
16
|
}, {
|
17
17
|
opportunities: {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
18
|
+
campaigns: {
|
19
|
+
get: {
|
20
|
+
body: unknown;
|
21
|
+
params: {};
|
22
|
+
query: {
|
23
|
+
campaignId?: string | undefined;
|
24
|
+
id?: string | undefined;
|
25
|
+
tokenAddress?: string | undefined;
|
26
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
27
|
+
chainId?: number | undefined;
|
28
|
+
startTimestamp?: string | undefined;
|
29
|
+
point?: boolean | undefined;
|
30
|
+
tokenSymbol?: string | undefined;
|
31
|
+
type?: string | undefined;
|
32
|
+
endTimestamp?: string | undefined;
|
33
|
+
opportunityId?: string | undefined;
|
34
|
+
creatorAddress?: string | undefined;
|
35
|
+
mainProtocolId?: string | undefined;
|
36
|
+
subType?: number | undefined;
|
37
|
+
rootCampaignId?: string | undefined;
|
38
|
+
parentCampaignId?: string | undefined;
|
39
|
+
creatorId?: string | undefined;
|
40
|
+
mainParameter?: string | undefined;
|
41
|
+
test?: boolean | undefined;
|
42
|
+
creatorTag?: string | undefined;
|
43
|
+
distributionChainIds?: number[] | undefined;
|
44
|
+
types?: string[] | undefined;
|
45
|
+
withOpportunity?: boolean | undefined;
|
46
|
+
createdAfter?: Date | null | undefined;
|
47
|
+
excludeSubCampaigns?: boolean | undefined;
|
48
|
+
items: number;
|
49
|
+
page: number;
|
50
|
+
};
|
51
|
+
headers: unknown;
|
52
|
+
response: {
|
53
|
+
200: {
|
54
|
+
protocol?: {
|
55
|
+
dailyRewards?: number | undefined;
|
56
|
+
numberOfLiveCampaigns?: number | undefined;
|
57
|
+
opportunityLiveTags?: string[] | undefined;
|
58
|
+
name: string;
|
59
|
+
description: string;
|
60
|
+
id: string;
|
61
|
+
url: string;
|
62
|
+
icon: string;
|
63
|
+
tags: string[];
|
64
|
+
} | null | undefined;
|
65
|
+
depositUrl?: string | undefined;
|
66
|
+
explorerAddress?: string | undefined;
|
67
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
68
|
+
aprRecord?: {
|
69
|
+
timestamp: string | bigint;
|
70
|
+
cumulated: number;
|
71
|
+
breakdowns: {
|
72
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
73
|
+
value: number;
|
74
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
75
|
+
identifier: string;
|
76
|
+
}[];
|
77
|
+
} | undefined;
|
78
|
+
tvlRecord?: {
|
79
|
+
timestamp: string | bigint;
|
80
|
+
total: number;
|
81
|
+
breakdowns: {
|
82
|
+
value: number;
|
83
|
+
type: "TOKEN" | "PROTOCOL";
|
84
|
+
identifier: string;
|
85
|
+
}[];
|
86
|
+
} | undefined;
|
87
|
+
rewardsRecord?: {
|
88
|
+
timestamp: string | bigint;
|
89
|
+
total: number;
|
90
|
+
breakdowns: {
|
91
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
92
|
+
token: {
|
93
|
+
price?: number | null | undefined;
|
94
|
+
symbol: string;
|
95
|
+
name: string | null;
|
96
|
+
decimals: number;
|
97
|
+
address: string;
|
98
|
+
id: string;
|
99
|
+
chainId: number;
|
100
|
+
icon: string;
|
101
|
+
isNative: boolean;
|
102
|
+
isPoint: boolean;
|
103
|
+
isPreTGE: boolean;
|
104
|
+
isTest: boolean;
|
105
|
+
verified: boolean;
|
106
|
+
};
|
107
|
+
campaignId: string;
|
108
|
+
value: number;
|
109
|
+
amount: string | bigint;
|
110
|
+
}[];
|
111
|
+
} | undefined;
|
55
112
|
name: string;
|
113
|
+
apr: number;
|
114
|
+
tokens: {
|
115
|
+
price?: number | null | undefined;
|
116
|
+
symbol: string;
|
117
|
+
name: string | null;
|
118
|
+
decimals: number;
|
119
|
+
address: string;
|
120
|
+
id: string;
|
121
|
+
chainId: number;
|
122
|
+
icon: string;
|
123
|
+
isNative: boolean;
|
124
|
+
isPoint: boolean;
|
125
|
+
isPreTGE: boolean;
|
126
|
+
isTest: boolean;
|
127
|
+
verified: boolean;
|
128
|
+
}[];
|
129
|
+
tvl: number;
|
56
130
|
description: string;
|
57
131
|
id: string;
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
cumulated: number;
|
68
|
-
breakdowns: {
|
69
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
70
|
-
value: number;
|
71
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
72
|
-
identifier: string;
|
73
|
-
}[];
|
74
|
-
} | undefined;
|
75
|
-
tvlRecord?: {
|
76
|
-
timestamp: string | bigint;
|
77
|
-
total: number;
|
78
|
-
breakdowns: {
|
79
|
-
value: number;
|
80
|
-
type: "TOKEN" | "PROTOCOL";
|
81
|
-
identifier: string;
|
82
|
-
}[];
|
83
|
-
} | undefined;
|
84
|
-
rewardsRecord?: {
|
85
|
-
timestamp: string | bigint;
|
86
|
-
total: number;
|
87
|
-
breakdowns: {
|
132
|
+
status: string;
|
133
|
+
chainId: number;
|
134
|
+
campaigns: {
|
135
|
+
description?: string | undefined;
|
136
|
+
creator?: {
|
137
|
+
tags?: string[] | undefined;
|
138
|
+
creatorId?: string | null | undefined;
|
139
|
+
address: string;
|
140
|
+
} | undefined;
|
88
141
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
89
|
-
|
142
|
+
rootCampaignId?: string | undefined;
|
143
|
+
parentCampaignId?: string | undefined;
|
144
|
+
campaignStatus?: {
|
145
|
+
error?: string | undefined;
|
146
|
+
details?: any;
|
147
|
+
campaignId: string;
|
148
|
+
status: string;
|
149
|
+
computedUntil: string | number;
|
150
|
+
processingStarted: string | number;
|
151
|
+
} | undefined;
|
152
|
+
distributionChain?: {
|
153
|
+
explorers?: {
|
154
|
+
chainId: number;
|
155
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
156
|
+
url: string;
|
157
|
+
}[] | undefined;
|
158
|
+
name: string;
|
159
|
+
id: number;
|
160
|
+
icon: string;
|
161
|
+
} | undefined;
|
162
|
+
rewardToken: {
|
90
163
|
price?: number | null | undefined;
|
91
164
|
symbol: string;
|
92
165
|
name: string | null;
|
@@ -102,219 +175,65 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
102
175
|
verified: boolean;
|
103
176
|
};
|
104
177
|
campaignId: string;
|
105
|
-
|
106
|
-
|
178
|
+
id: string;
|
179
|
+
params: any;
|
180
|
+
amount: string;
|
181
|
+
startTimestamp: string | number;
|
182
|
+
type: string;
|
183
|
+
computeChainId: number;
|
184
|
+
distributionChainId: number;
|
185
|
+
endTimestamp: string | number;
|
186
|
+
opportunityId: string;
|
187
|
+
creatorAddress: string;
|
188
|
+
subType: number | null;
|
189
|
+
rewardTokenId: string;
|
190
|
+
createdAt: string;
|
191
|
+
chain: {
|
192
|
+
explorers?: {
|
193
|
+
chainId: number;
|
194
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
195
|
+
url: string;
|
196
|
+
}[] | undefined;
|
197
|
+
name: string;
|
198
|
+
id: number;
|
199
|
+
icon: string;
|
200
|
+
};
|
107
201
|
}[];
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
verified: boolean;
|
125
|
-
}[];
|
126
|
-
tvl: number;
|
127
|
-
description: string;
|
128
|
-
id: string;
|
129
|
-
status: string;
|
130
|
-
chainId: number;
|
131
|
-
action: string;
|
132
|
-
type: string;
|
133
|
-
howToSteps: string[];
|
134
|
-
identifier: string;
|
135
|
-
dailyRewards: number;
|
136
|
-
tags: string[];
|
137
|
-
lastCampaignCreatedAt: string;
|
138
|
-
chain: {
|
139
|
-
explorers?: {
|
140
|
-
chainId: number;
|
141
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
142
|
-
url: string;
|
143
|
-
}[] | undefined;
|
144
|
-
name: string;
|
145
|
-
id: number;
|
146
|
-
icon: string;
|
147
|
-
};
|
148
|
-
} | null)[];
|
149
|
-
422: {
|
150
|
-
type: "validation";
|
151
|
-
on: string;
|
152
|
-
summary?: string;
|
153
|
-
message?: string;
|
154
|
-
found?: unknown;
|
155
|
-
property?: string;
|
156
|
-
expected?: string;
|
157
|
-
};
|
158
|
-
};
|
159
|
-
};
|
160
|
-
};
|
161
|
-
} & {
|
162
|
-
opportunities: {
|
163
|
-
count: {
|
164
|
-
get: {
|
165
|
-
body: unknown;
|
166
|
-
params: {};
|
167
|
-
query: {
|
168
|
-
sort?: string | undefined;
|
169
|
-
name?: string | undefined;
|
170
|
-
tokens?: string | undefined;
|
171
|
-
campaignId?: string | undefined;
|
172
|
-
status?: string | undefined;
|
173
|
-
chainId?: string | undefined;
|
174
|
-
campaigns?: boolean | undefined;
|
175
|
-
items?: number | undefined;
|
176
|
-
point?: boolean | undefined;
|
177
|
-
order?: string | undefined;
|
178
|
-
action?: string | undefined;
|
179
|
-
type?: string | undefined;
|
180
|
-
search?: string | undefined;
|
181
|
-
creatorAddress?: string | undefined;
|
182
|
-
mainProtocolId?: string | undefined;
|
183
|
-
identifier?: string | undefined;
|
184
|
-
tags?: string | undefined;
|
185
|
-
page?: number | undefined;
|
186
|
-
test?: boolean | undefined;
|
187
|
-
excludeSubCampaigns?: boolean | undefined;
|
188
|
-
minimumTvl?: number | undefined;
|
189
|
-
maximumTvl?: number | undefined;
|
190
|
-
minimumApr?: number | undefined;
|
191
|
-
maximumApr?: number | undefined;
|
192
|
-
rewardTokenSymbol?: string | undefined;
|
193
|
-
};
|
194
|
-
headers: unknown;
|
195
|
-
response: {
|
196
|
-
200: number;
|
197
|
-
422: {
|
198
|
-
type: "validation";
|
199
|
-
on: string;
|
200
|
-
summary?: string;
|
201
|
-
message?: string;
|
202
|
-
found?: unknown;
|
203
|
-
property?: string;
|
204
|
-
expected?: string;
|
205
|
-
};
|
206
|
-
};
|
207
|
-
};
|
208
|
-
};
|
209
|
-
};
|
210
|
-
} & {
|
211
|
-
opportunities: {
|
212
|
-
bins: {
|
213
|
-
apr: {
|
214
|
-
get: {
|
215
|
-
body: unknown;
|
216
|
-
params: {};
|
217
|
-
query: {
|
218
|
-
sort?: string | undefined;
|
219
|
-
name?: string | undefined;
|
220
|
-
tokens?: string | undefined;
|
221
|
-
campaignId?: string | undefined;
|
222
|
-
status?: string | undefined;
|
223
|
-
chainId?: string | undefined;
|
224
|
-
campaigns?: boolean | undefined;
|
225
|
-
items?: number | undefined;
|
226
|
-
point?: boolean | undefined;
|
227
|
-
order?: string | undefined;
|
228
|
-
action?: string | undefined;
|
229
|
-
type?: string | undefined;
|
230
|
-
search?: string | undefined;
|
231
|
-
creatorAddress?: string | undefined;
|
232
|
-
mainProtocolId?: string | undefined;
|
233
|
-
identifier?: string | undefined;
|
234
|
-
tags?: string | undefined;
|
235
|
-
page?: number | undefined;
|
236
|
-
test?: boolean | undefined;
|
237
|
-
excludeSubCampaigns?: boolean | undefined;
|
238
|
-
minimumTvl?: number | undefined;
|
239
|
-
maximumTvl?: number | undefined;
|
240
|
-
minimumApr?: number | undefined;
|
241
|
-
maximumApr?: number | undefined;
|
242
|
-
rewardTokenSymbol?: string | undefined;
|
243
|
-
};
|
244
|
-
headers: unknown;
|
245
|
-
response: {
|
246
|
-
200: {
|
247
|
-
min: number;
|
248
|
-
max: number;
|
249
|
-
overThreshold: number;
|
250
|
-
binWidth: number;
|
251
|
-
bins: any[];
|
252
|
-
};
|
253
|
-
422: {
|
254
|
-
type: "validation";
|
255
|
-
on: string;
|
256
|
-
summary?: string;
|
257
|
-
message?: string;
|
258
|
-
found?: unknown;
|
259
|
-
property?: string;
|
260
|
-
expected?: string;
|
261
|
-
};
|
262
|
-
};
|
263
|
-
};
|
264
|
-
};
|
265
|
-
};
|
266
|
-
};
|
267
|
-
} & {
|
268
|
-
opportunities: {
|
269
|
-
bins: {
|
270
|
-
tvl: {
|
271
|
-
get: {
|
272
|
-
body: unknown;
|
273
|
-
params: {};
|
274
|
-
query: {
|
275
|
-
sort?: string | undefined;
|
276
|
-
name?: string | undefined;
|
277
|
-
tokens?: string | undefined;
|
278
|
-
campaignId?: string | undefined;
|
279
|
-
status?: string | undefined;
|
280
|
-
chainId?: string | undefined;
|
281
|
-
campaigns?: boolean | undefined;
|
282
|
-
items?: number | undefined;
|
283
|
-
point?: boolean | undefined;
|
284
|
-
order?: string | undefined;
|
285
|
-
action?: string | undefined;
|
286
|
-
type?: string | undefined;
|
287
|
-
search?: string | undefined;
|
288
|
-
creatorAddress?: string | undefined;
|
289
|
-
mainProtocolId?: string | undefined;
|
290
|
-
identifier?: string | undefined;
|
291
|
-
tags?: string | undefined;
|
292
|
-
page?: number | undefined;
|
293
|
-
test?: boolean | undefined;
|
294
|
-
excludeSubCampaigns?: boolean | undefined;
|
295
|
-
minimumTvl?: number | undefined;
|
296
|
-
maximumTvl?: number | undefined;
|
297
|
-
minimumApr?: number | undefined;
|
298
|
-
maximumApr?: number | undefined;
|
299
|
-
rewardTokenSymbol?: string | undefined;
|
300
|
-
};
|
301
|
-
headers: unknown;
|
302
|
-
response: {
|
303
|
-
200: {
|
304
|
-
min: number;
|
305
|
-
max: number;
|
306
|
-
binWidth: number;
|
307
|
-
bins: any[];
|
308
|
-
};
|
309
|
-
422: {
|
310
|
-
type: "validation";
|
311
|
-
on: string;
|
312
|
-
summary?: string;
|
313
|
-
message?: string;
|
314
|
-
found?: unknown;
|
315
|
-
property?: string;
|
316
|
-
expected?: string;
|
202
|
+
action: string;
|
203
|
+
type: string;
|
204
|
+
howToSteps: string[];
|
205
|
+
identifier: string;
|
206
|
+
dailyRewards: number;
|
207
|
+
tags: string[];
|
208
|
+
lastCampaignCreatedAt: string;
|
209
|
+
chain: {
|
210
|
+
explorers?: {
|
211
|
+
chainId: number;
|
212
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
213
|
+
url: string;
|
214
|
+
}[] | undefined;
|
215
|
+
name: string;
|
216
|
+
id: number;
|
217
|
+
icon: string;
|
317
218
|
};
|
219
|
+
}[];
|
220
|
+
readonly 500: {
|
221
|
+
info: string;
|
222
|
+
code: string;
|
223
|
+
httpCode: number;
|
224
|
+
};
|
225
|
+
readonly 404: {
|
226
|
+
name: string;
|
227
|
+
message: string;
|
228
|
+
};
|
229
|
+
422: {
|
230
|
+
type: "validation";
|
231
|
+
on: string;
|
232
|
+
summary?: string;
|
233
|
+
message?: string;
|
234
|
+
found?: unknown;
|
235
|
+
property?: string;
|
236
|
+
expected?: string;
|
318
237
|
};
|
319
238
|
};
|
320
239
|
};
|
@@ -459,81 +378,131 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
459
378
|
};
|
460
379
|
} & {
|
461
380
|
opportunities: {
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
381
|
+
":id": {
|
382
|
+
campaigns: {
|
383
|
+
get: {
|
384
|
+
body: unknown;
|
385
|
+
params: {
|
386
|
+
id: string;
|
387
|
+
};
|
388
|
+
query: {
|
389
|
+
campaigns?: boolean | undefined;
|
390
|
+
point?: boolean | undefined;
|
391
|
+
test?: boolean | undefined;
|
392
|
+
excludeSubCampaigns?: boolean | undefined;
|
393
|
+
};
|
394
|
+
headers: unknown;
|
395
|
+
response: {
|
396
|
+
200: {
|
397
|
+
protocol?: {
|
398
|
+
dailyRewards?: number | undefined;
|
399
|
+
numberOfLiveCampaigns?: number | undefined;
|
400
|
+
opportunityLiveTags?: string[] | undefined;
|
401
|
+
name: string;
|
402
|
+
description: string;
|
403
|
+
id: string;
|
404
|
+
url: string;
|
405
|
+
icon: string;
|
406
|
+
tags: string[];
|
407
|
+
} | null | undefined;
|
408
|
+
depositUrl?: string | undefined;
|
409
|
+
explorerAddress?: string | undefined;
|
410
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
411
|
+
aprRecord?: {
|
412
|
+
timestamp: string | bigint;
|
413
|
+
cumulated: number;
|
414
|
+
breakdowns: {
|
415
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
416
|
+
value: number;
|
417
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
418
|
+
identifier: string;
|
419
|
+
}[];
|
420
|
+
} | undefined;
|
421
|
+
tvlRecord?: {
|
422
|
+
timestamp: string | bigint;
|
423
|
+
total: number;
|
424
|
+
breakdowns: {
|
425
|
+
value: number;
|
426
|
+
type: "TOKEN" | "PROTOCOL";
|
427
|
+
identifier: string;
|
428
|
+
}[];
|
429
|
+
} | undefined;
|
430
|
+
rewardsRecord?: {
|
431
|
+
timestamp: string | bigint;
|
432
|
+
total: number;
|
433
|
+
breakdowns: {
|
434
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
435
|
+
token: {
|
436
|
+
price?: number | null | undefined;
|
437
|
+
symbol: string;
|
438
|
+
name: string | null;
|
439
|
+
decimals: number;
|
440
|
+
address: string;
|
441
|
+
id: string;
|
442
|
+
chainId: number;
|
443
|
+
icon: string;
|
444
|
+
isNative: boolean;
|
445
|
+
isPoint: boolean;
|
446
|
+
isPreTGE: boolean;
|
447
|
+
isTest: boolean;
|
448
|
+
verified: boolean;
|
449
|
+
};
|
450
|
+
campaignId: string;
|
451
|
+
value: number;
|
452
|
+
amount: string | bigint;
|
453
|
+
}[];
|
454
|
+
} | undefined;
|
502
455
|
name: string;
|
456
|
+
apr: number;
|
457
|
+
tokens: {
|
458
|
+
price?: number | null | undefined;
|
459
|
+
symbol: string;
|
460
|
+
name: string | null;
|
461
|
+
decimals: number;
|
462
|
+
address: string;
|
463
|
+
id: string;
|
464
|
+
chainId: number;
|
465
|
+
icon: string;
|
466
|
+
isNative: boolean;
|
467
|
+
isPoint: boolean;
|
468
|
+
isPreTGE: boolean;
|
469
|
+
isTest: boolean;
|
470
|
+
verified: boolean;
|
471
|
+
}[];
|
472
|
+
tvl: number;
|
503
473
|
description: string;
|
504
474
|
id: string;
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
cumulated: number;
|
515
|
-
breakdowns: {
|
516
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
517
|
-
value: number;
|
518
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
519
|
-
identifier: string;
|
520
|
-
}[];
|
521
|
-
} | undefined;
|
522
|
-
tvlRecord?: {
|
523
|
-
timestamp: string | bigint;
|
524
|
-
total: number;
|
525
|
-
breakdowns: {
|
526
|
-
value: number;
|
527
|
-
type: "TOKEN" | "PROTOCOL";
|
528
|
-
identifier: string;
|
529
|
-
}[];
|
530
|
-
} | undefined;
|
531
|
-
rewardsRecord?: {
|
532
|
-
timestamp: string | bigint;
|
533
|
-
total: number;
|
534
|
-
breakdowns: {
|
475
|
+
status: string;
|
476
|
+
chainId: number;
|
477
|
+
campaigns: {
|
478
|
+
description?: string | undefined;
|
479
|
+
creator?: {
|
480
|
+
tags?: string[] | undefined;
|
481
|
+
creatorId?: string | null | undefined;
|
482
|
+
address: string;
|
483
|
+
} | undefined;
|
535
484
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
536
|
-
|
485
|
+
rootCampaignId?: string | undefined;
|
486
|
+
parentCampaignId?: string | undefined;
|
487
|
+
campaignStatus?: {
|
488
|
+
error?: string | undefined;
|
489
|
+
details?: any;
|
490
|
+
campaignId: string;
|
491
|
+
status: string;
|
492
|
+
computedUntil: string | number;
|
493
|
+
processingStarted: string | number;
|
494
|
+
} | undefined;
|
495
|
+
distributionChain?: {
|
496
|
+
explorers?: {
|
497
|
+
chainId: number;
|
498
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
499
|
+
url: string;
|
500
|
+
}[] | undefined;
|
501
|
+
name: string;
|
502
|
+
id: number;
|
503
|
+
icon: string;
|
504
|
+
} | undefined;
|
505
|
+
rewardToken: {
|
537
506
|
price?: number | null | undefined;
|
538
507
|
symbol: string;
|
539
508
|
name: string | null;
|
@@ -549,51 +518,38 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
549
518
|
verified: boolean;
|
550
519
|
};
|
551
520
|
campaignId: string;
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
} | undefined;
|
585
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
586
|
-
rootCampaignId?: string | undefined;
|
587
|
-
parentCampaignId?: string | undefined;
|
588
|
-
campaignStatus?: {
|
589
|
-
error?: string | undefined;
|
590
|
-
details?: any;
|
591
|
-
campaignId: string;
|
592
|
-
status: string;
|
593
|
-
computedUntil: string | number;
|
594
|
-
processingStarted: string | number;
|
595
|
-
} | undefined;
|
596
|
-
distributionChain?: {
|
521
|
+
id: string;
|
522
|
+
params: any;
|
523
|
+
amount: string;
|
524
|
+
startTimestamp: string | number;
|
525
|
+
type: string;
|
526
|
+
computeChainId: number;
|
527
|
+
distributionChainId: number;
|
528
|
+
endTimestamp: string | number;
|
529
|
+
opportunityId: string;
|
530
|
+
creatorAddress: string;
|
531
|
+
subType: number | null;
|
532
|
+
rewardTokenId: string;
|
533
|
+
createdAt: string;
|
534
|
+
chain: {
|
535
|
+
explorers?: {
|
536
|
+
chainId: number;
|
537
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
538
|
+
url: string;
|
539
|
+
}[] | undefined;
|
540
|
+
name: string;
|
541
|
+
id: number;
|
542
|
+
icon: string;
|
543
|
+
};
|
544
|
+
}[];
|
545
|
+
action: string;
|
546
|
+
type: string;
|
547
|
+
howToSteps: string[];
|
548
|
+
identifier: string;
|
549
|
+
dailyRewards: number;
|
550
|
+
tags: string[];
|
551
|
+
lastCampaignCreatedAt: string;
|
552
|
+
chain: {
|
597
553
|
explorers?: {
|
598
554
|
chainId: number;
|
599
555
|
type: "ETHERSCAN" | "BLOCKSCOUT";
|
@@ -602,8 +558,105 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
602
558
|
name: string;
|
603
559
|
id: number;
|
604
560
|
icon: string;
|
605
|
-
}
|
606
|
-
|
561
|
+
};
|
562
|
+
};
|
563
|
+
readonly 500: {
|
564
|
+
info: string;
|
565
|
+
code: string;
|
566
|
+
httpCode: number;
|
567
|
+
};
|
568
|
+
readonly 404: {
|
569
|
+
name: string;
|
570
|
+
message: string;
|
571
|
+
};
|
572
|
+
422: {
|
573
|
+
type: "validation";
|
574
|
+
on: string;
|
575
|
+
summary?: string;
|
576
|
+
message?: string;
|
577
|
+
found?: unknown;
|
578
|
+
property?: string;
|
579
|
+
expected?: string;
|
580
|
+
};
|
581
|
+
};
|
582
|
+
};
|
583
|
+
};
|
584
|
+
};
|
585
|
+
};
|
586
|
+
} & {
|
587
|
+
opportunities: {
|
588
|
+
get: {
|
589
|
+
body: unknown;
|
590
|
+
params: {};
|
591
|
+
query: {
|
592
|
+
sort?: string | undefined;
|
593
|
+
name?: string | undefined;
|
594
|
+
tokens?: string | undefined;
|
595
|
+
campaignId?: string | undefined;
|
596
|
+
status?: string | undefined;
|
597
|
+
chainId?: string | undefined;
|
598
|
+
campaigns?: boolean | undefined;
|
599
|
+
point?: boolean | undefined;
|
600
|
+
order?: string | undefined;
|
601
|
+
action?: string | undefined;
|
602
|
+
type?: string | undefined;
|
603
|
+
search?: string | undefined;
|
604
|
+
creatorAddress?: string | undefined;
|
605
|
+
mainProtocolId?: string | undefined;
|
606
|
+
identifier?: string | undefined;
|
607
|
+
tags?: string | undefined;
|
608
|
+
test?: boolean | undefined;
|
609
|
+
excludeSubCampaigns?: boolean | undefined;
|
610
|
+
minimumTvl?: number | undefined;
|
611
|
+
maximumTvl?: number | undefined;
|
612
|
+
minimumApr?: number | undefined;
|
613
|
+
maximumApr?: number | undefined;
|
614
|
+
rewardTokenSymbol?: string | undefined;
|
615
|
+
items: number;
|
616
|
+
page: number;
|
617
|
+
};
|
618
|
+
headers: unknown;
|
619
|
+
response: {
|
620
|
+
200: ({
|
621
|
+
protocol?: {
|
622
|
+
dailyRewards?: number | undefined;
|
623
|
+
numberOfLiveCampaigns?: number | undefined;
|
624
|
+
opportunityLiveTags?: string[] | undefined;
|
625
|
+
name: string;
|
626
|
+
description: string;
|
627
|
+
id: string;
|
628
|
+
url: string;
|
629
|
+
icon: string;
|
630
|
+
tags: string[];
|
631
|
+
} | null | undefined;
|
632
|
+
depositUrl?: string | undefined;
|
633
|
+
explorerAddress?: string | undefined;
|
634
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
635
|
+
aprRecord?: {
|
636
|
+
timestamp: string | bigint;
|
637
|
+
cumulated: number;
|
638
|
+
breakdowns: {
|
639
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
640
|
+
value: number;
|
641
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
642
|
+
identifier: string;
|
643
|
+
}[];
|
644
|
+
} | undefined;
|
645
|
+
tvlRecord?: {
|
646
|
+
timestamp: string | bigint;
|
647
|
+
total: number;
|
648
|
+
breakdowns: {
|
649
|
+
value: number;
|
650
|
+
type: "TOKEN" | "PROTOCOL";
|
651
|
+
identifier: string;
|
652
|
+
}[];
|
653
|
+
} | undefined;
|
654
|
+
rewardsRecord?: {
|
655
|
+
timestamp: string | bigint;
|
656
|
+
total: number;
|
657
|
+
breakdowns: {
|
658
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
659
|
+
token: {
|
607
660
|
price?: number | null | undefined;
|
608
661
|
symbol: string;
|
609
662
|
name: string | null;
|
@@ -619,57 +672,98 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
619
672
|
verified: boolean;
|
620
673
|
};
|
621
674
|
campaignId: string;
|
622
|
-
|
623
|
-
|
624
|
-
amount: string;
|
625
|
-
startTimestamp: string | number;
|
626
|
-
type: string;
|
627
|
-
computeChainId: number;
|
628
|
-
distributionChainId: number;
|
629
|
-
endTimestamp: string | number;
|
630
|
-
opportunityId: string;
|
631
|
-
creatorAddress: string;
|
632
|
-
subType: number | null;
|
633
|
-
rewardTokenId: string;
|
634
|
-
createdAt: string;
|
635
|
-
chain: {
|
636
|
-
explorers?: {
|
637
|
-
chainId: number;
|
638
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
639
|
-
url: string;
|
640
|
-
}[] | undefined;
|
641
|
-
name: string;
|
642
|
-
id: number;
|
643
|
-
icon: string;
|
644
|
-
};
|
675
|
+
value: number;
|
676
|
+
amount: string | bigint;
|
645
677
|
}[];
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
678
|
+
} | undefined;
|
679
|
+
name: string;
|
680
|
+
apr: number;
|
681
|
+
tokens: {
|
682
|
+
price?: number | null | undefined;
|
683
|
+
symbol: string;
|
684
|
+
name: string | null;
|
685
|
+
decimals: number;
|
686
|
+
address: string;
|
687
|
+
id: string;
|
688
|
+
chainId: number;
|
689
|
+
icon: string;
|
690
|
+
isNative: boolean;
|
691
|
+
isPoint: boolean;
|
692
|
+
isPreTGE: boolean;
|
693
|
+
isTest: boolean;
|
694
|
+
verified: boolean;
|
663
695
|
}[];
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
696
|
+
tvl: number;
|
697
|
+
description: string;
|
698
|
+
id: string;
|
699
|
+
status: string;
|
700
|
+
chainId: number;
|
701
|
+
action: string;
|
702
|
+
type: string;
|
703
|
+
howToSteps: string[];
|
704
|
+
identifier: string;
|
705
|
+
dailyRewards: number;
|
706
|
+
tags: string[];
|
707
|
+
lastCampaignCreatedAt: string;
|
708
|
+
chain: {
|
709
|
+
explorers?: {
|
710
|
+
chainId: number;
|
711
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
712
|
+
url: string;
|
713
|
+
}[] | undefined;
|
670
714
|
name: string;
|
671
|
-
|
715
|
+
id: number;
|
716
|
+
icon: string;
|
672
717
|
};
|
718
|
+
} | null)[];
|
719
|
+
422: {
|
720
|
+
type: "validation";
|
721
|
+
on: string;
|
722
|
+
summary?: string;
|
723
|
+
message?: string;
|
724
|
+
found?: unknown;
|
725
|
+
property?: string;
|
726
|
+
expected?: string;
|
727
|
+
};
|
728
|
+
};
|
729
|
+
};
|
730
|
+
};
|
731
|
+
} & {
|
732
|
+
opportunities: {
|
733
|
+
count: {
|
734
|
+
get: {
|
735
|
+
body: unknown;
|
736
|
+
params: {};
|
737
|
+
query: {
|
738
|
+
sort?: string | undefined;
|
739
|
+
name?: string | undefined;
|
740
|
+
tokens?: string | undefined;
|
741
|
+
campaignId?: string | undefined;
|
742
|
+
status?: string | undefined;
|
743
|
+
chainId?: string | undefined;
|
744
|
+
campaigns?: boolean | undefined;
|
745
|
+
point?: boolean | undefined;
|
746
|
+
order?: string | undefined;
|
747
|
+
action?: string | undefined;
|
748
|
+
type?: string | undefined;
|
749
|
+
search?: string | undefined;
|
750
|
+
creatorAddress?: string | undefined;
|
751
|
+
mainProtocolId?: string | undefined;
|
752
|
+
identifier?: string | undefined;
|
753
|
+
tags?: string | undefined;
|
754
|
+
test?: boolean | undefined;
|
755
|
+
excludeSubCampaigns?: boolean | undefined;
|
756
|
+
minimumTvl?: number | undefined;
|
757
|
+
maximumTvl?: number | undefined;
|
758
|
+
minimumApr?: number | undefined;
|
759
|
+
maximumApr?: number | undefined;
|
760
|
+
rewardTokenSymbol?: string | undefined;
|
761
|
+
items: number;
|
762
|
+
page: number;
|
763
|
+
};
|
764
|
+
headers: unknown;
|
765
|
+
response: {
|
766
|
+
200: number;
|
673
767
|
422: {
|
674
768
|
type: "validation";
|
675
769
|
on: string;
|
@@ -685,196 +779,102 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
685
779
|
};
|
686
780
|
} & {
|
687
781
|
opportunities: {
|
688
|
-
|
689
|
-
|
782
|
+
bins: {
|
783
|
+
apr: {
|
690
784
|
get: {
|
691
785
|
body: unknown;
|
692
|
-
params: {
|
693
|
-
id: string;
|
694
|
-
};
|
786
|
+
params: {};
|
695
787
|
query: {
|
788
|
+
sort?: string | undefined;
|
789
|
+
name?: string | undefined;
|
790
|
+
tokens?: string | undefined;
|
791
|
+
campaignId?: string | undefined;
|
792
|
+
status?: string | undefined;
|
793
|
+
chainId?: string | undefined;
|
696
794
|
campaigns?: boolean | undefined;
|
697
795
|
point?: boolean | undefined;
|
796
|
+
order?: string | undefined;
|
797
|
+
action?: string | undefined;
|
798
|
+
type?: string | undefined;
|
799
|
+
search?: string | undefined;
|
800
|
+
creatorAddress?: string | undefined;
|
801
|
+
mainProtocolId?: string | undefined;
|
802
|
+
identifier?: string | undefined;
|
803
|
+
tags?: string | undefined;
|
698
804
|
test?: boolean | undefined;
|
699
805
|
excludeSubCampaigns?: boolean | undefined;
|
806
|
+
minimumTvl?: number | undefined;
|
807
|
+
maximumTvl?: number | undefined;
|
808
|
+
minimumApr?: number | undefined;
|
809
|
+
maximumApr?: number | undefined;
|
810
|
+
rewardTokenSymbol?: string | undefined;
|
811
|
+
items: number;
|
812
|
+
page: number;
|
700
813
|
};
|
701
814
|
headers: unknown;
|
702
815
|
response: {
|
703
816
|
200: {
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
description: string;
|
710
|
-
id: string;
|
711
|
-
url: string;
|
712
|
-
icon: string;
|
713
|
-
tags: string[];
|
714
|
-
} | null | undefined;
|
715
|
-
depositUrl?: string | undefined;
|
716
|
-
explorerAddress?: string | undefined;
|
717
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
718
|
-
aprRecord?: {
|
719
|
-
timestamp: string | bigint;
|
720
|
-
cumulated: number;
|
721
|
-
breakdowns: {
|
722
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
723
|
-
value: number;
|
724
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
725
|
-
identifier: string;
|
726
|
-
}[];
|
727
|
-
} | undefined;
|
728
|
-
tvlRecord?: {
|
729
|
-
timestamp: string | bigint;
|
730
|
-
total: number;
|
731
|
-
breakdowns: {
|
732
|
-
value: number;
|
733
|
-
type: "TOKEN" | "PROTOCOL";
|
734
|
-
identifier: string;
|
735
|
-
}[];
|
736
|
-
} | undefined;
|
737
|
-
rewardsRecord?: {
|
738
|
-
timestamp: string | bigint;
|
739
|
-
total: number;
|
740
|
-
breakdowns: {
|
741
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
742
|
-
token: {
|
743
|
-
price?: number | null | undefined;
|
744
|
-
symbol: string;
|
745
|
-
name: string | null;
|
746
|
-
decimals: number;
|
747
|
-
address: string;
|
748
|
-
id: string;
|
749
|
-
chainId: number;
|
750
|
-
icon: string;
|
751
|
-
isNative: boolean;
|
752
|
-
isPoint: boolean;
|
753
|
-
isPreTGE: boolean;
|
754
|
-
isTest: boolean;
|
755
|
-
verified: boolean;
|
756
|
-
};
|
757
|
-
campaignId: string;
|
758
|
-
value: number;
|
759
|
-
amount: string | bigint;
|
760
|
-
}[];
|
761
|
-
} | undefined;
|
762
|
-
name: string;
|
763
|
-
apr: number;
|
764
|
-
tokens: {
|
765
|
-
price?: number | null | undefined;
|
766
|
-
symbol: string;
|
767
|
-
name: string | null;
|
768
|
-
decimals: number;
|
769
|
-
address: string;
|
770
|
-
id: string;
|
771
|
-
chainId: number;
|
772
|
-
icon: string;
|
773
|
-
isNative: boolean;
|
774
|
-
isPoint: boolean;
|
775
|
-
isPreTGE: boolean;
|
776
|
-
isTest: boolean;
|
777
|
-
verified: boolean;
|
778
|
-
}[];
|
779
|
-
tvl: number;
|
780
|
-
description: string;
|
781
|
-
id: string;
|
782
|
-
status: string;
|
783
|
-
chainId: number;
|
784
|
-
campaigns: {
|
785
|
-
description?: string | undefined;
|
786
|
-
creator?: {
|
787
|
-
tags?: string[] | undefined;
|
788
|
-
creatorId?: string | null | undefined;
|
789
|
-
address: string;
|
790
|
-
} | undefined;
|
791
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
792
|
-
rootCampaignId?: string | undefined;
|
793
|
-
parentCampaignId?: string | undefined;
|
794
|
-
campaignStatus?: {
|
795
|
-
error?: string | undefined;
|
796
|
-
details?: any;
|
797
|
-
campaignId: string;
|
798
|
-
status: string;
|
799
|
-
computedUntil: string | number;
|
800
|
-
processingStarted: string | number;
|
801
|
-
} | undefined;
|
802
|
-
distributionChain?: {
|
803
|
-
explorers?: {
|
804
|
-
chainId: number;
|
805
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
806
|
-
url: string;
|
807
|
-
}[] | undefined;
|
808
|
-
name: string;
|
809
|
-
id: number;
|
810
|
-
icon: string;
|
811
|
-
} | undefined;
|
812
|
-
rewardToken: {
|
813
|
-
price?: number | null | undefined;
|
814
|
-
symbol: string;
|
815
|
-
name: string | null;
|
816
|
-
decimals: number;
|
817
|
-
address: string;
|
818
|
-
id: string;
|
819
|
-
chainId: number;
|
820
|
-
icon: string;
|
821
|
-
isNative: boolean;
|
822
|
-
isPoint: boolean;
|
823
|
-
isPreTGE: boolean;
|
824
|
-
isTest: boolean;
|
825
|
-
verified: boolean;
|
826
|
-
};
|
827
|
-
campaignId: string;
|
828
|
-
id: string;
|
829
|
-
params: any;
|
830
|
-
amount: string;
|
831
|
-
startTimestamp: string | number;
|
832
|
-
type: string;
|
833
|
-
computeChainId: number;
|
834
|
-
distributionChainId: number;
|
835
|
-
endTimestamp: string | number;
|
836
|
-
opportunityId: string;
|
837
|
-
creatorAddress: string;
|
838
|
-
subType: number | null;
|
839
|
-
rewardTokenId: string;
|
840
|
-
createdAt: string;
|
841
|
-
chain: {
|
842
|
-
explorers?: {
|
843
|
-
chainId: number;
|
844
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
845
|
-
url: string;
|
846
|
-
}[] | undefined;
|
847
|
-
name: string;
|
848
|
-
id: number;
|
849
|
-
icon: string;
|
850
|
-
};
|
851
|
-
}[];
|
852
|
-
action: string;
|
853
|
-
type: string;
|
854
|
-
howToSteps: string[];
|
855
|
-
identifier: string;
|
856
|
-
dailyRewards: number;
|
857
|
-
tags: string[];
|
858
|
-
lastCampaignCreatedAt: string;
|
859
|
-
chain: {
|
860
|
-
explorers?: {
|
861
|
-
chainId: number;
|
862
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
863
|
-
url: string;
|
864
|
-
}[] | undefined;
|
865
|
-
name: string;
|
866
|
-
id: number;
|
867
|
-
icon: string;
|
868
|
-
};
|
817
|
+
min: number;
|
818
|
+
max: number;
|
819
|
+
overThreshold: number;
|
820
|
+
binWidth: number;
|
821
|
+
bins: any[];
|
869
822
|
};
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
823
|
+
422: {
|
824
|
+
type: "validation";
|
825
|
+
on: string;
|
826
|
+
summary?: string;
|
827
|
+
message?: string;
|
828
|
+
found?: unknown;
|
829
|
+
property?: string;
|
830
|
+
expected?: string;
|
874
831
|
};
|
875
|
-
|
876
|
-
|
877
|
-
|
832
|
+
};
|
833
|
+
};
|
834
|
+
};
|
835
|
+
};
|
836
|
+
};
|
837
|
+
} & {
|
838
|
+
opportunities: {
|
839
|
+
bins: {
|
840
|
+
tvl: {
|
841
|
+
get: {
|
842
|
+
body: unknown;
|
843
|
+
params: {};
|
844
|
+
query: {
|
845
|
+
sort?: string | undefined;
|
846
|
+
name?: string | undefined;
|
847
|
+
tokens?: string | undefined;
|
848
|
+
campaignId?: string | undefined;
|
849
|
+
status?: string | undefined;
|
850
|
+
chainId?: string | undefined;
|
851
|
+
campaigns?: boolean | undefined;
|
852
|
+
point?: boolean | undefined;
|
853
|
+
order?: string | undefined;
|
854
|
+
action?: string | undefined;
|
855
|
+
type?: string | undefined;
|
856
|
+
search?: string | undefined;
|
857
|
+
creatorAddress?: string | undefined;
|
858
|
+
mainProtocolId?: string | undefined;
|
859
|
+
identifier?: string | undefined;
|
860
|
+
tags?: string | undefined;
|
861
|
+
test?: boolean | undefined;
|
862
|
+
excludeSubCampaigns?: boolean | undefined;
|
863
|
+
minimumTvl?: number | undefined;
|
864
|
+
maximumTvl?: number | undefined;
|
865
|
+
minimumApr?: number | undefined;
|
866
|
+
maximumApr?: number | undefined;
|
867
|
+
rewardTokenSymbol?: string | undefined;
|
868
|
+
items: number;
|
869
|
+
page: number;
|
870
|
+
};
|
871
|
+
headers: unknown;
|
872
|
+
response: {
|
873
|
+
200: {
|
874
|
+
min: number;
|
875
|
+
max: number;
|
876
|
+
binWidth: number;
|
877
|
+
bins: any[];
|
878
878
|
};
|
879
879
|
422: {
|
880
880
|
type: "validation";
|
@@ -907,7 +907,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
907
907
|
status?: string | undefined;
|
908
908
|
chainId?: string | undefined;
|
909
909
|
campaigns?: boolean | undefined;
|
910
|
-
items?: number | undefined;
|
911
910
|
point?: boolean | undefined;
|
912
911
|
order?: string | undefined;
|
913
912
|
action?: string | undefined;
|
@@ -917,7 +916,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
917
916
|
mainProtocolId?: string | undefined;
|
918
917
|
identifier?: string | undefined;
|
919
918
|
tags?: string | undefined;
|
920
|
-
page?: number | undefined;
|
921
919
|
test?: boolean | undefined;
|
922
920
|
excludeSubCampaigns?: boolean | undefined;
|
923
921
|
minimumTvl?: number | undefined;
|
@@ -925,6 +923,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
925
923
|
minimumApr?: number | undefined;
|
926
924
|
maximumApr?: number | undefined;
|
927
925
|
rewardTokenSymbol?: string | undefined;
|
926
|
+
items: number;
|
927
|
+
page: number;
|
928
928
|
};
|
929
929
|
headers: unknown;
|
930
930
|
response: {
|
@@ -963,7 +963,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
963
963
|
status?: string | undefined;
|
964
964
|
chainId?: string | undefined;
|
965
965
|
campaigns?: boolean | undefined;
|
966
|
-
items?: number | undefined;
|
967
966
|
point?: boolean | undefined;
|
968
967
|
order?: string | undefined;
|
969
968
|
action?: string | undefined;
|
@@ -973,7 +972,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
973
972
|
mainProtocolId?: string | undefined;
|
974
973
|
identifier?: string | undefined;
|
975
974
|
tags?: string | undefined;
|
976
|
-
page?: number | undefined;
|
977
975
|
test?: boolean | undefined;
|
978
976
|
excludeSubCampaigns?: boolean | undefined;
|
979
977
|
minimumTvl?: number | undefined;
|
@@ -981,6 +979,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
981
979
|
minimumApr?: number | undefined;
|
982
980
|
maximumApr?: number | undefined;
|
983
981
|
rewardTokenSymbol?: string | undefined;
|
982
|
+
items: number;
|
983
|
+
page: number;
|
984
984
|
};
|
985
985
|
headers: unknown;
|
986
986
|
response: {
|
@@ -1020,7 +1020,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1020
1020
|
status?: string | undefined;
|
1021
1021
|
chainId?: string | undefined;
|
1022
1022
|
campaigns?: boolean | undefined;
|
1023
|
-
items?: number | undefined;
|
1024
1023
|
point?: boolean | undefined;
|
1025
1024
|
order?: string | undefined;
|
1026
1025
|
action?: string | undefined;
|
@@ -1030,7 +1029,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1030
1029
|
mainProtocolId?: string | undefined;
|
1031
1030
|
identifier?: string | undefined;
|
1032
1031
|
tags?: string | undefined;
|
1033
|
-
page?: number | undefined;
|
1034
1032
|
test?: boolean | undefined;
|
1035
1033
|
excludeSubCampaigns?: boolean | undefined;
|
1036
1034
|
minimumTvl?: number | undefined;
|
@@ -1038,6 +1036,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1038
1036
|
minimumApr?: number | undefined;
|
1039
1037
|
maximumApr?: number | undefined;
|
1040
1038
|
rewardTokenSymbol?: string | undefined;
|
1039
|
+
items: number;
|
1040
|
+
page: number;
|
1041
1041
|
};
|
1042
1042
|
headers: unknown;
|
1043
1043
|
response: {
|