@merkl/api 0.21.19 → 0.21.20
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 +1437 -1415
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js +1 -18
- package/dist/src/engine/implementations/Clamm/metadata.js +1 -0
- package/dist/src/index.d.ts +968 -960
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +8 -1
- 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 +18 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +15 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -1
- package/dist/src/modules/v4/campaign/campaign.service.js +9 -4
- package/dist/src/modules/v4/creator/creator.controller.d.ts +3 -2
- package/dist/src/modules/v4/creator/creator.service.d.ts +3 -2
- package/dist/src/modules/v4/creator/creator.service.js +9 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +2 -10
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +970 -960
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +32 -46
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +10 -1
- package/dist/src/modules/v4/protocol/protocol.controller.js +4 -15
- package/dist/src/modules/v4/router.d.ts +968 -960
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -29,34 +29,173 @@ export declare const v4: Elysia<"/v4", false, {
|
|
29
29
|
v4: {
|
30
30
|
opportunities: {
|
31
31
|
index: {
|
32
|
-
|
33
|
-
body:
|
34
|
-
name?: string | undefined;
|
35
|
-
description?: string | undefined;
|
36
|
-
tags?: string[] | undefined;
|
37
|
-
howToSteps?: string[] | undefined;
|
38
|
-
depositUrl?: string | undefined;
|
39
|
-
explorerAddress?: string | undefined;
|
40
|
-
protocols?: string[] | undefined;
|
41
|
-
mainProtocol?: string | undefined;
|
42
|
-
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
43
|
-
type: string;
|
44
|
-
tokens: {
|
45
|
-
address: string;
|
46
|
-
chainId: number;
|
47
|
-
}[];
|
48
|
-
identifier: string;
|
49
|
-
action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
|
50
|
-
chainId: number;
|
51
|
-
};
|
32
|
+
get: {
|
33
|
+
body: unknown;
|
52
34
|
params: {};
|
53
|
-
query:
|
54
|
-
|
55
|
-
|
35
|
+
query: {
|
36
|
+
status?: string | undefined;
|
37
|
+
search?: string | undefined;
|
38
|
+
sort?: string | undefined;
|
39
|
+
type?: string | undefined;
|
40
|
+
name?: string | undefined;
|
41
|
+
tokens?: string | undefined;
|
42
|
+
items?: number | undefined;
|
43
|
+
tags?: string | undefined;
|
44
|
+
identifier?: string | undefined;
|
45
|
+
page?: number | undefined;
|
46
|
+
action?: string | undefined;
|
47
|
+
campaignId?: string | undefined;
|
48
|
+
creatorAddress?: string | undefined;
|
49
|
+
chainId?: string | undefined;
|
50
|
+
mainProtocolId?: string | undefined;
|
51
|
+
campaigns?: boolean | undefined;
|
52
|
+
point?: boolean | undefined;
|
53
|
+
rewardTokenSymbol?: string | undefined;
|
54
|
+
order?: string | undefined;
|
55
|
+
test?: boolean | undefined;
|
56
|
+
minimumTvl?: number | undefined;
|
56
57
|
};
|
58
|
+
headers: unknown;
|
57
59
|
response: {
|
58
60
|
200: {
|
59
|
-
|
61
|
+
apr: number;
|
62
|
+
aprRecord: {
|
63
|
+
cumulated: number;
|
64
|
+
timestamp: bigint;
|
65
|
+
breakdowns: ({
|
66
|
+
value: number;
|
67
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
68
|
+
identifier: string;
|
69
|
+
type: "CAMPAIGN";
|
70
|
+
} | {
|
71
|
+
value: number;
|
72
|
+
identifier: string;
|
73
|
+
type: import("@db/api").$Enums.AprType;
|
74
|
+
})[];
|
75
|
+
};
|
76
|
+
tvlRecord: {
|
77
|
+
id: string;
|
78
|
+
total: number;
|
79
|
+
timestamp: bigint;
|
80
|
+
breakdowns: {
|
81
|
+
type: import("@db/api").$Enums.TvlType;
|
82
|
+
identifier: string;
|
83
|
+
value: number;
|
84
|
+
}[];
|
85
|
+
};
|
86
|
+
rewardsRecord: {
|
87
|
+
id: string;
|
88
|
+
total: number;
|
89
|
+
timestamp: bigint;
|
90
|
+
breakdowns: {
|
91
|
+
id: string;
|
92
|
+
campaignId: string;
|
93
|
+
dailyRewardsRecordId: string;
|
94
|
+
token: {
|
95
|
+
symbol: string;
|
96
|
+
name: string | null;
|
97
|
+
id: string;
|
98
|
+
icon: string;
|
99
|
+
address: string;
|
100
|
+
chainId: number;
|
101
|
+
decimals: number;
|
102
|
+
displaySymbol: string;
|
103
|
+
verified: boolean;
|
104
|
+
isTest: boolean;
|
105
|
+
isPoint: boolean;
|
106
|
+
isPreTGE: boolean;
|
107
|
+
isNative: boolean;
|
108
|
+
price: number | null;
|
109
|
+
};
|
110
|
+
amount: any;
|
111
|
+
value: number;
|
112
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
113
|
+
}[];
|
114
|
+
};
|
115
|
+
campaigns: {
|
116
|
+
params: any;
|
117
|
+
chain: {
|
118
|
+
name: string;
|
119
|
+
id: number;
|
120
|
+
icon: string;
|
121
|
+
};
|
122
|
+
endTimestamp: number;
|
123
|
+
startTimestamp: number;
|
124
|
+
rewardToken: {
|
125
|
+
symbol: string;
|
126
|
+
name: string | null;
|
127
|
+
id: string;
|
128
|
+
icon: string;
|
129
|
+
address: string;
|
130
|
+
chainId: number;
|
131
|
+
decimals: number;
|
132
|
+
verified: boolean;
|
133
|
+
isTest: boolean;
|
134
|
+
isPoint: boolean;
|
135
|
+
isPreTGE: boolean;
|
136
|
+
isNative: boolean;
|
137
|
+
} & {
|
138
|
+
price?: number | null | undefined;
|
139
|
+
};
|
140
|
+
distributionChain: {
|
141
|
+
name: string;
|
142
|
+
id: number;
|
143
|
+
icon: string;
|
144
|
+
} | undefined;
|
145
|
+
campaignStatus: {
|
146
|
+
computedUntil: number;
|
147
|
+
processingStarted: number;
|
148
|
+
status: import("@db/api").$Enums.RunStatus;
|
149
|
+
error: string;
|
150
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
151
|
+
campaignId: string;
|
152
|
+
} | undefined;
|
153
|
+
creatorAddress: string;
|
154
|
+
creator: {
|
155
|
+
tags: string[];
|
156
|
+
address: string;
|
157
|
+
creatorId: string | null;
|
158
|
+
};
|
159
|
+
createdAt: string;
|
160
|
+
description: string | undefined;
|
161
|
+
parentCampaignId: string | undefined;
|
162
|
+
rootCampaignId: string | undefined;
|
163
|
+
Opportunity: {
|
164
|
+
status: import("@db/api").$Enums.Status;
|
165
|
+
type: string;
|
166
|
+
name: string;
|
167
|
+
description: string;
|
168
|
+
id: string;
|
169
|
+
tags: string[];
|
170
|
+
identifier: string;
|
171
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
172
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
173
|
+
chainId: number;
|
174
|
+
howToSteps: string[];
|
175
|
+
depositUrl: string | null;
|
176
|
+
explorerAddress: string | null;
|
177
|
+
mainProtocolId: string | null;
|
178
|
+
tvl: number;
|
179
|
+
apr: number;
|
180
|
+
dailyRewards: number;
|
181
|
+
lastCampaignCreatedAt: Date;
|
182
|
+
};
|
183
|
+
type: string;
|
184
|
+
id: string;
|
185
|
+
subType: number | null;
|
186
|
+
computeChainId: number;
|
187
|
+
distributionChainId: number;
|
188
|
+
campaignId: string;
|
189
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
190
|
+
rewardTokenId: string;
|
191
|
+
amount: string;
|
192
|
+
opportunityId: string;
|
193
|
+
}[] | undefined;
|
194
|
+
id: string;
|
195
|
+
depositUrl: string | undefined;
|
196
|
+
explorerAddress: string | undefined;
|
197
|
+
lastCampaignCreatedAt: string;
|
198
|
+
tokens: ({
|
60
199
|
symbol: string;
|
61
200
|
name: string | null;
|
62
201
|
id: string;
|
@@ -64,178 +203,160 @@ export declare const v4: Elysia<"/v4", false, {
|
|
64
203
|
address: string;
|
65
204
|
chainId: number;
|
66
205
|
decimals: number;
|
67
|
-
displaySymbol: string;
|
68
206
|
verified: boolean;
|
69
207
|
isTest: boolean;
|
70
208
|
isPoint: boolean;
|
71
209
|
isPreTGE: boolean;
|
72
210
|
isNative: boolean;
|
73
|
-
|
74
|
-
|
75
|
-
|
211
|
+
} & {
|
212
|
+
price?: number | null | undefined;
|
213
|
+
})[];
|
214
|
+
chain: {
|
215
|
+
name: string;
|
216
|
+
id: number;
|
217
|
+
icon: string;
|
218
|
+
};
|
219
|
+
protocol: {
|
76
220
|
url: string;
|
77
221
|
name: string;
|
78
222
|
description: string;
|
79
223
|
id: string;
|
80
224
|
tags: string[];
|
81
225
|
icon: string;
|
82
|
-
}
|
226
|
+
} | undefined;
|
83
227
|
status: import("@db/api").$Enums.Status;
|
84
228
|
type: string;
|
85
229
|
name: string;
|
86
230
|
description: string;
|
87
|
-
id: string;
|
88
231
|
tags: string[];
|
89
232
|
identifier: string;
|
90
233
|
action: import("@db/api").$Enums.OpportunityAction;
|
91
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
92
234
|
chainId: number;
|
93
235
|
howToSteps: string[];
|
94
|
-
depositUrl: string | null;
|
95
|
-
explorerAddress: string | null;
|
96
|
-
mainProtocolId: string | null;
|
97
236
|
tvl: number;
|
98
|
-
apr: number;
|
99
237
|
dailyRewards: number;
|
100
|
-
|
101
|
-
};
|
238
|
+
}[];
|
102
239
|
};
|
103
240
|
};
|
104
241
|
};
|
105
242
|
};
|
106
243
|
} & {
|
107
244
|
opportunities: {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
apr: number;
|
144
|
-
dailyRewards: number;
|
145
|
-
lastCampaignCreatedAt: Date;
|
146
|
-
};
|
147
|
-
};
|
148
|
-
};
|
149
|
-
};
|
150
|
-
};
|
151
|
-
};
|
152
|
-
} & {
|
245
|
+
count: {
|
246
|
+
get: {
|
247
|
+
body: unknown;
|
248
|
+
params: {};
|
249
|
+
query: {
|
250
|
+
status?: string | undefined;
|
251
|
+
search?: string | undefined;
|
252
|
+
sort?: string | undefined;
|
253
|
+
type?: string | undefined;
|
254
|
+
name?: string | undefined;
|
255
|
+
tokens?: string | undefined;
|
256
|
+
items?: number | undefined;
|
257
|
+
tags?: string | undefined;
|
258
|
+
identifier?: string | undefined;
|
259
|
+
page?: number | undefined;
|
260
|
+
action?: string | undefined;
|
261
|
+
campaignId?: string | undefined;
|
262
|
+
creatorAddress?: string | undefined;
|
263
|
+
chainId?: string | undefined;
|
264
|
+
mainProtocolId?: string | undefined;
|
265
|
+
campaigns?: boolean | undefined;
|
266
|
+
point?: boolean | undefined;
|
267
|
+
rewardTokenSymbol?: string | undefined;
|
268
|
+
order?: string | undefined;
|
269
|
+
test?: boolean | undefined;
|
270
|
+
minimumTvl?: number | undefined;
|
271
|
+
};
|
272
|
+
headers: unknown;
|
273
|
+
response: {
|
274
|
+
200: number;
|
275
|
+
};
|
276
|
+
};
|
277
|
+
};
|
278
|
+
};
|
279
|
+
} & {
|
153
280
|
opportunities: {
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
body:
|
158
|
-
params: {
|
159
|
-
|
281
|
+
bins: {
|
282
|
+
apr: {
|
283
|
+
get: {
|
284
|
+
body: unknown;
|
285
|
+
params: {};
|
286
|
+
query: {
|
287
|
+
status?: string | undefined;
|
288
|
+
search?: string | undefined;
|
289
|
+
sort?: string | undefined;
|
290
|
+
type?: string | undefined;
|
291
|
+
name?: string | undefined;
|
292
|
+
tokens?: string | undefined;
|
293
|
+
items?: number | undefined;
|
294
|
+
tags?: string | undefined;
|
295
|
+
identifier?: string | undefined;
|
296
|
+
page?: number | undefined;
|
297
|
+
action?: string | undefined;
|
298
|
+
campaignId?: string | undefined;
|
299
|
+
creatorAddress?: string | undefined;
|
300
|
+
chainId?: string | undefined;
|
301
|
+
mainProtocolId?: string | undefined;
|
302
|
+
campaigns?: boolean | undefined;
|
303
|
+
point?: boolean | undefined;
|
304
|
+
rewardTokenSymbol?: string | undefined;
|
305
|
+
order?: string | undefined;
|
306
|
+
test?: boolean | undefined;
|
307
|
+
minimumTvl?: number | undefined;
|
160
308
|
};
|
161
|
-
|
162
|
-
|
163
|
-
|
309
|
+
headers: unknown;
|
310
|
+
response: {
|
311
|
+
200: {
|
312
|
+
min: number;
|
313
|
+
max: number;
|
314
|
+
overThreshold: number;
|
315
|
+
binWidth: number;
|
316
|
+
bins: any[];
|
317
|
+
};
|
164
318
|
};
|
319
|
+
};
|
320
|
+
};
|
321
|
+
};
|
322
|
+
};
|
323
|
+
} & {
|
324
|
+
opportunities: {
|
325
|
+
bins: {
|
326
|
+
tvl: {
|
327
|
+
get: {
|
328
|
+
body: unknown;
|
329
|
+
params: {};
|
330
|
+
query: {
|
331
|
+
status?: string | undefined;
|
332
|
+
search?: string | undefined;
|
333
|
+
sort?: string | undefined;
|
334
|
+
type?: string | undefined;
|
335
|
+
name?: string | undefined;
|
336
|
+
tokens?: string | undefined;
|
337
|
+
items?: number | undefined;
|
338
|
+
tags?: string | undefined;
|
339
|
+
identifier?: string | undefined;
|
340
|
+
page?: number | undefined;
|
341
|
+
action?: string | undefined;
|
342
|
+
campaignId?: string | undefined;
|
343
|
+
creatorAddress?: string | undefined;
|
344
|
+
chainId?: string | undefined;
|
345
|
+
mainProtocolId?: string | undefined;
|
346
|
+
campaigns?: boolean | undefined;
|
347
|
+
point?: boolean | undefined;
|
348
|
+
rewardTokenSymbol?: string | undefined;
|
349
|
+
order?: string | undefined;
|
350
|
+
test?: boolean | undefined;
|
351
|
+
minimumTvl?: number | undefined;
|
352
|
+
};
|
353
|
+
headers: unknown;
|
165
354
|
response: {
|
166
355
|
200: {
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
icon: string;
|
172
|
-
address: string;
|
173
|
-
chainId: number;
|
174
|
-
decimals: number;
|
175
|
-
displaySymbol: string;
|
176
|
-
verified: boolean;
|
177
|
-
isTest: boolean;
|
178
|
-
isPoint: boolean;
|
179
|
-
isPreTGE: boolean;
|
180
|
-
isNative: boolean;
|
181
|
-
price: number | null;
|
182
|
-
}[];
|
183
|
-
Protocols: {
|
184
|
-
url: string;
|
185
|
-
name: string;
|
186
|
-
description: string;
|
187
|
-
id: string;
|
188
|
-
tags: string[];
|
189
|
-
icon: string;
|
190
|
-
}[];
|
191
|
-
status: import("@db/api").$Enums.Status;
|
192
|
-
type: string;
|
193
|
-
name: string;
|
194
|
-
description: string;
|
195
|
-
id: string;
|
196
|
-
tags: string[];
|
197
|
-
identifier: string;
|
198
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
199
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
200
|
-
chainId: number;
|
201
|
-
howToSteps: string[];
|
202
|
-
depositUrl: string | null;
|
203
|
-
explorerAddress: string | null;
|
204
|
-
mainProtocolId: string | null;
|
205
|
-
tvl: number;
|
206
|
-
apr: number;
|
207
|
-
dailyRewards: number;
|
208
|
-
lastCampaignCreatedAt: Date;
|
209
|
-
} | {
|
210
|
-
id: string;
|
211
|
-
chainId: number;
|
212
|
-
type: string;
|
213
|
-
identifier: string;
|
214
|
-
name: string;
|
215
|
-
status: "PAST" | "LIVE" | "SOON";
|
216
|
-
action: any;
|
217
|
-
tokens: ({
|
218
|
-
symbol: string;
|
219
|
-
name: string | null;
|
220
|
-
id: string;
|
221
|
-
icon: string;
|
222
|
-
address: string;
|
223
|
-
chainId: number;
|
224
|
-
decimals: number;
|
225
|
-
verified: boolean;
|
226
|
-
isTest: boolean;
|
227
|
-
isPoint: boolean;
|
228
|
-
isPreTGE: boolean;
|
229
|
-
isNative: boolean;
|
230
|
-
} & {
|
231
|
-
price?: number | null | undefined;
|
232
|
-
})[];
|
233
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "punchswap" | "gamma" | "stability" | "termmax" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
234
|
-
description: string;
|
235
|
-
howToSteps: string[];
|
236
|
-
depositUrl: string | undefined;
|
237
|
-
explorerAddress: string | undefined;
|
238
|
-
tags: string[];
|
356
|
+
min: number;
|
357
|
+
max: number;
|
358
|
+
binWidth: number;
|
359
|
+
bins: any[];
|
239
360
|
};
|
240
361
|
};
|
241
362
|
};
|
@@ -245,19 +366,79 @@ export declare const v4: Elysia<"/v4", false, {
|
|
245
366
|
} & {
|
246
367
|
opportunities: {
|
247
368
|
":id": {
|
248
|
-
|
369
|
+
get: {
|
249
370
|
body: unknown;
|
250
371
|
params: {
|
251
|
-
campaignId?: string | undefined;
|
252
372
|
id: string;
|
253
373
|
};
|
254
|
-
query:
|
255
|
-
|
256
|
-
|
374
|
+
query: {
|
375
|
+
campaigns?: boolean | undefined;
|
376
|
+
point?: boolean | undefined;
|
377
|
+
test?: boolean | undefined;
|
257
378
|
};
|
379
|
+
headers: unknown;
|
258
380
|
response: {
|
259
381
|
200: {
|
260
|
-
|
382
|
+
protocol?: {
|
383
|
+
url: string;
|
384
|
+
name: string;
|
385
|
+
description: string;
|
386
|
+
id: string;
|
387
|
+
tags: string[];
|
388
|
+
icon: string;
|
389
|
+
} | null | undefined;
|
390
|
+
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;
|
391
|
+
depositUrl?: string | undefined;
|
392
|
+
explorerAddress?: string | undefined;
|
393
|
+
aprRecord?: {
|
394
|
+
timestamp: string | bigint;
|
395
|
+
cumulated: number;
|
396
|
+
breakdowns: {
|
397
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
398
|
+
identifier: string;
|
399
|
+
value: number;
|
400
|
+
}[];
|
401
|
+
} | undefined;
|
402
|
+
tvlRecord?: {
|
403
|
+
total: number;
|
404
|
+
timestamp: string | bigint;
|
405
|
+
breakdowns: {
|
406
|
+
type: "TOKEN" | "PROTOCOL";
|
407
|
+
identifier: string;
|
408
|
+
value: number;
|
409
|
+
}[];
|
410
|
+
} | undefined;
|
411
|
+
rewardsRecord?: {
|
412
|
+
total: number;
|
413
|
+
id: string;
|
414
|
+
timestamp: string | bigint;
|
415
|
+
breakdowns: {
|
416
|
+
token: {
|
417
|
+
price?: number | null | undefined;
|
418
|
+
symbol: string;
|
419
|
+
name: string | null;
|
420
|
+
id: string;
|
421
|
+
icon: string;
|
422
|
+
address: string;
|
423
|
+
chainId: number;
|
424
|
+
decimals: number;
|
425
|
+
verified: boolean;
|
426
|
+
isTest: boolean;
|
427
|
+
isPoint: boolean;
|
428
|
+
isPreTGE: boolean;
|
429
|
+
};
|
430
|
+
id: string;
|
431
|
+
value: number;
|
432
|
+
campaignId: string;
|
433
|
+
amount: string | bigint;
|
434
|
+
dailyRewardsRecordId: string;
|
435
|
+
}[];
|
436
|
+
} | undefined;
|
437
|
+
status: string;
|
438
|
+
type: string;
|
439
|
+
name: string;
|
440
|
+
tokens: {
|
441
|
+
price?: number | null | undefined;
|
261
442
|
symbol: string;
|
262
443
|
name: string | null;
|
263
444
|
id: string;
|
@@ -265,70 +446,36 @@ export declare const v4: Elysia<"/v4", false, {
|
|
265
446
|
address: string;
|
266
447
|
chainId: number;
|
267
448
|
decimals: number;
|
268
|
-
displaySymbol: string;
|
269
449
|
verified: boolean;
|
270
450
|
isTest: boolean;
|
271
451
|
isPoint: boolean;
|
272
452
|
isPreTGE: boolean;
|
273
|
-
isNative: boolean;
|
274
|
-
price: number | null;
|
275
|
-
}[];
|
276
|
-
Protocols: {
|
277
|
-
url: string;
|
278
|
-
name: string;
|
279
|
-
description: string;
|
280
|
-
id: string;
|
281
|
-
tags: string[];
|
282
|
-
icon: string;
|
283
453
|
}[];
|
284
|
-
status: import("@db/api").$Enums.Status;
|
285
|
-
type: string;
|
286
|
-
name: string;
|
287
454
|
description: string;
|
288
455
|
id: string;
|
289
456
|
tags: string[];
|
290
457
|
identifier: string;
|
291
|
-
|
292
|
-
|
458
|
+
chain: {
|
459
|
+
name: string;
|
460
|
+
id: number;
|
461
|
+
icon: string;
|
462
|
+
};
|
463
|
+
action: string;
|
293
464
|
chainId: number;
|
294
465
|
howToSteps: string[];
|
295
|
-
depositUrl: string | null;
|
296
|
-
explorerAddress: string | null;
|
297
|
-
mainProtocolId: string | null;
|
298
466
|
tvl: number;
|
299
467
|
apr: number;
|
300
468
|
dailyRewards: number;
|
301
|
-
lastCampaignCreatedAt:
|
302
|
-
}
|
303
|
-
|
304
|
-
|
305
|
-
type: string;
|
306
|
-
identifier: string;
|
469
|
+
lastCampaignCreatedAt: string;
|
470
|
+
};
|
471
|
+
readonly 404: {
|
472
|
+
message: string;
|
307
473
|
name: string;
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
id: string;
|
314
|
-
icon: string;
|
315
|
-
address: string;
|
316
|
-
chainId: number;
|
317
|
-
decimals: number;
|
318
|
-
verified: boolean;
|
319
|
-
isTest: boolean;
|
320
|
-
isPoint: boolean;
|
321
|
-
isPreTGE: boolean;
|
322
|
-
isNative: boolean;
|
323
|
-
} & {
|
324
|
-
price?: number | null | undefined;
|
325
|
-
})[];
|
326
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "punchswap" | "gamma" | "stability" | "termmax" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
327
|
-
description: string;
|
328
|
-
howToSteps: string[];
|
329
|
-
depositUrl: string | undefined;
|
330
|
-
explorerAddress: string | undefined;
|
331
|
-
tags: string[];
|
474
|
+
};
|
475
|
+
readonly 500: {
|
476
|
+
info: string;
|
477
|
+
code: string;
|
478
|
+
httpCode: number;
|
332
479
|
};
|
333
480
|
};
|
334
481
|
};
|
@@ -336,70 +483,76 @@ export declare const v4: Elysia<"/v4", false, {
|
|
336
483
|
};
|
337
484
|
} & {
|
338
485
|
opportunities: {
|
339
|
-
|
486
|
+
campaigns: {
|
340
487
|
get: {
|
341
488
|
body: unknown;
|
342
489
|
params: {};
|
343
490
|
query: {
|
344
|
-
status?:
|
345
|
-
search?: string | undefined;
|
346
|
-
sort?: string | undefined;
|
491
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
347
492
|
type?: string | undefined;
|
348
|
-
|
349
|
-
tokens?: string | undefined;
|
493
|
+
id?: string | undefined;
|
350
494
|
items?: number | undefined;
|
351
|
-
|
352
|
-
identifier?: string | undefined;
|
495
|
+
subType?: number | undefined;
|
353
496
|
page?: number | undefined;
|
354
|
-
|
497
|
+
types?: string[] | undefined;
|
355
498
|
campaignId?: string | undefined;
|
499
|
+
opportunityId?: string | undefined;
|
500
|
+
startTimestamp?: string | undefined;
|
501
|
+
endTimestamp?: string | undefined;
|
356
502
|
creatorAddress?: string | undefined;
|
357
|
-
|
358
|
-
|
359
|
-
|
503
|
+
rootCampaignId?: string | undefined;
|
504
|
+
parentCampaignId?: string | undefined;
|
505
|
+
chainId?: number | undefined;
|
506
|
+
creatorId?: string | undefined;
|
507
|
+
mainParameter?: string | undefined;
|
360
508
|
point?: boolean | undefined;
|
361
|
-
|
362
|
-
order?: string | undefined;
|
509
|
+
tokenAddress?: string | undefined;
|
363
510
|
test?: boolean | undefined;
|
364
|
-
|
511
|
+
creatorTag?: string | undefined;
|
512
|
+
distributionChainIds?: number[] | undefined;
|
513
|
+
tokenSymbol?: string | undefined;
|
514
|
+
withOpportunity?: boolean | undefined;
|
515
|
+
createdAfter?: Date | null | undefined;
|
365
516
|
};
|
366
517
|
headers: unknown;
|
367
518
|
response: {
|
368
519
|
200: {
|
369
|
-
|
370
|
-
|
520
|
+
protocol?: {
|
521
|
+
url: string;
|
522
|
+
name: string;
|
523
|
+
description: string;
|
524
|
+
id: string;
|
525
|
+
tags: string[];
|
526
|
+
icon: string;
|
527
|
+
} | null | undefined;
|
528
|
+
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;
|
529
|
+
depositUrl?: string | undefined;
|
530
|
+
explorerAddress?: string | undefined;
|
531
|
+
aprRecord?: {
|
532
|
+
timestamp: string | bigint;
|
371
533
|
cumulated: number;
|
372
|
-
|
373
|
-
|
374
|
-
value: number;
|
375
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
376
|
-
identifier: string;
|
377
|
-
type: "CAMPAIGN";
|
378
|
-
} | {
|
379
|
-
value: number;
|
534
|
+
breakdowns: {
|
535
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
380
536
|
identifier: string;
|
381
|
-
|
382
|
-
}
|
383
|
-
};
|
384
|
-
tvlRecord
|
385
|
-
id: string;
|
537
|
+
value: number;
|
538
|
+
}[];
|
539
|
+
} | undefined;
|
540
|
+
tvlRecord?: {
|
386
541
|
total: number;
|
387
|
-
timestamp: bigint;
|
542
|
+
timestamp: string | bigint;
|
388
543
|
breakdowns: {
|
389
|
-
type:
|
544
|
+
type: "TOKEN" | "PROTOCOL";
|
390
545
|
identifier: string;
|
391
546
|
value: number;
|
392
547
|
}[];
|
393
|
-
};
|
394
|
-
rewardsRecord
|
395
|
-
id: string;
|
548
|
+
} | undefined;
|
549
|
+
rewardsRecord?: {
|
396
550
|
total: number;
|
397
|
-
|
551
|
+
id: string;
|
552
|
+
timestamp: string | bigint;
|
398
553
|
breakdowns: {
|
399
|
-
id: string;
|
400
|
-
campaignId: string;
|
401
|
-
dailyRewardsRecordId: string;
|
402
554
|
token: {
|
555
|
+
price?: number | null | undefined;
|
403
556
|
symbol: string;
|
404
557
|
name: string | null;
|
405
558
|
id: string;
|
@@ -407,29 +560,94 @@ export declare const v4: Elysia<"/v4", false, {
|
|
407
560
|
address: string;
|
408
561
|
chainId: number;
|
409
562
|
decimals: number;
|
410
|
-
displaySymbol: string;
|
411
563
|
verified: boolean;
|
412
564
|
isTest: boolean;
|
413
565
|
isPoint: boolean;
|
414
566
|
isPreTGE: boolean;
|
415
|
-
isNative: boolean;
|
416
|
-
price: number | null;
|
417
567
|
};
|
418
|
-
|
568
|
+
id: string;
|
419
569
|
value: number;
|
420
|
-
|
570
|
+
campaignId: string;
|
571
|
+
amount: string | bigint;
|
572
|
+
dailyRewardsRecordId: string;
|
421
573
|
}[];
|
574
|
+
} | undefined;
|
575
|
+
status: string;
|
576
|
+
type: string;
|
577
|
+
name: string;
|
578
|
+
tokens: {
|
579
|
+
price?: number | null | undefined;
|
580
|
+
symbol: string;
|
581
|
+
name: string | null;
|
582
|
+
id: string;
|
583
|
+
icon: string;
|
584
|
+
address: string;
|
585
|
+
chainId: number;
|
586
|
+
decimals: number;
|
587
|
+
verified: boolean;
|
588
|
+
isTest: boolean;
|
589
|
+
isPoint: boolean;
|
590
|
+
isPreTGE: boolean;
|
591
|
+
}[];
|
592
|
+
description: string;
|
593
|
+
id: string;
|
594
|
+
tags: string[];
|
595
|
+
identifier: string;
|
596
|
+
chain: {
|
597
|
+
name: string;
|
598
|
+
id: number;
|
599
|
+
icon: string;
|
422
600
|
};
|
601
|
+
action: string;
|
602
|
+
chainId: number;
|
603
|
+
howToSteps: string[];
|
604
|
+
tvl: number;
|
605
|
+
apr: number;
|
606
|
+
dailyRewards: number;
|
607
|
+
lastCampaignCreatedAt: string;
|
423
608
|
campaigns: {
|
609
|
+
description?: string | undefined;
|
610
|
+
creator?: {
|
611
|
+
tags?: string[] | undefined;
|
612
|
+
creatorId?: string | null | undefined;
|
613
|
+
address: string;
|
614
|
+
} | undefined;
|
615
|
+
rootCampaignId?: string | undefined;
|
616
|
+
parentCampaignId?: string | undefined;
|
617
|
+
campaignStatus?: {
|
618
|
+
error?: string | undefined;
|
619
|
+
details?: any;
|
620
|
+
status: string;
|
621
|
+
campaignId: string;
|
622
|
+
computedUntil: string | number;
|
623
|
+
processingStarted: string | number;
|
624
|
+
} | undefined;
|
625
|
+
distributionChain?: {
|
626
|
+
name: string;
|
627
|
+
id: number;
|
628
|
+
icon: string;
|
629
|
+
} | undefined;
|
630
|
+
type: string;
|
631
|
+
id: string;
|
424
632
|
params: any;
|
633
|
+
subType: number | null;
|
425
634
|
chain: {
|
426
635
|
name: string;
|
427
636
|
id: number;
|
428
637
|
icon: string;
|
429
638
|
};
|
430
|
-
|
431
|
-
|
639
|
+
computeChainId: number;
|
640
|
+
distributionChainId: number;
|
641
|
+
campaignId: string;
|
642
|
+
rewardTokenId: string;
|
643
|
+
amount: string;
|
644
|
+
opportunityId: string;
|
645
|
+
startTimestamp: string | number;
|
646
|
+
endTimestamp: string | number;
|
647
|
+
creatorAddress: string;
|
648
|
+
createdAt: string;
|
432
649
|
rewardToken: {
|
650
|
+
price?: number | null | undefined;
|
433
651
|
symbol: string;
|
434
652
|
name: string | null;
|
435
653
|
id: string;
|
@@ -441,156 +659,207 @@ export declare const v4: Elysia<"/v4", false, {
|
|
441
659
|
isTest: boolean;
|
442
660
|
isPoint: boolean;
|
443
661
|
isPreTGE: boolean;
|
444
|
-
isNative: boolean;
|
445
|
-
} & {
|
446
|
-
price?: number | null | undefined;
|
447
662
|
};
|
448
|
-
|
663
|
+
}[];
|
664
|
+
}[];
|
665
|
+
readonly 404: {
|
666
|
+
message: string;
|
667
|
+
name: string;
|
668
|
+
};
|
669
|
+
readonly 500: {
|
670
|
+
info: string;
|
671
|
+
code: string;
|
672
|
+
httpCode: number;
|
673
|
+
};
|
674
|
+
};
|
675
|
+
};
|
676
|
+
};
|
677
|
+
};
|
678
|
+
} & {
|
679
|
+
opportunities: {
|
680
|
+
":id": {
|
681
|
+
campaigns: {
|
682
|
+
get: {
|
683
|
+
body: unknown;
|
684
|
+
params: {
|
685
|
+
id: string;
|
686
|
+
};
|
687
|
+
query: {
|
688
|
+
campaigns?: boolean | undefined;
|
689
|
+
point?: boolean | undefined;
|
690
|
+
test?: boolean | undefined;
|
691
|
+
};
|
692
|
+
headers: unknown;
|
693
|
+
response: {
|
694
|
+
200: {
|
695
|
+
protocol?: {
|
696
|
+
url: string;
|
449
697
|
name: string;
|
450
|
-
|
698
|
+
description: string;
|
699
|
+
id: string;
|
700
|
+
tags: string[];
|
451
701
|
icon: string;
|
702
|
+
} | null | undefined;
|
703
|
+
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;
|
704
|
+
depositUrl?: string | undefined;
|
705
|
+
explorerAddress?: string | undefined;
|
706
|
+
aprRecord?: {
|
707
|
+
timestamp: string | bigint;
|
708
|
+
cumulated: number;
|
709
|
+
breakdowns: {
|
710
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
711
|
+
identifier: string;
|
712
|
+
value: number;
|
713
|
+
}[];
|
452
714
|
} | undefined;
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
715
|
+
tvlRecord?: {
|
716
|
+
total: number;
|
717
|
+
timestamp: string | bigint;
|
718
|
+
breakdowns: {
|
719
|
+
type: "TOKEN" | "PROTOCOL";
|
720
|
+
identifier: string;
|
721
|
+
value: number;
|
722
|
+
}[];
|
460
723
|
} | undefined;
|
461
|
-
|
462
|
-
|
463
|
-
tags: string[];
|
464
|
-
address: string;
|
465
|
-
creatorId: string | null;
|
466
|
-
};
|
467
|
-
createdAt: string;
|
468
|
-
description: string | undefined;
|
469
|
-
parentCampaignId: string | undefined;
|
470
|
-
rootCampaignId: string | undefined;
|
471
|
-
Opportunity: {
|
472
|
-
status: import("@db/api").$Enums.Status;
|
473
|
-
type: string;
|
474
|
-
name: string;
|
475
|
-
description: string;
|
724
|
+
rewardsRecord?: {
|
725
|
+
total: number;
|
476
726
|
id: string;
|
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
|
-
|
502
|
-
id: string;
|
503
|
-
depositUrl: string | undefined;
|
504
|
-
explorerAddress: string | undefined;
|
505
|
-
lastCampaignCreatedAt: string;
|
506
|
-
tokens: ({
|
507
|
-
symbol: string;
|
508
|
-
name: string | null;
|
509
|
-
id: string;
|
510
|
-
icon: string;
|
511
|
-
address: string;
|
512
|
-
chainId: number;
|
513
|
-
decimals: number;
|
514
|
-
verified: boolean;
|
515
|
-
isTest: boolean;
|
516
|
-
isPoint: boolean;
|
517
|
-
isPreTGE: boolean;
|
518
|
-
isNative: boolean;
|
519
|
-
} & {
|
520
|
-
price?: number | null | undefined;
|
521
|
-
})[];
|
522
|
-
chain: {
|
523
|
-
name: string;
|
524
|
-
id: number;
|
525
|
-
icon: string;
|
526
|
-
};
|
527
|
-
protocol: {
|
528
|
-
url: string;
|
727
|
+
timestamp: string | bigint;
|
728
|
+
breakdowns: {
|
729
|
+
token: {
|
730
|
+
price?: number | null | undefined;
|
731
|
+
symbol: string;
|
732
|
+
name: string | null;
|
733
|
+
id: string;
|
734
|
+
icon: string;
|
735
|
+
address: string;
|
736
|
+
chainId: number;
|
737
|
+
decimals: number;
|
738
|
+
verified: boolean;
|
739
|
+
isTest: boolean;
|
740
|
+
isPoint: boolean;
|
741
|
+
isPreTGE: boolean;
|
742
|
+
};
|
743
|
+
id: string;
|
744
|
+
value: number;
|
745
|
+
campaignId: string;
|
746
|
+
amount: string | bigint;
|
747
|
+
dailyRewardsRecordId: string;
|
748
|
+
}[];
|
749
|
+
} | undefined;
|
750
|
+
status: string;
|
751
|
+
type: string;
|
529
752
|
name: string;
|
753
|
+
tokens: {
|
754
|
+
price?: number | null | undefined;
|
755
|
+
symbol: string;
|
756
|
+
name: string | null;
|
757
|
+
id: string;
|
758
|
+
icon: string;
|
759
|
+
address: string;
|
760
|
+
chainId: number;
|
761
|
+
decimals: number;
|
762
|
+
verified: boolean;
|
763
|
+
isTest: boolean;
|
764
|
+
isPoint: boolean;
|
765
|
+
isPreTGE: boolean;
|
766
|
+
}[];
|
530
767
|
description: string;
|
531
768
|
id: string;
|
532
769
|
tags: string[];
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
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
|
-
|
770
|
+
identifier: string;
|
771
|
+
chain: {
|
772
|
+
name: string;
|
773
|
+
id: number;
|
774
|
+
icon: string;
|
775
|
+
};
|
776
|
+
action: string;
|
777
|
+
chainId: number;
|
778
|
+
howToSteps: string[];
|
779
|
+
tvl: number;
|
780
|
+
apr: number;
|
781
|
+
dailyRewards: number;
|
782
|
+
lastCampaignCreatedAt: string;
|
783
|
+
campaigns: {
|
784
|
+
description?: string | undefined;
|
785
|
+
creator?: {
|
786
|
+
tags?: string[] | undefined;
|
787
|
+
creatorId?: string | null | undefined;
|
788
|
+
address: string;
|
789
|
+
} | undefined;
|
790
|
+
rootCampaignId?: string | undefined;
|
791
|
+
parentCampaignId?: string | undefined;
|
792
|
+
campaignStatus?: {
|
793
|
+
error?: string | undefined;
|
794
|
+
details?: any;
|
795
|
+
status: string;
|
796
|
+
campaignId: string;
|
797
|
+
computedUntil: string | number;
|
798
|
+
processingStarted: string | number;
|
799
|
+
} | undefined;
|
800
|
+
distributionChain?: {
|
801
|
+
name: string;
|
802
|
+
id: number;
|
803
|
+
icon: string;
|
804
|
+
} | undefined;
|
805
|
+
type: string;
|
806
|
+
id: string;
|
807
|
+
params: any;
|
808
|
+
subType: number | null;
|
809
|
+
chain: {
|
810
|
+
name: string;
|
811
|
+
id: number;
|
812
|
+
icon: string;
|
813
|
+
};
|
814
|
+
computeChainId: number;
|
815
|
+
distributionChainId: number;
|
816
|
+
campaignId: string;
|
817
|
+
rewardTokenId: string;
|
818
|
+
amount: string;
|
819
|
+
opportunityId: string;
|
820
|
+
startTimestamp: string | number;
|
821
|
+
endTimestamp: string | number;
|
822
|
+
creatorAddress: string;
|
823
|
+
createdAt: string;
|
824
|
+
rewardToken: {
|
825
|
+
price?: number | null | undefined;
|
826
|
+
symbol: string;
|
827
|
+
name: string | null;
|
828
|
+
id: string;
|
829
|
+
icon: string;
|
830
|
+
address: string;
|
831
|
+
chainId: number;
|
832
|
+
decimals: number;
|
833
|
+
verified: boolean;
|
834
|
+
isTest: boolean;
|
835
|
+
isPoint: boolean;
|
836
|
+
isPreTGE: boolean;
|
837
|
+
};
|
838
|
+
}[];
|
839
|
+
};
|
840
|
+
readonly 404: {
|
841
|
+
message: string;
|
842
|
+
name: string;
|
843
|
+
};
|
844
|
+
readonly 500: {
|
845
|
+
info: string;
|
846
|
+
code: string;
|
847
|
+
httpCode: number;
|
848
|
+
};
|
849
|
+
};
|
583
850
|
};
|
584
851
|
};
|
585
852
|
};
|
586
853
|
};
|
587
854
|
} & {
|
588
855
|
opportunities: {
|
589
|
-
|
590
|
-
|
856
|
+
aggregate: {
|
857
|
+
":field": {
|
591
858
|
get: {
|
592
859
|
body: unknown;
|
593
|
-
params: {
|
860
|
+
params: {
|
861
|
+
field: never;
|
862
|
+
};
|
594
863
|
query: {
|
595
864
|
status?: string | undefined;
|
596
865
|
search?: string | undefined;
|
@@ -617,11 +886,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
617
886
|
headers: unknown;
|
618
887
|
response: {
|
619
888
|
200: {
|
620
|
-
|
621
|
-
max: number;
|
622
|
-
overThreshold: number;
|
623
|
-
binWidth: number;
|
624
|
-
bins: any[];
|
889
|
+
sum: string;
|
625
890
|
};
|
626
891
|
};
|
627
892
|
};
|
@@ -630,41 +895,86 @@ export declare const v4: Elysia<"/v4", false, {
|
|
630
895
|
};
|
631
896
|
} & {
|
632
897
|
opportunities: {
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
898
|
+
aggregate: {
|
899
|
+
max: {
|
900
|
+
":field": {
|
901
|
+
get: {
|
902
|
+
body: unknown;
|
903
|
+
params: {
|
904
|
+
field: never;
|
905
|
+
};
|
906
|
+
query: {
|
907
|
+
status?: string | undefined;
|
908
|
+
search?: string | undefined;
|
909
|
+
sort?: string | undefined;
|
910
|
+
type?: string | undefined;
|
911
|
+
name?: string | undefined;
|
912
|
+
tokens?: string | undefined;
|
913
|
+
items?: number | undefined;
|
914
|
+
tags?: string | undefined;
|
915
|
+
identifier?: string | undefined;
|
916
|
+
page?: number | undefined;
|
917
|
+
action?: string | undefined;
|
918
|
+
campaignId?: string | undefined;
|
919
|
+
creatorAddress?: string | undefined;
|
920
|
+
chainId?: string | undefined;
|
921
|
+
mainProtocolId?: string | undefined;
|
922
|
+
campaigns?: boolean | undefined;
|
923
|
+
point?: boolean | undefined;
|
924
|
+
rewardTokenSymbol?: string | undefined;
|
925
|
+
order?: string | undefined;
|
926
|
+
test?: boolean | undefined;
|
927
|
+
minimumTvl?: number | undefined;
|
928
|
+
};
|
929
|
+
headers: unknown;
|
930
|
+
response: {
|
931
|
+
200: {
|
932
|
+
max: string;
|
933
|
+
};
|
934
|
+
};
|
660
935
|
};
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
936
|
+
};
|
937
|
+
};
|
938
|
+
};
|
939
|
+
};
|
940
|
+
} & {
|
941
|
+
opportunities: {
|
942
|
+
aggregate: {
|
943
|
+
min: {
|
944
|
+
":field": {
|
945
|
+
get: {
|
946
|
+
body: unknown;
|
947
|
+
params: {
|
948
|
+
field: never;
|
949
|
+
};
|
950
|
+
query: {
|
951
|
+
status?: string | undefined;
|
952
|
+
search?: string | undefined;
|
953
|
+
sort?: string | undefined;
|
954
|
+
type?: string | undefined;
|
955
|
+
name?: string | undefined;
|
956
|
+
tokens?: string | undefined;
|
957
|
+
items?: number | undefined;
|
958
|
+
tags?: string | undefined;
|
959
|
+
identifier?: string | undefined;
|
960
|
+
page?: number | undefined;
|
961
|
+
action?: string | undefined;
|
962
|
+
campaignId?: string | undefined;
|
963
|
+
creatorAddress?: string | undefined;
|
964
|
+
chainId?: string | undefined;
|
965
|
+
mainProtocolId?: string | undefined;
|
966
|
+
campaigns?: boolean | undefined;
|
967
|
+
point?: boolean | undefined;
|
968
|
+
rewardTokenSymbol?: string | undefined;
|
969
|
+
order?: string | undefined;
|
970
|
+
test?: boolean | undefined;
|
971
|
+
minimumTvl?: number | undefined;
|
972
|
+
};
|
973
|
+
headers: unknown;
|
974
|
+
response: {
|
975
|
+
200: {
|
976
|
+
min: string;
|
977
|
+
};
|
668
978
|
};
|
669
979
|
};
|
670
980
|
};
|
@@ -673,80 +983,35 @@ export declare const v4: Elysia<"/v4", false, {
|
|
673
983
|
};
|
674
984
|
} & {
|
675
985
|
opportunities: {
|
676
|
-
|
677
|
-
|
678
|
-
body:
|
679
|
-
|
680
|
-
|
986
|
+
index: {
|
987
|
+
post: {
|
988
|
+
body: {
|
989
|
+
name?: string | undefined;
|
990
|
+
description?: string | undefined;
|
991
|
+
tags?: string[] | undefined;
|
992
|
+
howToSteps?: string[] | undefined;
|
993
|
+
depositUrl?: string | undefined;
|
994
|
+
explorerAddress?: string | undefined;
|
995
|
+
protocols?: string[] | undefined;
|
996
|
+
mainProtocol?: string | undefined;
|
997
|
+
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
998
|
+
type: string;
|
999
|
+
tokens: {
|
1000
|
+
address: string;
|
1001
|
+
chainId: number;
|
1002
|
+
}[];
|
1003
|
+
identifier: string;
|
1004
|
+
action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID";
|
1005
|
+
chainId: number;
|
681
1006
|
};
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
1007
|
+
params: {};
|
1008
|
+
query: unknown;
|
1009
|
+
headers: {
|
1010
|
+
authorization: string;
|
686
1011
|
};
|
687
|
-
headers: unknown;
|
688
1012
|
response: {
|
689
1013
|
200: {
|
690
|
-
|
691
|
-
url: string;
|
692
|
-
name: string;
|
693
|
-
description: string;
|
694
|
-
id: string;
|
695
|
-
tags: string[];
|
696
|
-
icon: string;
|
697
|
-
} | null | undefined;
|
698
|
-
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;
|
699
|
-
depositUrl?: string | undefined;
|
700
|
-
explorerAddress?: string | undefined;
|
701
|
-
aprRecord?: {
|
702
|
-
timestamp: string | bigint;
|
703
|
-
cumulated: number;
|
704
|
-
breakdowns: {
|
705
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
706
|
-
identifier: string;
|
707
|
-
value: number;
|
708
|
-
}[];
|
709
|
-
} | undefined;
|
710
|
-
tvlRecord?: {
|
711
|
-
total: number;
|
712
|
-
timestamp: string | bigint;
|
713
|
-
breakdowns: {
|
714
|
-
type: "TOKEN" | "PROTOCOL";
|
715
|
-
identifier: string;
|
716
|
-
value: number;
|
717
|
-
}[];
|
718
|
-
} | undefined;
|
719
|
-
rewardsRecord?: {
|
720
|
-
total: number;
|
721
|
-
id: string;
|
722
|
-
timestamp: string | bigint;
|
723
|
-
breakdowns: {
|
724
|
-
token: {
|
725
|
-
price?: number | null | undefined;
|
726
|
-
symbol: string;
|
727
|
-
name: string | null;
|
728
|
-
id: string;
|
729
|
-
icon: string;
|
730
|
-
address: string;
|
731
|
-
chainId: number;
|
732
|
-
decimals: number;
|
733
|
-
verified: boolean;
|
734
|
-
isTest: boolean;
|
735
|
-
isPoint: boolean;
|
736
|
-
isPreTGE: boolean;
|
737
|
-
};
|
738
|
-
id: string;
|
739
|
-
value: number;
|
740
|
-
campaignId: string;
|
741
|
-
amount: string | bigint;
|
742
|
-
dailyRewardsRecordId: string;
|
743
|
-
}[];
|
744
|
-
} | undefined;
|
745
|
-
status: string;
|
746
|
-
type: string;
|
747
|
-
name: string;
|
748
|
-
tokens: {
|
749
|
-
price?: number | null | undefined;
|
1014
|
+
Tokens: {
|
750
1015
|
symbol: string;
|
751
1016
|
name: string | null;
|
752
1017
|
id: string;
|
@@ -754,136 +1019,61 @@ export declare const v4: Elysia<"/v4", false, {
|
|
754
1019
|
address: string;
|
755
1020
|
chainId: number;
|
756
1021
|
decimals: number;
|
1022
|
+
displaySymbol: string;
|
757
1023
|
verified: boolean;
|
758
1024
|
isTest: boolean;
|
759
1025
|
isPoint: boolean;
|
760
1026
|
isPreTGE: boolean;
|
1027
|
+
isNative: boolean;
|
1028
|
+
price: number | null;
|
1029
|
+
}[];
|
1030
|
+
Protocols: {
|
1031
|
+
url: string;
|
1032
|
+
name: string;
|
1033
|
+
description: string;
|
1034
|
+
id: string;
|
1035
|
+
tags: string[];
|
1036
|
+
icon: string;
|
761
1037
|
}[];
|
1038
|
+
status: import("@db/api").$Enums.Status;
|
1039
|
+
type: string;
|
1040
|
+
name: string;
|
762
1041
|
description: string;
|
763
1042
|
id: string;
|
764
1043
|
tags: string[];
|
765
1044
|
identifier: string;
|
766
|
-
|
767
|
-
|
768
|
-
id: number;
|
769
|
-
icon: string;
|
770
|
-
};
|
771
|
-
action: string;
|
1045
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
1046
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
772
1047
|
chainId: number;
|
773
1048
|
howToSteps: string[];
|
1049
|
+
depositUrl: string | null;
|
1050
|
+
explorerAddress: string | null;
|
1051
|
+
mainProtocolId: string | null;
|
774
1052
|
tvl: number;
|
775
1053
|
apr: number;
|
776
1054
|
dailyRewards: number;
|
777
|
-
lastCampaignCreatedAt:
|
778
|
-
};
|
779
|
-
readonly 404: {
|
780
|
-
message: string;
|
781
|
-
name: string;
|
782
|
-
};
|
783
|
-
readonly 500: {
|
784
|
-
info: string;
|
785
|
-
code: string;
|
786
|
-
httpCode: number;
|
1055
|
+
lastCampaignCreatedAt: Date;
|
787
1056
|
};
|
788
1057
|
};
|
789
|
-
};
|
790
|
-
};
|
791
|
-
};
|
792
|
-
} & {
|
793
|
-
opportunities: {
|
794
|
-
|
795
|
-
|
796
|
-
body: unknown;
|
797
|
-
params: {
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
endTimestamp?: string | undefined;
|
809
|
-
creatorAddress?: string | undefined;
|
810
|
-
rootCampaignId?: string | undefined;
|
811
|
-
parentCampaignId?: string | undefined;
|
812
|
-
chainId?: number | undefined;
|
813
|
-
creatorId?: string | undefined;
|
814
|
-
mainParameter?: string | undefined;
|
815
|
-
point?: boolean | undefined;
|
816
|
-
tokenAddress?: string | undefined;
|
817
|
-
test?: boolean | undefined;
|
818
|
-
creatorTag?: string | undefined;
|
819
|
-
distributionChainIds?: number[] | undefined;
|
820
|
-
tokenSymbol?: string | undefined;
|
821
|
-
withOpportunity?: boolean | undefined;
|
822
|
-
createdAfter?: Date | null | undefined;
|
823
|
-
};
|
824
|
-
headers: unknown;
|
825
|
-
response: {
|
826
|
-
200: {
|
827
|
-
protocol?: {
|
828
|
-
url: string;
|
829
|
-
name: string;
|
830
|
-
description: string;
|
831
|
-
id: string;
|
832
|
-
tags: string[];
|
833
|
-
icon: string;
|
834
|
-
} | null | undefined;
|
835
|
-
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;
|
836
|
-
depositUrl?: string | undefined;
|
837
|
-
explorerAddress?: string | undefined;
|
838
|
-
aprRecord?: {
|
839
|
-
timestamp: string | bigint;
|
840
|
-
cumulated: number;
|
841
|
-
breakdowns: {
|
842
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
843
|
-
identifier: string;
|
844
|
-
value: number;
|
845
|
-
}[];
|
846
|
-
} | undefined;
|
847
|
-
tvlRecord?: {
|
848
|
-
total: number;
|
849
|
-
timestamp: string | bigint;
|
850
|
-
breakdowns: {
|
851
|
-
type: "TOKEN" | "PROTOCOL";
|
852
|
-
identifier: string;
|
853
|
-
value: number;
|
854
|
-
}[];
|
855
|
-
} | undefined;
|
856
|
-
rewardsRecord?: {
|
857
|
-
total: number;
|
858
|
-
id: string;
|
859
|
-
timestamp: string | bigint;
|
860
|
-
breakdowns: {
|
861
|
-
token: {
|
862
|
-
price?: number | null | undefined;
|
863
|
-
symbol: string;
|
864
|
-
name: string | null;
|
865
|
-
id: string;
|
866
|
-
icon: string;
|
867
|
-
address: string;
|
868
|
-
chainId: number;
|
869
|
-
decimals: number;
|
870
|
-
verified: boolean;
|
871
|
-
isTest: boolean;
|
872
|
-
isPoint: boolean;
|
873
|
-
isPreTGE: boolean;
|
874
|
-
};
|
875
|
-
id: string;
|
876
|
-
value: number;
|
877
|
-
campaignId: string;
|
878
|
-
amount: string | bigint;
|
879
|
-
dailyRewardsRecordId: string;
|
880
|
-
}[];
|
881
|
-
} | undefined;
|
882
|
-
status: string;
|
883
|
-
type: string;
|
884
|
-
name: string;
|
885
|
-
tokens: {
|
886
|
-
price?: number | null | undefined;
|
1058
|
+
};
|
1059
|
+
};
|
1060
|
+
};
|
1061
|
+
} & {
|
1062
|
+
opportunities: {
|
1063
|
+
":id": {
|
1064
|
+
post: {
|
1065
|
+
body: unknown;
|
1066
|
+
params: {
|
1067
|
+
campaignId?: string | undefined;
|
1068
|
+
id: string;
|
1069
|
+
};
|
1070
|
+
query: unknown;
|
1071
|
+
headers: {
|
1072
|
+
authorization: string;
|
1073
|
+
};
|
1074
|
+
response: {
|
1075
|
+
200: {
|
1076
|
+
Tokens: {
|
887
1077
|
symbol: string;
|
888
1078
|
name: string | null;
|
889
1079
|
id: string;
|
@@ -891,92 +1081,70 @@ export declare const v4: Elysia<"/v4", false, {
|
|
891
1081
|
address: string;
|
892
1082
|
chainId: number;
|
893
1083
|
decimals: number;
|
1084
|
+
displaySymbol: string;
|
894
1085
|
verified: boolean;
|
895
1086
|
isTest: boolean;
|
896
1087
|
isPoint: boolean;
|
897
1088
|
isPreTGE: boolean;
|
1089
|
+
isNative: boolean;
|
1090
|
+
price: number | null;
|
1091
|
+
}[];
|
1092
|
+
Protocols: {
|
1093
|
+
url: string;
|
1094
|
+
name: string;
|
1095
|
+
description: string;
|
1096
|
+
id: string;
|
1097
|
+
tags: string[];
|
1098
|
+
icon: string;
|
898
1099
|
}[];
|
1100
|
+
status: import("@db/api").$Enums.Status;
|
1101
|
+
type: string;
|
1102
|
+
name: string;
|
899
1103
|
description: string;
|
900
1104
|
id: string;
|
901
1105
|
tags: string[];
|
902
1106
|
identifier: string;
|
903
|
-
|
904
|
-
|
905
|
-
id: number;
|
906
|
-
icon: string;
|
907
|
-
};
|
908
|
-
action: string;
|
1107
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
1108
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
909
1109
|
chainId: number;
|
910
1110
|
howToSteps: string[];
|
1111
|
+
depositUrl: string | null;
|
1112
|
+
explorerAddress: string | null;
|
1113
|
+
mainProtocolId: string | null;
|
911
1114
|
tvl: number;
|
912
1115
|
apr: number;
|
913
1116
|
dailyRewards: number;
|
914
|
-
lastCampaignCreatedAt:
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
address: string;
|
921
|
-
} | undefined;
|
922
|
-
rootCampaignId?: string | undefined;
|
923
|
-
parentCampaignId?: string | undefined;
|
924
|
-
campaignStatus?: {
|
925
|
-
error?: string | undefined;
|
926
|
-
details?: any;
|
927
|
-
status: string;
|
928
|
-
campaignId: string;
|
929
|
-
computedUntil: string | number;
|
930
|
-
processingStarted: string | number;
|
931
|
-
} | undefined;
|
932
|
-
distributionChain?: {
|
933
|
-
name: string;
|
934
|
-
id: number;
|
935
|
-
icon: string;
|
936
|
-
} | undefined;
|
937
|
-
type: string;
|
938
|
-
id: string;
|
939
|
-
params: any;
|
940
|
-
subType: number | null;
|
941
|
-
chain: {
|
942
|
-
name: string;
|
943
|
-
id: number;
|
944
|
-
icon: string;
|
945
|
-
};
|
946
|
-
computeChainId: number;
|
947
|
-
distributionChainId: number;
|
948
|
-
campaignId: string;
|
949
|
-
rewardTokenId: string;
|
950
|
-
amount: string;
|
951
|
-
opportunityId: string;
|
952
|
-
startTimestamp: string | number;
|
953
|
-
endTimestamp: string | number;
|
954
|
-
creatorAddress: string;
|
955
|
-
createdAt: string;
|
956
|
-
rewardToken: {
|
957
|
-
price?: number | null | undefined;
|
958
|
-
symbol: string;
|
959
|
-
name: string | null;
|
960
|
-
id: string;
|
961
|
-
icon: string;
|
962
|
-
address: string;
|
963
|
-
chainId: number;
|
964
|
-
decimals: number;
|
965
|
-
verified: boolean;
|
966
|
-
isTest: boolean;
|
967
|
-
isPoint: boolean;
|
968
|
-
isPreTGE: boolean;
|
969
|
-
};
|
970
|
-
}[];
|
971
|
-
}[];
|
972
|
-
readonly 404: {
|
973
|
-
message: string;
|
1117
|
+
lastCampaignCreatedAt: Date;
|
1118
|
+
} | {
|
1119
|
+
id: string;
|
1120
|
+
chainId: number;
|
1121
|
+
type: string;
|
1122
|
+
identifier: string;
|
974
1123
|
name: string;
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
1124
|
+
status: "PAST" | "LIVE" | "SOON";
|
1125
|
+
action: any;
|
1126
|
+
tokens: ({
|
1127
|
+
symbol: string;
|
1128
|
+
name: string | null;
|
1129
|
+
id: string;
|
1130
|
+
icon: string;
|
1131
|
+
address: string;
|
1132
|
+
chainId: number;
|
1133
|
+
decimals: number;
|
1134
|
+
verified: boolean;
|
1135
|
+
isTest: boolean;
|
1136
|
+
isPoint: boolean;
|
1137
|
+
isPreTGE: boolean;
|
1138
|
+
isNative: boolean;
|
1139
|
+
} & {
|
1140
|
+
price?: number | null | undefined;
|
1141
|
+
})[];
|
1142
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "punchswap" | "gamma" | "stability" | "termmax" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
1143
|
+
description: string;
|
1144
|
+
howToSteps: string[];
|
1145
|
+
depositUrl: string | undefined;
|
1146
|
+
explorerAddress: string | undefined;
|
1147
|
+
tags: string[];
|
980
1148
|
};
|
981
1149
|
};
|
982
1150
|
};
|
@@ -985,80 +1153,65 @@ export declare const v4: Elysia<"/v4", false, {
|
|
985
1153
|
} & {
|
986
1154
|
opportunities: {
|
987
1155
|
":id": {
|
988
|
-
|
989
|
-
|
990
|
-
body:
|
1156
|
+
override: {
|
1157
|
+
patch: {
|
1158
|
+
body: {
|
1159
|
+
name?: string | undefined;
|
1160
|
+
description?: string | undefined;
|
1161
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1162
|
+
howToSteps?: string[] | undefined;
|
1163
|
+
depositUrl?: string | undefined;
|
1164
|
+
explorerAddress?: string | undefined;
|
1165
|
+
};
|
991
1166
|
params: {
|
992
1167
|
id: string;
|
993
1168
|
};
|
994
|
-
query:
|
995
|
-
|
996
|
-
|
997
|
-
test?: boolean | undefined;
|
1169
|
+
query: unknown;
|
1170
|
+
headers: {
|
1171
|
+
authorization: string;
|
998
1172
|
};
|
999
|
-
headers: unknown;
|
1000
1173
|
response: {
|
1001
1174
|
200: {
|
1002
|
-
|
1003
|
-
url: string;
|
1004
|
-
name: string;
|
1005
|
-
description: string;
|
1006
|
-
id: string;
|
1007
|
-
tags: string[];
|
1008
|
-
icon: string;
|
1009
|
-
} | null | undefined;
|
1010
|
-
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;
|
1011
|
-
depositUrl?: string | undefined;
|
1012
|
-
explorerAddress?: string | undefined;
|
1013
|
-
aprRecord?: {
|
1014
|
-
timestamp: string | bigint;
|
1015
|
-
cumulated: number;
|
1016
|
-
breakdowns: {
|
1017
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
1018
|
-
identifier: string;
|
1019
|
-
value: number;
|
1020
|
-
}[];
|
1021
|
-
} | undefined;
|
1022
|
-
tvlRecord?: {
|
1023
|
-
total: number;
|
1024
|
-
timestamp: string | bigint;
|
1025
|
-
breakdowns: {
|
1026
|
-
type: "TOKEN" | "PROTOCOL";
|
1027
|
-
identifier: string;
|
1028
|
-
value: number;
|
1029
|
-
}[];
|
1030
|
-
} | undefined;
|
1031
|
-
rewardsRecord?: {
|
1032
|
-
total: number;
|
1033
|
-
id: string;
|
1034
|
-
timestamp: string | bigint;
|
1035
|
-
breakdowns: {
|
1036
|
-
token: {
|
1037
|
-
price?: number | null | undefined;
|
1038
|
-
symbol: string;
|
1039
|
-
name: string | null;
|
1040
|
-
id: string;
|
1041
|
-
icon: string;
|
1042
|
-
address: string;
|
1043
|
-
chainId: number;
|
1044
|
-
decimals: number;
|
1045
|
-
verified: boolean;
|
1046
|
-
isTest: boolean;
|
1047
|
-
isPoint: boolean;
|
1048
|
-
isPreTGE: boolean;
|
1049
|
-
};
|
1050
|
-
id: string;
|
1051
|
-
value: number;
|
1052
|
-
campaignId: string;
|
1053
|
-
amount: string | bigint;
|
1054
|
-
dailyRewardsRecordId: string;
|
1055
|
-
}[];
|
1056
|
-
} | undefined;
|
1057
|
-
status: string;
|
1175
|
+
status: import("@db/api").$Enums.Status;
|
1058
1176
|
type: string;
|
1059
1177
|
name: string;
|
1060
|
-
|
1061
|
-
|
1178
|
+
description: string;
|
1179
|
+
id: string;
|
1180
|
+
tags: string[];
|
1181
|
+
identifier: string;
|
1182
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
1183
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1184
|
+
chainId: number;
|
1185
|
+
howToSteps: string[];
|
1186
|
+
depositUrl: string | null;
|
1187
|
+
explorerAddress: string | null;
|
1188
|
+
mainProtocolId: string | null;
|
1189
|
+
tvl: number;
|
1190
|
+
apr: number;
|
1191
|
+
dailyRewards: number;
|
1192
|
+
lastCampaignCreatedAt: Date;
|
1193
|
+
};
|
1194
|
+
};
|
1195
|
+
};
|
1196
|
+
};
|
1197
|
+
};
|
1198
|
+
};
|
1199
|
+
} & {
|
1200
|
+
opportunities: {
|
1201
|
+
":id": {
|
1202
|
+
override: {
|
1203
|
+
delete: {
|
1204
|
+
body: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
1205
|
+
params: {
|
1206
|
+
id: string;
|
1207
|
+
};
|
1208
|
+
query: unknown;
|
1209
|
+
headers: {
|
1210
|
+
authorization: string;
|
1211
|
+
};
|
1212
|
+
response: {
|
1213
|
+
200: {
|
1214
|
+
Tokens: {
|
1062
1215
|
symbol: string;
|
1063
1216
|
name: string | null;
|
1064
1217
|
id: string;
|
@@ -1066,222 +1219,70 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1066
1219
|
address: string;
|
1067
1220
|
chainId: number;
|
1068
1221
|
decimals: number;
|
1222
|
+
displaySymbol: string;
|
1069
1223
|
verified: boolean;
|
1070
1224
|
isTest: boolean;
|
1071
1225
|
isPoint: boolean;
|
1072
1226
|
isPreTGE: boolean;
|
1227
|
+
isNative: boolean;
|
1228
|
+
price: number | null;
|
1229
|
+
}[];
|
1230
|
+
Protocols: {
|
1231
|
+
url: string;
|
1232
|
+
name: string;
|
1233
|
+
description: string;
|
1234
|
+
id: string;
|
1235
|
+
tags: string[];
|
1236
|
+
icon: string;
|
1073
1237
|
}[];
|
1238
|
+
status: import("@db/api").$Enums.Status;
|
1239
|
+
type: string;
|
1240
|
+
name: string;
|
1074
1241
|
description: string;
|
1075
1242
|
id: string;
|
1076
1243
|
tags: string[];
|
1077
1244
|
identifier: string;
|
1078
|
-
|
1079
|
-
|
1080
|
-
id: number;
|
1081
|
-
icon: string;
|
1082
|
-
};
|
1083
|
-
action: string;
|
1245
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
1246
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1084
1247
|
chainId: number;
|
1085
1248
|
howToSteps: string[];
|
1249
|
+
depositUrl: string | null;
|
1250
|
+
explorerAddress: string | null;
|
1251
|
+
mainProtocolId: string | null;
|
1086
1252
|
tvl: number;
|
1087
1253
|
apr: number;
|
1088
1254
|
dailyRewards: number;
|
1089
|
-
lastCampaignCreatedAt:
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
address: string;
|
1096
|
-
} | undefined;
|
1097
|
-
rootCampaignId?: string | undefined;
|
1098
|
-
parentCampaignId?: string | undefined;
|
1099
|
-
campaignStatus?: {
|
1100
|
-
error?: string | undefined;
|
1101
|
-
details?: any;
|
1102
|
-
status: string;
|
1103
|
-
campaignId: string;
|
1104
|
-
computedUntil: string | number;
|
1105
|
-
processingStarted: string | number;
|
1106
|
-
} | undefined;
|
1107
|
-
distributionChain?: {
|
1108
|
-
name: string;
|
1109
|
-
id: number;
|
1110
|
-
icon: string;
|
1111
|
-
} | undefined;
|
1112
|
-
type: string;
|
1113
|
-
id: string;
|
1114
|
-
params: any;
|
1115
|
-
subType: number | null;
|
1116
|
-
chain: {
|
1117
|
-
name: string;
|
1118
|
-
id: number;
|
1119
|
-
icon: string;
|
1120
|
-
};
|
1121
|
-
computeChainId: number;
|
1122
|
-
distributionChainId: number;
|
1123
|
-
campaignId: string;
|
1124
|
-
rewardTokenId: string;
|
1125
|
-
amount: string;
|
1126
|
-
opportunityId: string;
|
1127
|
-
startTimestamp: string | number;
|
1128
|
-
endTimestamp: string | number;
|
1129
|
-
creatorAddress: string;
|
1130
|
-
createdAt: string;
|
1131
|
-
rewardToken: {
|
1132
|
-
price?: number | null | undefined;
|
1133
|
-
symbol: string;
|
1134
|
-
name: string | null;
|
1135
|
-
id: string;
|
1136
|
-
icon: string;
|
1137
|
-
address: string;
|
1138
|
-
chainId: number;
|
1139
|
-
decimals: number;
|
1140
|
-
verified: boolean;
|
1141
|
-
isTest: boolean;
|
1142
|
-
isPoint: boolean;
|
1143
|
-
isPreTGE: boolean;
|
1144
|
-
};
|
1145
|
-
}[];
|
1146
|
-
};
|
1147
|
-
readonly 404: {
|
1148
|
-
message: string;
|
1255
|
+
lastCampaignCreatedAt: Date;
|
1256
|
+
} | {
|
1257
|
+
id: string;
|
1258
|
+
chainId: number;
|
1259
|
+
type: string;
|
1260
|
+
identifier: string;
|
1149
1261
|
name: string;
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
type?: string | undefined;
|
1175
|
-
name?: string | undefined;
|
1176
|
-
tokens?: string | undefined;
|
1177
|
-
items?: number | undefined;
|
1178
|
-
tags?: string | undefined;
|
1179
|
-
identifier?: string | undefined;
|
1180
|
-
page?: number | undefined;
|
1181
|
-
action?: string | undefined;
|
1182
|
-
campaignId?: string | undefined;
|
1183
|
-
creatorAddress?: string | undefined;
|
1184
|
-
chainId?: string | undefined;
|
1185
|
-
mainProtocolId?: string | undefined;
|
1186
|
-
campaigns?: boolean | undefined;
|
1187
|
-
point?: boolean | undefined;
|
1188
|
-
rewardTokenSymbol?: string | undefined;
|
1189
|
-
order?: string | undefined;
|
1190
|
-
test?: boolean | undefined;
|
1191
|
-
minimumTvl?: number | undefined;
|
1192
|
-
};
|
1193
|
-
headers: unknown;
|
1194
|
-
response: {
|
1195
|
-
200: {
|
1196
|
-
sum: string;
|
1197
|
-
};
|
1198
|
-
};
|
1199
|
-
};
|
1200
|
-
};
|
1201
|
-
};
|
1202
|
-
};
|
1203
|
-
} & {
|
1204
|
-
opportunities: {
|
1205
|
-
aggregate: {
|
1206
|
-
max: {
|
1207
|
-
":field": {
|
1208
|
-
get: {
|
1209
|
-
body: unknown;
|
1210
|
-
params: {
|
1211
|
-
field: never;
|
1212
|
-
};
|
1213
|
-
query: {
|
1214
|
-
status?: string | undefined;
|
1215
|
-
search?: string | undefined;
|
1216
|
-
sort?: string | undefined;
|
1217
|
-
type?: string | undefined;
|
1218
|
-
name?: string | undefined;
|
1219
|
-
tokens?: string | undefined;
|
1220
|
-
items?: number | undefined;
|
1221
|
-
tags?: string | undefined;
|
1222
|
-
identifier?: string | undefined;
|
1223
|
-
page?: number | undefined;
|
1224
|
-
action?: string | undefined;
|
1225
|
-
campaignId?: string | undefined;
|
1226
|
-
creatorAddress?: string | undefined;
|
1227
|
-
chainId?: string | undefined;
|
1228
|
-
mainProtocolId?: string | undefined;
|
1229
|
-
campaigns?: boolean | undefined;
|
1230
|
-
point?: boolean | undefined;
|
1231
|
-
rewardTokenSymbol?: string | undefined;
|
1232
|
-
order?: string | undefined;
|
1233
|
-
test?: boolean | undefined;
|
1234
|
-
minimumTvl?: number | undefined;
|
1235
|
-
};
|
1236
|
-
headers: unknown;
|
1237
|
-
response: {
|
1238
|
-
200: {
|
1239
|
-
max: string;
|
1240
|
-
};
|
1241
|
-
};
|
1242
|
-
};
|
1243
|
-
};
|
1244
|
-
};
|
1245
|
-
};
|
1246
|
-
};
|
1247
|
-
} & {
|
1248
|
-
opportunities: {
|
1249
|
-
aggregate: {
|
1250
|
-
min: {
|
1251
|
-
":field": {
|
1252
|
-
get: {
|
1253
|
-
body: unknown;
|
1254
|
-
params: {
|
1255
|
-
field: never;
|
1256
|
-
};
|
1257
|
-
query: {
|
1258
|
-
status?: string | undefined;
|
1259
|
-
search?: string | undefined;
|
1260
|
-
sort?: string | undefined;
|
1261
|
-
type?: string | undefined;
|
1262
|
-
name?: string | undefined;
|
1263
|
-
tokens?: string | undefined;
|
1264
|
-
items?: number | undefined;
|
1265
|
-
tags?: string | undefined;
|
1266
|
-
identifier?: string | undefined;
|
1267
|
-
page?: number | undefined;
|
1268
|
-
action?: string | undefined;
|
1269
|
-
campaignId?: string | undefined;
|
1270
|
-
creatorAddress?: string | undefined;
|
1271
|
-
chainId?: string | undefined;
|
1272
|
-
mainProtocolId?: string | undefined;
|
1273
|
-
campaigns?: boolean | undefined;
|
1274
|
-
point?: boolean | undefined;
|
1275
|
-
rewardTokenSymbol?: string | undefined;
|
1276
|
-
order?: string | undefined;
|
1277
|
-
test?: boolean | undefined;
|
1278
|
-
minimumTvl?: number | undefined;
|
1279
|
-
};
|
1280
|
-
headers: unknown;
|
1281
|
-
response: {
|
1282
|
-
200: {
|
1283
|
-
min: string;
|
1284
|
-
};
|
1262
|
+
status: "PAST" | "LIVE" | "SOON";
|
1263
|
+
action: any;
|
1264
|
+
tokens: ({
|
1265
|
+
symbol: string;
|
1266
|
+
name: string | null;
|
1267
|
+
id: string;
|
1268
|
+
icon: string;
|
1269
|
+
address: string;
|
1270
|
+
chainId: number;
|
1271
|
+
decimals: number;
|
1272
|
+
verified: boolean;
|
1273
|
+
isTest: boolean;
|
1274
|
+
isPoint: boolean;
|
1275
|
+
isPreTGE: boolean;
|
1276
|
+
isNative: boolean;
|
1277
|
+
} & {
|
1278
|
+
price?: number | null | undefined;
|
1279
|
+
})[];
|
1280
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "punchswap" | "gamma" | "stability" | "termmax" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
1281
|
+
description: string;
|
1282
|
+
howToSteps: string[];
|
1283
|
+
depositUrl: string | undefined;
|
1284
|
+
explorerAddress: string | undefined;
|
1285
|
+
tags: string[];
|
1285
1286
|
};
|
1286
1287
|
};
|
1287
1288
|
};
|
@@ -1535,6 +1536,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1535
1536
|
query: {
|
1536
1537
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1537
1538
|
type?: string | undefined;
|
1539
|
+
id?: string | undefined;
|
1538
1540
|
items?: number | undefined;
|
1539
1541
|
subType?: number | undefined;
|
1540
1542
|
page?: number | undefined;
|
@@ -1762,7 +1764,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1762
1764
|
timestamp: bigint;
|
1763
1765
|
walletCount: number;
|
1764
1766
|
}[];
|
1765
|
-
tvlInflowPerDollar:
|
1767
|
+
tvlInflowPerDollar: number;
|
1766
1768
|
};
|
1767
1769
|
};
|
1768
1770
|
};
|
@@ -1856,6 +1858,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1856
1858
|
query: {
|
1857
1859
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1858
1860
|
type?: string | undefined;
|
1861
|
+
id?: string | undefined;
|
1859
1862
|
items?: number | undefined;
|
1860
1863
|
subType?: number | undefined;
|
1861
1864
|
page?: number | undefined;
|
@@ -1973,6 +1976,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1973
1976
|
query: {
|
1974
1977
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1975
1978
|
type?: string | undefined;
|
1979
|
+
id?: string | undefined;
|
1976
1980
|
items?: number | undefined;
|
1977
1981
|
subType?: number | undefined;
|
1978
1982
|
page?: number | undefined;
|
@@ -2012,6 +2016,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2012
2016
|
query: {
|
2013
2017
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
2014
2018
|
type?: string | undefined;
|
2019
|
+
id?: string | undefined;
|
2015
2020
|
items?: number | undefined;
|
2016
2021
|
subType?: number | undefined;
|
2017
2022
|
page?: number | undefined;
|
@@ -2056,6 +2061,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2056
2061
|
query: {
|
2057
2062
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
2058
2063
|
type?: string | undefined;
|
2064
|
+
id?: string | undefined;
|
2059
2065
|
items?: number | undefined;
|
2060
2066
|
subType?: number | undefined;
|
2061
2067
|
page?: number | undefined;
|
@@ -2101,6 +2107,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2101
2107
|
query: {
|
2102
2108
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
2103
2109
|
type?: string | undefined;
|
2110
|
+
id?: string | undefined;
|
2104
2111
|
items?: number | undefined;
|
2105
2112
|
subType?: number | undefined;
|
2106
2113
|
page?: number | undefined;
|
@@ -5489,7 +5496,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5489
5496
|
pastCampaigns: number;
|
5490
5497
|
liveCampaigns: number;
|
5491
5498
|
futureCampaigns: number;
|
5492
|
-
|
5499
|
+
totalTvl: number;
|
5500
|
+
totalWallets: number;
|
5493
5501
|
totalCampaigns: number;
|
5494
5502
|
creatorId: string | null;
|
5495
5503
|
};
|
@@ -5666,7 +5674,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5666
5674
|
timestamp: bigint;
|
5667
5675
|
walletCount: number;
|
5668
5676
|
}[];
|
5669
|
-
tvlInflowPerDollar:
|
5677
|
+
tvlInflowPerDollar: number;
|
5670
5678
|
};
|
5671
5679
|
};
|
5672
5680
|
};
|