@merkl/api 0.10.238 → 0.10.239

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,133 +72,40 @@ export declare const v4: Elysia<"/v4", false, {
72
72
  };
73
73
  headers: unknown;
74
74
  response: {
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;
75
+ 200: {
76
+ aprRecord: {
87
77
  cumulated: number;
78
+ timestamp: bigint;
88
79
  breakdowns: {
89
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
80
+ type: import("../../../database/api/.generated").$Enums.AprType;
90
81
  id: number;
91
82
  identifier: string;
92
83
  value: number;
93
84
  aprRecordId: string;
94
85
  }[];
95
- } | undefined;
96
- tvlRecord?: {
86
+ };
87
+ tvlRecord: {
88
+ id: string;
97
89
  total: number;
98
- timestamp: string | bigint;
90
+ timestamp: bigint;
99
91
  breakdowns: {
100
- type: "TOKEN" | "PROTOCOL";
92
+ type: import("../../../database/api/.generated").$Enums.TvlType;
101
93
  id: number;
102
94
  identifier: string;
103
95
  value: number;
104
96
  tvlRecordId: string;
105
97
  }[];
106
- } | undefined;
107
- rewardsRecord?: {
108
- total: number;
109
- id: string;
110
- timestamp: string | bigint;
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
- };
124
- id: number;
125
- value: number;
126
- campaignId: string;
127
- amount: string | bigint;
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
98
  };
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;
99
+ rewardsRecord: {
168
100
  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
101
  total: number;
186
- timestamp: string | bigint;
102
+ timestamp: bigint;
187
103
  breakdowns: {
188
- type: "TOKEN" | "PROTOCOL";
189
104
  id: number;
190
- identifier: string;
191
105
  value: number;
192
- tvlRecordId: string;
193
- }[];
194
- } | undefined;
195
- rewardsRecord?: {
196
- total: number;
197
- id: string;
198
- timestamp: string | bigint;
199
- breakdowns: {
106
+ campaignId: string;
107
+ dailyRewardsRecordId: string;
200
108
  token: {
201
- price?: number | null | undefined;
202
109
  symbol: string;
203
110
  name: string | null;
204
111
  id: string;
@@ -206,20 +113,17 @@ export declare const v4: Elysia<"/v4", false, {
206
113
  chainId: number;
207
114
  address: string;
208
115
  decimals: number;
116
+ displaySymbol: string;
209
117
  verified: boolean;
210
118
  isTest: boolean;
119
+ price: number | null;
211
120
  };
212
- id: number;
213
- value: number;
214
- campaignId: string;
215
- amount: string | bigint;
216
- dailyRewardsRecordId: string;
121
+ amount: bigint;
217
122
  }[];
218
- } | undefined;
219
- name: string;
220
- type: string;
221
- tokens: {
222
- price?: number | null | undefined;
123
+ };
124
+ id: string;
125
+ depositUrl: string | undefined;
126
+ tokens: ({
223
127
  symbol: string;
224
128
  name: string | null;
225
129
  id: string;
@@ -229,280 +133,33 @@ export declare const v4: Elysia<"/v4", false, {
229
133
  decimals: number;
230
134
  verified: boolean;
231
135
  isTest: boolean;
232
- }[];
233
- id: string;
234
- status: string;
235
- tags: string[];
236
- identifier: string;
136
+ } & {
137
+ price?: number | null | undefined;
138
+ })[];
237
139
  chain: {
238
140
  name: string;
239
141
  id: number;
240
142
  icon: string;
241
143
  };
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
+ protocol: {
335
145
  name: string;
336
146
  url: string;
337
147
  description: string;
338
148
  id: string;
339
149
  tags: string[];
340
150
  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
- }[];
388
151
  } | undefined;
389
152
  name: string;
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;
153
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
154
+ status: import("../../../database/api/.generated").$Enums.Status;
405
155
  tags: string[];
406
156
  identifier: string;
407
- chain: {
408
- name: string;
409
- id: number;
410
- icon: string;
411
- };
412
157
  chainId: number;
413
- action: string;
158
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
414
159
  tvl: number;
415
160
  apr: number;
416
161
  dailyRewards: number;
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
- };
162
+ }[];
506
163
  };
507
164
  };
508
165
  };