@merkl/api 0.10.236 → 0.10.238

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,40 +72,133 @@ export declare const v4: Elysia<"/v4", false, {
72
72
  };
73
73
  headers: unknown;
74
74
  response: {
75
- 200: {
76
- aprRecord: {
75
+ 200: ({
76
+ protocol?: {
77
+ name: string;
78
+ url: string;
79
+ description: string;
80
+ id: string;
81
+ tags: string[];
82
+ icon: string;
83
+ } | null | undefined;
84
+ depositUrl?: string | undefined;
85
+ aprRecord?: {
86
+ timestamp: string | bigint;
77
87
  cumulated: number;
78
- timestamp: bigint;
79
88
  breakdowns: {
80
- type: import("../../../database/api/.generated").$Enums.AprType;
89
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
81
90
  id: number;
82
91
  identifier: string;
83
92
  value: number;
84
93
  aprRecordId: string;
85
94
  }[];
86
- };
87
- tvlRecord: {
88
- id: string;
95
+ } | undefined;
96
+ tvlRecord?: {
89
97
  total: number;
90
- timestamp: bigint;
98
+ timestamp: string | bigint;
91
99
  breakdowns: {
92
- type: import("../../../database/api/.generated").$Enums.TvlType;
100
+ type: "TOKEN" | "PROTOCOL";
93
101
  id: number;
94
102
  identifier: string;
95
103
  value: number;
96
104
  tvlRecordId: string;
97
105
  }[];
98
- };
99
- rewardsRecord: {
100
- id: string;
106
+ } | undefined;
107
+ rewardsRecord?: {
101
108
  total: number;
102
- timestamp: bigint;
109
+ id: string;
110
+ timestamp: string | bigint;
103
111
  breakdowns: {
112
+ token: {
113
+ price?: number | null | undefined;
114
+ symbol: string;
115
+ name: string | null;
116
+ id: string;
117
+ icon: string;
118
+ chainId: number;
119
+ address: string;
120
+ decimals: number;
121
+ verified: boolean;
122
+ isTest: boolean;
123
+ };
104
124
  id: number;
105
125
  value: number;
106
126
  campaignId: string;
127
+ amount: string | bigint;
107
128
  dailyRewardsRecordId: string;
129
+ }[];
130
+ } | undefined;
131
+ name: string;
132
+ type: string;
133
+ tokens: {
134
+ price?: number | null | undefined;
135
+ symbol: string;
136
+ name: string | null;
137
+ id: string;
138
+ icon: string;
139
+ chainId: number;
140
+ address: string;
141
+ decimals: number;
142
+ verified: boolean;
143
+ isTest: boolean;
144
+ }[];
145
+ id: string;
146
+ status: string;
147
+ tags: string[];
148
+ identifier: string;
149
+ chain: {
150
+ name: string;
151
+ id: number;
152
+ icon: string;
153
+ };
154
+ chainId: number;
155
+ action: string;
156
+ tvl: number;
157
+ apr: number;
158
+ dailyRewards: number;
159
+ } | null)[];
160
+ } | {
161
+ 200: never;
162
+ } | {
163
+ 200: (Response | ({
164
+ protocol?: {
165
+ name: string;
166
+ url: string;
167
+ description: string;
168
+ id: string;
169
+ tags: string[];
170
+ icon: string;
171
+ } | null | undefined;
172
+ depositUrl?: string | undefined;
173
+ aprRecord?: {
174
+ timestamp: string | bigint;
175
+ cumulated: number;
176
+ breakdowns: {
177
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
178
+ id: number;
179
+ identifier: string;
180
+ value: number;
181
+ aprRecordId: string;
182
+ }[];
183
+ } | undefined;
184
+ tvlRecord?: {
185
+ total: number;
186
+ timestamp: string | bigint;
187
+ breakdowns: {
188
+ type: "TOKEN" | "PROTOCOL";
189
+ id: number;
190
+ identifier: string;
191
+ value: number;
192
+ tvlRecordId: string;
193
+ }[];
194
+ } | undefined;
195
+ rewardsRecord?: {
196
+ total: number;
197
+ id: string;
198
+ timestamp: string | bigint;
199
+ breakdowns: {
108
200
  token: {
201
+ price?: number | null | undefined;
109
202
  symbol: string;
110
203
  name: string | null;
111
204
  id: string;
@@ -113,16 +206,20 @@ export declare const v4: Elysia<"/v4", false, {
113
206
  chainId: number;
114
207
  address: string;
115
208
  decimals: number;
116
- displaySymbol: string;
117
209
  verified: boolean;
118
210
  isTest: boolean;
119
- price: number | null;
120
211
  };
121
- amount: bigint;
212
+ id: number;
213
+ value: number;
214
+ campaignId: string;
215
+ amount: string | bigint;
216
+ dailyRewardsRecordId: string;
122
217
  }[];
123
- };
124
- id: string;
125
- tokens: ({
218
+ } | undefined;
219
+ name: string;
220
+ type: string;
221
+ tokens: {
222
+ price?: number | null | undefined;
126
223
  symbol: string;
127
224
  name: string | null;
128
225
  id: string;
@@ -132,34 +229,280 @@ export declare const v4: Elysia<"/v4", false, {
132
229
  decimals: number;
133
230
  verified: boolean;
134
231
  isTest: boolean;
135
- } & {
136
- price?: number | null | undefined;
137
- })[];
232
+ }[];
233
+ id: string;
234
+ status: string;
235
+ tags: string[];
236
+ identifier: string;
138
237
  chain: {
139
238
  name: string;
140
239
  id: number;
141
240
  icon: string;
142
241
  };
143
- protocol: {
242
+ chainId: number;
243
+ action: string;
244
+ tvl: number;
245
+ apr: number;
246
+ dailyRewards: number;
247
+ } | null)[] | {
248
+ 200: ({
249
+ protocol?: {
250
+ name: string;
251
+ url: string;
252
+ description: string;
253
+ id: string;
254
+ tags: string[];
255
+ icon: string;
256
+ } | null | undefined;
257
+ depositUrl?: string | undefined;
258
+ aprRecord?: {
259
+ timestamp: string | bigint;
260
+ cumulated: number;
261
+ breakdowns: {
262
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
263
+ id: number;
264
+ identifier: string;
265
+ value: number;
266
+ aprRecordId: string;
267
+ }[];
268
+ } | undefined;
269
+ tvlRecord?: {
270
+ total: number;
271
+ timestamp: string | bigint;
272
+ breakdowns: {
273
+ type: "TOKEN" | "PROTOCOL";
274
+ id: number;
275
+ identifier: string;
276
+ value: number;
277
+ tvlRecordId: string;
278
+ }[];
279
+ } | undefined;
280
+ rewardsRecord?: {
281
+ total: number;
282
+ id: string;
283
+ timestamp: string | bigint;
284
+ breakdowns: {
285
+ token: {
286
+ price?: number | null | undefined;
287
+ symbol: string;
288
+ name: string | null;
289
+ id: string;
290
+ icon: string;
291
+ chainId: number;
292
+ address: string;
293
+ decimals: number;
294
+ verified: boolean;
295
+ isTest: boolean;
296
+ };
297
+ id: number;
298
+ value: number;
299
+ campaignId: string;
300
+ amount: string | bigint;
301
+ dailyRewardsRecordId: string;
302
+ }[];
303
+ } | undefined;
304
+ name: string;
305
+ type: string;
306
+ tokens: {
307
+ price?: number | null | undefined;
308
+ symbol: string;
309
+ name: string | null;
310
+ id: string;
311
+ icon: string;
312
+ chainId: number;
313
+ address: string;
314
+ decimals: number;
315
+ verified: boolean;
316
+ isTest: boolean;
317
+ }[];
318
+ id: string;
319
+ status: string;
320
+ tags: string[];
321
+ identifier: string;
322
+ chain: {
323
+ name: string;
324
+ id: number;
325
+ icon: string;
326
+ };
327
+ chainId: number;
328
+ action: string;
329
+ tvl: number;
330
+ apr: number;
331
+ dailyRewards: number;
332
+ } | null)[];
333
+ }) & ({
334
+ protocol?: {
144
335
  name: string;
145
336
  url: string;
146
337
  description: string;
147
338
  id: string;
148
339
  tags: string[];
149
340
  icon: string;
341
+ } | null | undefined;
342
+ depositUrl?: string | undefined;
343
+ aprRecord?: {
344
+ timestamp: string | bigint;
345
+ cumulated: number;
346
+ breakdowns: {
347
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
348
+ id: number;
349
+ identifier: string;
350
+ value: number;
351
+ aprRecordId: string;
352
+ }[];
353
+ } | undefined;
354
+ tvlRecord?: {
355
+ total: number;
356
+ timestamp: string | bigint;
357
+ breakdowns: {
358
+ type: "TOKEN" | "PROTOCOL";
359
+ id: number;
360
+ identifier: string;
361
+ value: number;
362
+ tvlRecordId: string;
363
+ }[];
364
+ } | undefined;
365
+ rewardsRecord?: {
366
+ total: number;
367
+ id: string;
368
+ timestamp: string | bigint;
369
+ breakdowns: {
370
+ token: {
371
+ price?: number | null | undefined;
372
+ symbol: string;
373
+ name: string | null;
374
+ id: string;
375
+ icon: string;
376
+ chainId: number;
377
+ address: string;
378
+ decimals: number;
379
+ verified: boolean;
380
+ isTest: boolean;
381
+ };
382
+ id: number;
383
+ value: number;
384
+ campaignId: string;
385
+ amount: string | bigint;
386
+ dailyRewardsRecordId: string;
387
+ }[];
150
388
  } | undefined;
151
389
  name: string;
152
- type: import("../../../database/api/.generated").$Enums.CampaignType;
153
- status: import("../../../database/api/.generated").$Enums.Status;
390
+ type: string;
391
+ tokens: {
392
+ price?: number | null | undefined;
393
+ symbol: string;
394
+ name: string | null;
395
+ id: string;
396
+ icon: string;
397
+ chainId: number;
398
+ address: string;
399
+ decimals: number;
400
+ verified: boolean;
401
+ isTest: boolean;
402
+ }[];
403
+ id: string;
404
+ status: string;
154
405
  tags: string[];
155
406
  identifier: string;
407
+ chain: {
408
+ name: string;
409
+ id: number;
410
+ icon: string;
411
+ };
156
412
  chainId: number;
157
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
158
- depositUrl: string | null;
413
+ action: string;
159
414
  tvl: number;
160
415
  apr: number;
161
416
  dailyRewards: number;
162
- }[];
417
+ } | null)[];
418
+ } | {
419
+ 200: {
420
+ 200: ({
421
+ protocol?: {
422
+ name: string;
423
+ url: string;
424
+ description: string;
425
+ id: string;
426
+ tags: string[];
427
+ icon: string;
428
+ } | null | undefined;
429
+ depositUrl?: string | undefined;
430
+ aprRecord?: {
431
+ timestamp: string | bigint;
432
+ cumulated: number;
433
+ breakdowns: {
434
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
435
+ id: number;
436
+ identifier: string;
437
+ value: number;
438
+ aprRecordId: string;
439
+ }[];
440
+ } | undefined;
441
+ tvlRecord?: {
442
+ total: number;
443
+ timestamp: string | bigint;
444
+ breakdowns: {
445
+ type: "TOKEN" | "PROTOCOL";
446
+ id: number;
447
+ identifier: string;
448
+ value: number;
449
+ tvlRecordId: string;
450
+ }[];
451
+ } | undefined;
452
+ rewardsRecord?: {
453
+ total: number;
454
+ id: string;
455
+ timestamp: string | bigint;
456
+ breakdowns: {
457
+ token: {
458
+ price?: number | null | undefined;
459
+ symbol: string;
460
+ name: string | null;
461
+ id: string;
462
+ icon: string;
463
+ chainId: number;
464
+ address: string;
465
+ decimals: number;
466
+ verified: boolean;
467
+ isTest: boolean;
468
+ };
469
+ id: number;
470
+ value: number;
471
+ campaignId: string;
472
+ amount: string | bigint;
473
+ dailyRewardsRecordId: string;
474
+ }[];
475
+ } | undefined;
476
+ name: string;
477
+ type: string;
478
+ tokens: {
479
+ price?: number | null | undefined;
480
+ symbol: string;
481
+ name: string | null;
482
+ id: string;
483
+ icon: string;
484
+ chainId: number;
485
+ address: string;
486
+ decimals: number;
487
+ verified: boolean;
488
+ isTest: boolean;
489
+ }[];
490
+ id: string;
491
+ status: string;
492
+ tags: string[];
493
+ identifier: string;
494
+ chain: {
495
+ name: string;
496
+ id: number;
497
+ icon: string;
498
+ };
499
+ chainId: number;
500
+ action: string;
501
+ tvl: number;
502
+ apr: number;
503
+ dailyRewards: number;
504
+ } | null)[];
505
+ };
163
506
  };
164
507
  };
165
508
  };
@@ -212,6 +555,7 @@ export declare const v4: Elysia<"/v4", false, {
212
555
  tags: string[];
213
556
  icon: string;
214
557
  } | null | undefined;
558
+ depositUrl?: string | undefined;
215
559
  aprRecord?: {
216
560
  timestamp: string | bigint;
217
561
  cumulated: number;
@@ -321,6 +665,7 @@ export declare const v4: Elysia<"/v4", false, {
321
665
  tags: string[];
322
666
  icon: string;
323
667
  } | null | undefined;
668
+ depositUrl?: string | undefined;
324
669
  aprRecord?: {
325
670
  timestamp: string | bigint;
326
671
  cumulated: number;