@merkl/api 0.10.237 → 0.10.238

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.
@@ -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,17 +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
- depositUrl: string | undefined;
126
- tokens: ({
218
+ } | undefined;
219
+ name: string;
220
+ type: string;
221
+ tokens: {
222
+ price?: number | null | undefined;
127
223
  symbol: string;
128
224
  name: string | null;
129
225
  id: string;
@@ -133,33 +229,280 @@ export declare const v4: Elysia<"/v4", false, {
133
229
  decimals: number;
134
230
  verified: boolean;
135
231
  isTest: boolean;
136
- } & {
137
- price?: number | null | undefined;
138
- })[];
232
+ }[];
233
+ id: string;
234
+ status: string;
235
+ tags: string[];
236
+ identifier: string;
139
237
  chain: {
140
238
  name: string;
141
239
  id: number;
142
240
  icon: string;
143
241
  };
144
- 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?: {
145
335
  name: string;
146
336
  url: string;
147
337
  description: string;
148
338
  id: string;
149
339
  tags: string[];
150
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
+ }[];
151
388
  } | undefined;
152
389
  name: string;
153
- type: import("../../../database/api/.generated").$Enums.CampaignType;
154
- 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;
155
405
  tags: string[];
156
406
  identifier: string;
407
+ chain: {
408
+ name: string;
409
+ id: number;
410
+ icon: string;
411
+ };
157
412
  chainId: number;
158
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
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
  };