@merkl/api 0.10.158 → 0.10.159

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/eden/index.d.ts +57 -18
  2. package/dist/src/index.d.ts +25 -18
  3. package/dist/src/modules/v4/reward/reward.controller.d.ts +25 -18
  4. package/dist/src/modules/v4/reward/reward.controller.js +10 -1
  5. package/dist/src/modules/v4/reward/reward.model.d.ts +8 -0
  6. package/dist/src/modules/v4/reward/reward.model.js +9 -0
  7. package/dist/src/modules/v4/reward/reward.repository.d.ts +6 -1
  8. package/dist/src/modules/v4/reward/reward.repository.js +14 -0
  9. package/dist/src/modules/v4/reward/reward.service.d.ts +2 -1
  10. package/dist/src/modules/v4/reward/reward.service.js +18 -0
  11. package/dist/src/modules/v4/router.d.ts +25 -18
  12. package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
  13. package/dist/src/modules/v4/token/token.service.d.ts +2 -2
  14. package/dist/src/routes/v3/blacklist.d.ts +25 -18
  15. package/dist/src/routes/v3/campaignUnclaimed.js +5 -8
  16. package/dist/src/routes/v3/campaigns.d.ts +25 -18
  17. package/dist/src/routes/v3/campaignsInfo.d.ts +25 -18
  18. package/dist/src/routes/v3/campaignsRewardsReport.js +16 -16
  19. package/dist/src/routes/v3/claims.d.ts +1 -1
  20. package/dist/src/routes/v3/multiChainPositions.d.ts +25 -18
  21. package/dist/src/routes/v3/opportunity.d.ts +25 -18
  22. package/dist/src/routes/v3/positions.d.ts +25 -18
  23. package/dist/src/routes/v3/rewards.d.ts +25 -23
  24. package/dist/src/routes/v3/rewards.js +10 -4
  25. package/dist/src/routes/v3/rewardsReport.d.ts +8 -4
  26. package/dist/src/routes/v3/rewardsReport.js +20 -34
  27. package/dist/src/routes/v3/updates.d.ts +25 -18
  28. package/dist/src/routes/v3/userRewards.d.ts +25 -18
  29. package/dist/tsconfig.package.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/dist/src/routes/v3/ERC20Campaigns.d.ts +0 -2240
  32. package/dist/src/routes/v3/ERC20Campaigns.js +0 -63
  33. package/dist/src/routes/v3/rootForTimestamp.d.ts +0 -53
  34. package/dist/src/routes/v3/rootForTimestamp.js +0 -47
@@ -1,2240 +0,0 @@
1
- import type { App } from "../../index";
2
- import { UnsupportedNetwork } from "../../utils/error";
3
- export declare const query: import("@sinclair/typebox").TObject<{
4
- chainIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
5
- types: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>, import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
6
- live: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
- creatorTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
- }>;
9
- export declare const response: import("@sinclair/typebox").TObject<{}>;
10
- declare const _default: (app: App) => import("elysia").default<"", false, {
11
- decorator: {};
12
- store: {};
13
- derive: {};
14
- resolve: {};
15
- }, {
16
- type: {};
17
- error: {
18
- readonly HttpError: import("../../errors").HttpError;
19
- readonly BadRequestError: import("../../errors").BadRequestError;
20
- readonly ConflictError: import("../../errors").ConflictError;
21
- readonly NotFoundError: import("../../errors").NotFoundError;
22
- readonly UnauthorizedError: import("../../errors").UnauthorizedError;
23
- readonly InvalidParameter: import("../../utils/error").InvalidParameter;
24
- readonly UnsupportedNetwork: UnsupportedNetwork;
25
- readonly OpportunityNotFound: import("../../utils/error").OpportunityNotFound;
26
- readonly MerkleRootNotFound: import("../../utils/error").MerkleRootNotFound;
27
- readonly ValidationError: import("elysia").ValidationError;
28
- readonly InvalidCacheCall: import("../../utils/error").InvalidCacheCall;
29
- };
30
- }, {
31
- schema: {};
32
- macro: {};
33
- macroFn: {};
34
- }, false & {
35
- index: {
36
- get: {
37
- body: unknown;
38
- params: {};
39
- query: unknown;
40
- headers: unknown;
41
- response: {
42
- 200: string;
43
- };
44
- };
45
- };
46
- } & {
47
- v4: {};
48
- } & {
49
- v4: {
50
- opportunities: {
51
- index: {
52
- post: {
53
- body: {
54
- name?: string | undefined;
55
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
56
- tokens: {
57
- chainId: number;
58
- address: string;
59
- }[];
60
- status: "NONE" | "PAST" | "LIVE" | "SOON";
61
- identifier: string;
62
- chainId: number;
63
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
64
- protocols: string[];
65
- mainProtocol: string;
66
- };
67
- params: {};
68
- query: unknown;
69
- headers: {
70
- authorization: string;
71
- };
72
- response: {
73
- 200: void;
74
- };
75
- };
76
- };
77
- };
78
- } & {
79
- opportunities: {
80
- ":id": {
81
- get: {
82
- body: unknown;
83
- params: {
84
- id: string;
85
- };
86
- query: unknown;
87
- headers: unknown;
88
- response: {
89
- 200: {
90
- aprRecord: {
91
- cumulated: number;
92
- timestamp: bigint;
93
- breakdowns: {
94
- type: import("../../../database/api/.generated").$Enums.AprType;
95
- id: number;
96
- identifier: string;
97
- value: number;
98
- aprRecordId: string;
99
- }[];
100
- };
101
- tvlRecord: {
102
- id: string;
103
- total: number;
104
- timestamp: bigint;
105
- breakdowns: {
106
- type: import("../../../database/api/.generated").$Enums.TvlType;
107
- id: number;
108
- identifier: string;
109
- value: number;
110
- tvlRecordId: string;
111
- }[];
112
- };
113
- rewardsRecord: {
114
- id: string;
115
- total: number;
116
- timestamp: bigint;
117
- breakdowns: {
118
- id: number;
119
- value: number;
120
- campaignId: string;
121
- dailyRewardsRecordId: string;
122
- token: {
123
- symbol: string;
124
- name: string | null;
125
- id: string;
126
- chainId: number;
127
- address: string;
128
- icon: string;
129
- decimals: number;
130
- verified: boolean;
131
- price: number | null;
132
- };
133
- amount: bigint;
134
- }[];
135
- };
136
- id: string;
137
- tokens: {
138
- symbol: string;
139
- name: string | null;
140
- id: string;
141
- chainId: number;
142
- address: string;
143
- icon: string;
144
- decimals: number;
145
- verified: boolean;
146
- price: number | null;
147
- }[];
148
- chain: {
149
- name: string;
150
- id: number;
151
- icon: string;
152
- };
153
- protocol: {
154
- name: string;
155
- url: string;
156
- description: string;
157
- id: string;
158
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
159
- icon: string;
160
- } | undefined;
161
- name: string;
162
- type: import("../../../database/api/.generated").$Enums.CampaignType;
163
- status: import("../../../database/api/.generated").$Enums.Status;
164
- tags: string[];
165
- identifier: string;
166
- chainId: number;
167
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
168
- tvl: number;
169
- apr: number;
170
- dailyRewards: number;
171
- } | null | undefined;
172
- };
173
- };
174
- };
175
- };
176
- } & {
177
- opportunities: {
178
- ":id": {
179
- campaigns: {
180
- get: {
181
- body: unknown;
182
- params: {
183
- id: string;
184
- };
185
- query: unknown;
186
- headers: unknown;
187
- response: {
188
- 200: {
189
- aprRecord: {
190
- cumulated: number;
191
- timestamp: bigint;
192
- breakdowns: {
193
- type: import("../../../database/api/.generated").$Enums.AprType;
194
- id: number;
195
- identifier: string;
196
- value: number;
197
- aprRecordId: string;
198
- }[];
199
- };
200
- tvlRecord: {
201
- id: string;
202
- total: number;
203
- timestamp: bigint;
204
- breakdowns: {
205
- type: import("../../../database/api/.generated").$Enums.TvlType;
206
- id: number;
207
- identifier: string;
208
- value: number;
209
- tvlRecordId: string;
210
- }[];
211
- };
212
- rewardsRecord: {
213
- id: string;
214
- total: number;
215
- timestamp: bigint;
216
- breakdowns: {
217
- id: number;
218
- value: number;
219
- campaignId: string;
220
- dailyRewardsRecordId: string;
221
- token: {
222
- symbol: string;
223
- name: string | null;
224
- id: string;
225
- chainId: number;
226
- address: string;
227
- icon: string;
228
- decimals: number;
229
- verified: boolean;
230
- price: number | null;
231
- };
232
- amount: bigint;
233
- }[];
234
- };
235
- id: string;
236
- tokens: {
237
- symbol: string;
238
- name: string | null;
239
- id: string;
240
- chainId: number;
241
- address: string;
242
- icon: string;
243
- decimals: number;
244
- verified: boolean;
245
- price: number | null;
246
- }[];
247
- chain: {
248
- name: string;
249
- id: number;
250
- icon: string;
251
- };
252
- protocol: {
253
- name: string;
254
- url: string;
255
- description: string;
256
- id: string;
257
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
258
- icon: string;
259
- } | undefined;
260
- name: string;
261
- type: import("../../../database/api/.generated").$Enums.CampaignType;
262
- status: import("../../../database/api/.generated").$Enums.Status;
263
- tags: string[];
264
- identifier: string;
265
- chainId: number;
266
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
267
- tvl: number;
268
- apr: number;
269
- dailyRewards: number;
270
- campaigns: ({
271
- params: any;
272
- chain: {
273
- name: string;
274
- id: number;
275
- icon: string;
276
- };
277
- rewardToken: {
278
- symbol: string;
279
- name: string | null;
280
- id: string;
281
- chainId: number;
282
- address: string;
283
- icon: string;
284
- decimals: number;
285
- verified: boolean;
286
- price: number | null;
287
- };
288
- distributionChain: {
289
- name: string;
290
- id: number;
291
- icon: string;
292
- } | undefined;
293
- campaignStatus: {
294
- error: string;
295
- details: import("database/api/.generated/runtime/library").JsonValue;
296
- status: import("../../../database/api/.generated").$Enums.RunStatus;
297
- campaignId: string;
298
- computedUntil: bigint;
299
- processingStarted: bigint;
300
- };
301
- type: import("../../../database/api/.generated").$Enums.CampaignType;
302
- id: string;
303
- subType: number | null;
304
- startTimestamp: bigint;
305
- endTimestamp: bigint;
306
- computeChainId: number;
307
- distributionChainId: number;
308
- campaignId: string;
309
- rewardTokenId: string;
310
- amount: string;
311
- opportunityId: string;
312
- creatorAddress: string;
313
- } | null)[];
314
- } | null | undefined;
315
- };
316
- };
317
- };
318
- };
319
- };
320
- } & {
321
- opportunities: {
322
- index: {
323
- get: {
324
- body: unknown;
325
- params: {};
326
- query: {
327
- sort?: undefined;
328
- name?: string | undefined;
329
- tokens?: string | undefined;
330
- status?: string | undefined;
331
- items?: number | undefined;
332
- tags?: string | undefined;
333
- chainId?: string | undefined;
334
- page?: number | undefined;
335
- action?: string | undefined;
336
- mainProtocolId?: string | undefined;
337
- order?: undefined;
338
- minimumTvl?: number | undefined;
339
- };
340
- headers: unknown;
341
- response: {
342
- 200: ({
343
- aprRecord: {
344
- cumulated: number;
345
- timestamp: bigint;
346
- breakdowns: {
347
- type: import("../../../database/api/.generated").$Enums.AprType;
348
- id: number;
349
- identifier: string;
350
- value: number;
351
- aprRecordId: string;
352
- }[];
353
- };
354
- tvlRecord: {
355
- id: string;
356
- total: number;
357
- timestamp: bigint;
358
- breakdowns: {
359
- type: import("../../../database/api/.generated").$Enums.TvlType;
360
- id: number;
361
- identifier: string;
362
- value: number;
363
- tvlRecordId: string;
364
- }[];
365
- };
366
- rewardsRecord: {
367
- id: string;
368
- total: number;
369
- timestamp: bigint;
370
- breakdowns: {
371
- id: number;
372
- value: number;
373
- campaignId: string;
374
- dailyRewardsRecordId: string;
375
- token: {
376
- symbol: string;
377
- name: string | null;
378
- id: string;
379
- chainId: number;
380
- address: string;
381
- icon: string;
382
- decimals: number;
383
- verified: boolean;
384
- price: number | null;
385
- };
386
- amount: bigint;
387
- }[];
388
- };
389
- id: string;
390
- tokens: {
391
- symbol: string;
392
- name: string | null;
393
- id: string;
394
- chainId: number;
395
- address: string;
396
- icon: string;
397
- decimals: number;
398
- verified: boolean;
399
- price: number | null;
400
- }[];
401
- chain: {
402
- name: string;
403
- id: number;
404
- icon: string;
405
- };
406
- protocol: {
407
- name: string;
408
- url: string;
409
- description: string;
410
- id: string;
411
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
412
- icon: string;
413
- } | undefined;
414
- name: string;
415
- type: import("../../../database/api/.generated").$Enums.CampaignType;
416
- status: import("../../../database/api/.generated").$Enums.Status;
417
- tags: string[];
418
- identifier: string;
419
- chainId: number;
420
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
421
- tvl: number;
422
- apr: number;
423
- dailyRewards: number;
424
- } | null)[];
425
- };
426
- };
427
- };
428
- };
429
- } & {
430
- opportunities: {
431
- count: {
432
- get: {
433
- body: unknown;
434
- params: {};
435
- query: {
436
- sort?: undefined;
437
- name?: string | undefined;
438
- tokens?: string | undefined;
439
- status?: string | undefined;
440
- items?: number | undefined;
441
- tags?: string | undefined;
442
- chainId?: string | undefined;
443
- page?: number | undefined;
444
- action?: string | undefined;
445
- mainProtocolId?: string | undefined;
446
- order?: undefined;
447
- minimumTvl?: number | undefined;
448
- };
449
- headers: unknown;
450
- response: {
451
- 200: number;
452
- };
453
- };
454
- };
455
- };
456
- } & {
457
- opportunities: {
458
- aggregate: {
459
- ":field": {
460
- get: {
461
- body: unknown;
462
- params: {
463
- field: never;
464
- };
465
- query: {
466
- sort?: undefined;
467
- name?: string | undefined;
468
- tokens?: string | undefined;
469
- status?: string | undefined;
470
- items?: number | undefined;
471
- tags?: string | undefined;
472
- chainId?: string | undefined;
473
- page?: number | undefined;
474
- action?: string | undefined;
475
- mainProtocolId?: string | undefined;
476
- order?: undefined;
477
- minimumTvl?: number | undefined;
478
- };
479
- headers: unknown;
480
- response: {
481
- 200: {
482
- sum: File;
483
- };
484
- };
485
- };
486
- };
487
- };
488
- };
489
- };
490
- } & {
491
- v4: {
492
- campaigns: {
493
- index: {
494
- post: {
495
- body: {
496
- identifier?: string | undefined;
497
- subType?: number | undefined;
498
- type: number;
499
- params: string;
500
- chainId: number;
501
- startTimestamp: string;
502
- endTimestamp: string;
503
- computeChainId: number;
504
- campaignId: string;
505
- amount: string;
506
- creator: string;
507
- rewardTokenAddress: string;
508
- opportunityIdentifier: string;
509
- };
510
- params: {};
511
- query: unknown;
512
- headers: {
513
- authorization: string;
514
- };
515
- response: {
516
- 200: {
517
- type: import("../../../database/api/.generated").$Enums.CampaignType;
518
- id: string;
519
- params: import("database/api/.generated/runtime/library").JsonValue;
520
- subType: number | null;
521
- startTimestamp: bigint;
522
- endTimestamp: bigint;
523
- computeChainId: number;
524
- distributionChainId: number;
525
- campaignId: string;
526
- rewardTokenId: string;
527
- amount: string;
528
- opportunityId: string;
529
- creatorAddress: string;
530
- } | undefined;
531
- };
532
- };
533
- };
534
- } & {
535
- index: {
536
- get: {
537
- body: unknown;
538
- params: {};
539
- query: {
540
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
541
- items?: number | undefined;
542
- subType?: number | undefined;
543
- chainId?: number | undefined;
544
- startTimestamp?: string | undefined;
545
- endTimestamp?: string | undefined;
546
- tokenAddress?: string | undefined;
547
- page?: number | undefined;
548
- mainParameter?: string | undefined;
549
- campaignId?: string | undefined;
550
- opportunityId?: string | undefined;
551
- tokenSymbol?: string | undefined;
552
- };
553
- headers: unknown;
554
- response: {
555
- 200: ({
556
- params: any;
557
- chain: {
558
- name: string;
559
- id: number;
560
- icon: string;
561
- };
562
- rewardToken: {
563
- symbol: string;
564
- name: string | null;
565
- id: string;
566
- chainId: number;
567
- address: string;
568
- icon: string;
569
- decimals: number;
570
- verified: boolean;
571
- price: number | null;
572
- };
573
- distributionChain: {
574
- name: string;
575
- id: number;
576
- icon: string;
577
- } | undefined;
578
- campaignStatus: {
579
- error: string;
580
- details: import("database/api/.generated/runtime/library").JsonValue;
581
- status: import("../../../database/api/.generated").$Enums.RunStatus;
582
- campaignId: string;
583
- computedUntil: bigint;
584
- processingStarted: bigint;
585
- };
586
- type: import("../../../database/api/.generated").$Enums.CampaignType;
587
- id: string;
588
- subType: number | null;
589
- startTimestamp: bigint;
590
- endTimestamp: bigint;
591
- computeChainId: number;
592
- distributionChainId: number;
593
- campaignId: string;
594
- rewardTokenId: string;
595
- amount: string;
596
- opportunityId: string;
597
- creatorAddress: string;
598
- } | null)[];
599
- };
600
- };
601
- };
602
- } & {
603
- count: {
604
- get: {
605
- body: unknown;
606
- params: {};
607
- query: {
608
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
609
- items?: number | undefined;
610
- subType?: number | undefined;
611
- chainId?: number | undefined;
612
- startTimestamp?: string | undefined;
613
- endTimestamp?: string | undefined;
614
- tokenAddress?: string | undefined;
615
- page?: number | undefined;
616
- mainParameter?: string | undefined;
617
- campaignId?: string | undefined;
618
- opportunityId?: string | undefined;
619
- tokenSymbol?: string | undefined;
620
- };
621
- headers: unknown;
622
- response: {
623
- 200: number;
624
- };
625
- };
626
- };
627
- } & {
628
- "campaigns-to-process": {
629
- index: {
630
- get: {
631
- body: unknown;
632
- params: {};
633
- query: {
634
- chainId: number;
635
- };
636
- headers: unknown;
637
- response: {
638
- 200: {
639
- endTimestamp: bigint;
640
- campaignId: string;
641
- CampaignStatus: {
642
- computedUntil: bigint;
643
- }[];
644
- }[];
645
- };
646
- };
647
- };
648
- };
649
- } & {
650
- "campaigns-to-process": {
651
- count: {
652
- get: {
653
- body: unknown;
654
- params: {};
655
- query: {
656
- chainId: number;
657
- };
658
- headers: unknown;
659
- response: {
660
- 200: number;
661
- };
662
- };
663
- };
664
- };
665
- } & {
666
- "campaigns-to-process": {
667
- engine: {
668
- "": {
669
- post: {
670
- body: unknown;
671
- params: {};
672
- query: {
673
- chainId: number;
674
- };
675
- headers: {
676
- authorization: string;
677
- };
678
- response: {
679
- 200: string;
680
- };
681
- };
682
- };
683
- };
684
- };
685
- };
686
- };
687
- } & {
688
- v4: {
689
- protocols: {
690
- ":id": {
691
- get: {
692
- body: unknown;
693
- params: {
694
- id: string;
695
- };
696
- query: unknown;
697
- headers: unknown;
698
- response: {
699
- 200: {
700
- name: string;
701
- url: string;
702
- description: string;
703
- id: string;
704
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
705
- icon: string;
706
- } | null;
707
- };
708
- };
709
- };
710
- };
711
- } & {
712
- protocols: {
713
- index: {
714
- get: {
715
- body: unknown;
716
- params: {};
717
- query: {
718
- name?: string | undefined;
719
- id?: string[] | undefined;
720
- items?: number | undefined;
721
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
722
- page?: number | undefined;
723
- };
724
- headers: unknown;
725
- response: {
726
- 200: ({
727
- name: string;
728
- url: string;
729
- description: string;
730
- id: string;
731
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
732
- icon: string;
733
- } & {})[] | null;
734
- };
735
- };
736
- };
737
- };
738
- } & {
739
- protocols: {
740
- count: {
741
- get: {
742
- body: unknown;
743
- params: {};
744
- query: unknown;
745
- headers: unknown;
746
- response: {
747
- 200: number;
748
- };
749
- };
750
- };
751
- };
752
- };
753
- } & {
754
- v4: {
755
- tokens: {
756
- ":id": {
757
- get: {
758
- body: unknown;
759
- params: {
760
- id: string;
761
- };
762
- query: unknown;
763
- headers: unknown;
764
- response: {
765
- 200: {
766
- symbol: string;
767
- name: string | null;
768
- id: string;
769
- chainId: number;
770
- address: string;
771
- icon: string;
772
- decimals: number;
773
- verified: boolean;
774
- price?: number | null | undefined;
775
- } | undefined;
776
- };
777
- };
778
- };
779
- };
780
- } & {
781
- tokens: {
782
- balances: {
783
- get: {
784
- body: unknown;
785
- params: {};
786
- query: {
787
- tokenAddress?: string | undefined;
788
- additionalTokenAddresses?: string[] | undefined;
789
- chainId: number;
790
- userAddress: string;
791
- };
792
- headers: unknown;
793
- response: {
794
- 200: ({
795
- symbol: string;
796
- name: string | null;
797
- id: string;
798
- chainId: number;
799
- address: string;
800
- icon: string;
801
- decimals: number;
802
- verified: boolean;
803
- } & {
804
- price?: number | null | undefined;
805
- } & {
806
- balance: bigint;
807
- })[];
808
- };
809
- };
810
- };
811
- };
812
- } & {
813
- tokens: {
814
- index: {
815
- get: {
816
- body: unknown;
817
- params: {};
818
- query: {
819
- symbol?: string | undefined;
820
- name?: string | undefined;
821
- chainId?: any;
822
- address?: string | undefined;
823
- verified?: boolean | undefined;
824
- };
825
- headers: unknown;
826
- response: {
827
- 200: ({
828
- symbol: string;
829
- name: string | null;
830
- id: string;
831
- chainId: number;
832
- address: string;
833
- icon: string;
834
- decimals: number;
835
- verified: boolean;
836
- } & {
837
- price?: number | null | undefined;
838
- })[];
839
- };
840
- };
841
- };
842
- };
843
- } & {
844
- tokens: {
845
- count: {
846
- get: {
847
- body: unknown;
848
- params: {};
849
- query: {
850
- symbol?: string | undefined;
851
- name?: string | undefined;
852
- chainId?: any;
853
- address?: string | undefined;
854
- verified?: boolean | undefined;
855
- };
856
- headers: unknown;
857
- response: {
858
- 200: number;
859
- };
860
- };
861
- };
862
- };
863
- };
864
- } & {
865
- v4: {
866
- rewards: {
867
- index: {
868
- get: {
869
- body: unknown;
870
- params: {};
871
- query: {
872
- items?: number | undefined;
873
- page?: number | undefined;
874
- chainId: number;
875
- campaignId: string;
876
- };
877
- headers: unknown;
878
- response: {
879
- 200: import("../../modules/v4/reward").BreakdownForCampaignsRaw[];
880
- };
881
- };
882
- };
883
- };
884
- } & {
885
- rewards: {
886
- total: {
887
- get: {
888
- body: unknown;
889
- params: {};
890
- query: {
891
- items?: number | undefined;
892
- page?: number | undefined;
893
- chainId: number;
894
- campaignId: string;
895
- };
896
- headers: unknown;
897
- response: {
898
- 200: {
899
- campaignId: string;
900
- amount: bigint;
901
- };
902
- };
903
- };
904
- };
905
- };
906
- } & {
907
- rewards: {
908
- engine: {
909
- post: {
910
- body: {
911
- recipient: string;
912
- distributionChainId: number;
913
- root: string;
914
- proofs: string[];
915
- rewardToken: string;
916
- }[];
917
- params: {};
918
- query: unknown;
919
- headers: {
920
- authorization: string;
921
- };
922
- response: {
923
- 200: {
924
- count: number;
925
- };
926
- };
927
- };
928
- };
929
- };
930
- } & {
931
- rewards: {
932
- engine: {
933
- breakdowns: {
934
- post: {
935
- body: {
936
- distributionChainId: number;
937
- campaignId: string;
938
- root: string;
939
- rewardToken: string;
940
- breakdowns: {
941
- protocolId?: string | undefined;
942
- auxiliaryData1?: string | undefined;
943
- auxiliaryData2?: string | undefined;
944
- reason: string;
945
- pending: string;
946
- recipient: string;
947
- amount: string;
948
- claimed: string;
949
- }[];
950
- }[];
951
- params: {};
952
- query: unknown;
953
- headers: {
954
- authorization: string;
955
- };
956
- response: {
957
- 200: {
958
- count: number;
959
- } | undefined;
960
- };
961
- };
962
- };
963
- };
964
- };
965
- } & {
966
- rewards: {
967
- engine: {
968
- pendings: {
969
- post: {
970
- body: {
971
- distributionChainId: number;
972
- campaignId: string;
973
- root: string;
974
- rewardToken: string;
975
- toUpdate: {
976
- auxiliaryData1?: string | undefined;
977
- auxiliaryData2?: string | undefined;
978
- reason: string;
979
- pending: string;
980
- recipient: string;
981
- }[];
982
- toCreate: {
983
- auxiliaryData1?: string | undefined;
984
- auxiliaryData2?: string | undefined;
985
- reason: string;
986
- pending: string;
987
- recipient: string;
988
- }[];
989
- };
990
- params: {};
991
- query: unknown;
992
- headers: {
993
- authorization: string;
994
- };
995
- response: {
996
- 200: boolean;
997
- };
998
- };
999
- };
1000
- };
1001
- };
1002
- } & {
1003
- rewards: {
1004
- count: {
1005
- get: {
1006
- body: unknown;
1007
- params: {};
1008
- query: {
1009
- items?: number | undefined;
1010
- page?: number | undefined;
1011
- chainId: number;
1012
- campaignId: string;
1013
- };
1014
- headers: unknown;
1015
- response: {
1016
- 200: {
1017
- count: number;
1018
- };
1019
- };
1020
- };
1021
- };
1022
- };
1023
- } & {
1024
- rewards: {
1025
- count: {
1026
- chains: {
1027
- get: {
1028
- body: unknown;
1029
- params: {};
1030
- query: unknown;
1031
- headers: {
1032
- authorization: string;
1033
- };
1034
- response: {
1035
- 200: {
1036
- [x: string]: {
1037
- breakdown: number;
1038
- rewards: Record<string, number>;
1039
- };
1040
- };
1041
- };
1042
- };
1043
- };
1044
- };
1045
- };
1046
- };
1047
- } & {
1048
- v4: {
1049
- chains: {
1050
- ":chainId": {
1051
- get: {
1052
- body: unknown;
1053
- params: {
1054
- chainId: number;
1055
- };
1056
- query: unknown;
1057
- headers: unknown;
1058
- response: {
1059
- 200: {
1060
- name: string;
1061
- id: number;
1062
- icon: string;
1063
- explorers: {
1064
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1065
- url: string;
1066
- id: string;
1067
- chainId: number;
1068
- }[];
1069
- } | null;
1070
- };
1071
- };
1072
- };
1073
- } & {
1074
- index: {
1075
- get: {
1076
- body: unknown;
1077
- params: {};
1078
- query: {
1079
- search?: string | undefined;
1080
- };
1081
- headers: unknown;
1082
- response: {
1083
- 200: {
1084
- name: string;
1085
- id: number;
1086
- icon: string;
1087
- explorers: {
1088
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1089
- url: string;
1090
- id: string;
1091
- chainId: number;
1092
- }[];
1093
- }[];
1094
- };
1095
- };
1096
- };
1097
- } & {
1098
- count: {
1099
- get: {
1100
- body: unknown;
1101
- params: {};
1102
- query: {
1103
- search?: string | undefined;
1104
- };
1105
- headers: unknown;
1106
- response: {
1107
- 200: number;
1108
- };
1109
- };
1110
- };
1111
- } & {
1112
- explorers: {
1113
- post: {
1114
- body: {
1115
- type: "ETHERSCAN" | "BLOCKSCOUT";
1116
- url: string;
1117
- chainId: number;
1118
- };
1119
- params: {};
1120
- query: unknown;
1121
- headers: {
1122
- authorization: string;
1123
- };
1124
- response: {
1125
- 200: {
1126
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1127
- url: string;
1128
- id: string;
1129
- chainId: number;
1130
- };
1131
- };
1132
- };
1133
- };
1134
- };
1135
- };
1136
- } & {
1137
- v4: {
1138
- prices: {
1139
- index: {
1140
- get: {
1141
- body: unknown;
1142
- params: {};
1143
- query: unknown;
1144
- headers: unknown;
1145
- response: {
1146
- 200: {
1147
- [x: string]: number;
1148
- };
1149
- };
1150
- };
1151
- };
1152
- } & {
1153
- array: {
1154
- get: {
1155
- body: unknown;
1156
- params: {};
1157
- query: unknown;
1158
- headers: unknown;
1159
- response: {
1160
- 200: {
1161
- rate: number;
1162
- token: string;
1163
- }[];
1164
- };
1165
- };
1166
- };
1167
- } & {
1168
- symbol: {
1169
- ":symbol": {
1170
- get: {
1171
- body: unknown;
1172
- params: {
1173
- symbol: string;
1174
- };
1175
- query: unknown;
1176
- headers: unknown;
1177
- response: {
1178
- 200: number;
1179
- };
1180
- };
1181
- };
1182
- };
1183
- } & {
1184
- sources: {
1185
- index: {
1186
- get: {
1187
- body: unknown;
1188
- params: {};
1189
- query: unknown;
1190
- headers: unknown;
1191
- response: {
1192
- 200: {
1193
- symbol: string;
1194
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1195
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1196
- id: number;
1197
- }[];
1198
- };
1199
- };
1200
- };
1201
- };
1202
- } & {
1203
- sources: {
1204
- symbol: {
1205
- ":symbol": {
1206
- get: {
1207
- body: unknown;
1208
- params: {
1209
- symbol: string;
1210
- };
1211
- query: unknown;
1212
- headers: unknown;
1213
- response: {
1214
- 200: {
1215
- symbol: string;
1216
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1217
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1218
- id: number;
1219
- };
1220
- };
1221
- };
1222
- };
1223
- };
1224
- };
1225
- } & {
1226
- sources: {
1227
- index: {
1228
- post: {
1229
- body: {
1230
- symbol: string;
1231
- method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
1232
- args: {};
1233
- };
1234
- params: {};
1235
- query: unknown;
1236
- headers: {
1237
- authorization: string;
1238
- };
1239
- response: {
1240
- 200: number | undefined;
1241
- };
1242
- };
1243
- };
1244
- };
1245
- } & {
1246
- sources: {
1247
- symbol: {
1248
- ":symbol": {
1249
- patch: {
1250
- body: {
1251
- symbol?: string | undefined;
1252
- method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
1253
- args?: {} | undefined;
1254
- };
1255
- params: {
1256
- symbol: string;
1257
- };
1258
- query: unknown;
1259
- headers: {
1260
- authorization: string;
1261
- };
1262
- response: {
1263
- 200: {
1264
- symbol: string;
1265
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1266
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1267
- id: number;
1268
- };
1269
- };
1270
- };
1271
- };
1272
- };
1273
- };
1274
- } & {
1275
- sources: {
1276
- symbol: {
1277
- ":symbol": {
1278
- delete: {
1279
- body: unknown;
1280
- params: {
1281
- symbol: string;
1282
- };
1283
- query: unknown;
1284
- headers: {
1285
- authorization: string;
1286
- };
1287
- response: {
1288
- 200: {
1289
- symbol: string;
1290
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1291
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1292
- id: number;
1293
- };
1294
- };
1295
- };
1296
- };
1297
- };
1298
- };
1299
- };
1300
- };
1301
- } & {
1302
- v4: {
1303
- blacklists: {
1304
- index: {
1305
- get: {
1306
- body: unknown;
1307
- params: {};
1308
- query: unknown;
1309
- headers: unknown;
1310
- response: {
1311
- 200: {
1312
- id: string;
1313
- chainId: number;
1314
- poolAddress: string;
1315
- userAddress: string;
1316
- arrestTimestamp: bigint;
1317
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1318
- }[];
1319
- };
1320
- };
1321
- };
1322
- };
1323
- } & {
1324
- blacklists: {
1325
- mapping: {
1326
- get: {
1327
- body: unknown;
1328
- params: {};
1329
- query: unknown;
1330
- headers: unknown;
1331
- response: {
1332
- 200: unknown;
1333
- };
1334
- };
1335
- };
1336
- };
1337
- } & {
1338
- blacklists: {
1339
- check: {
1340
- ":address": {
1341
- get: {
1342
- body: unknown;
1343
- params: {
1344
- address: string;
1345
- };
1346
- query: unknown;
1347
- headers: unknown;
1348
- response: {
1349
- 200: boolean;
1350
- };
1351
- };
1352
- };
1353
- };
1354
- };
1355
- } & {
1356
- blacklists: {
1357
- index: {
1358
- post: {
1359
- body: {
1360
- reason?: string | undefined;
1361
- chainId: number;
1362
- poolAddress: string;
1363
- userAddress: string;
1364
- };
1365
- params: {};
1366
- query: unknown;
1367
- headers: {
1368
- authorization: string;
1369
- };
1370
- response: {
1371
- 200: {
1372
- id: string;
1373
- chainId: number;
1374
- poolAddress: string;
1375
- userAddress: string;
1376
- arrestTimestamp: bigint;
1377
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1378
- };
1379
- };
1380
- };
1381
- };
1382
- };
1383
- } & {
1384
- blacklists: {
1385
- user: {
1386
- ":address": {
1387
- delete: {
1388
- body: unknown;
1389
- params: {
1390
- address: string;
1391
- };
1392
- query: unknown;
1393
- headers: {
1394
- authorization: string;
1395
- };
1396
- response: {
1397
- 200: boolean;
1398
- };
1399
- };
1400
- };
1401
- };
1402
- };
1403
- };
1404
- } & {
1405
- v4: {
1406
- users: {
1407
- index: {
1408
- get: {
1409
- body: unknown;
1410
- params: {};
1411
- query: {
1412
- items?: number | undefined;
1413
- tags?: string[] | undefined;
1414
- page?: number | undefined;
1415
- address?: string | undefined;
1416
- };
1417
- headers: unknown;
1418
- response: {
1419
- 200: {
1420
- tags: string[];
1421
- address: string;
1422
- }[];
1423
- };
1424
- };
1425
- };
1426
- };
1427
- } & {
1428
- users: {
1429
- tags: {
1430
- get: {
1431
- body: unknown;
1432
- params: {};
1433
- query: unknown;
1434
- headers: {
1435
- authorization: string;
1436
- };
1437
- response: {
1438
- 200: {
1439
- tags: string[];
1440
- address: string;
1441
- }[];
1442
- };
1443
- };
1444
- };
1445
- };
1446
- } & {
1447
- users: {
1448
- ":address": {
1449
- get: {
1450
- body: unknown;
1451
- params: {
1452
- address: string;
1453
- };
1454
- query: unknown;
1455
- headers: unknown;
1456
- response: {
1457
- 200: {
1458
- tags: string[];
1459
- address: string;
1460
- } | null;
1461
- };
1462
- };
1463
- };
1464
- };
1465
- } & {
1466
- users: {
1467
- ":address": {
1468
- rewards: {
1469
- full: {
1470
- get: {
1471
- body: unknown;
1472
- params: {
1473
- address: string;
1474
- };
1475
- query: unknown;
1476
- headers: unknown;
1477
- response: {
1478
- 200: (Omit<{
1479
- chain: import("../../../database/api/.generated").Chain;
1480
- rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["format"]>>;
1481
- }, "rewards"> & {
1482
- rewards: (Omit<{
1483
- token: {
1484
- symbol: string;
1485
- name: string | null;
1486
- id: string;
1487
- chainId: number;
1488
- address: string;
1489
- icon: string;
1490
- decimals: number;
1491
- verified: boolean;
1492
- price: number | null;
1493
- };
1494
- breakdowns: {
1495
- campaignId: string;
1496
- opportunity: {
1497
- Chain: {
1498
- name: string;
1499
- id: number;
1500
- icon: string;
1501
- };
1502
- Tokens: {
1503
- symbol: string;
1504
- name: string | null;
1505
- id: string;
1506
- chainId: number;
1507
- address: string;
1508
- icon: string;
1509
- decimals: number;
1510
- verified: boolean;
1511
- price: number | null;
1512
- }[];
1513
- Protocols: {
1514
- name: string;
1515
- url: string;
1516
- description: string;
1517
- id: string;
1518
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1519
- icon: string;
1520
- }[];
1521
- MainProtocol: {
1522
- name: string;
1523
- url: string;
1524
- description: string;
1525
- id: string;
1526
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1527
- icon: string;
1528
- } | null;
1529
- } & {
1530
- name: string;
1531
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1532
- id: string;
1533
- status: import("../../../database/api/.generated").$Enums.Status;
1534
- tags: string[];
1535
- identifier: string;
1536
- chainId: number;
1537
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1538
- mainProtocolId: string | null;
1539
- tvl: number;
1540
- apr: number;
1541
- dailyRewards: number;
1542
- };
1543
- reason: string;
1544
- pending: string;
1545
- amount: string;
1546
- claimed: string;
1547
- auxiliaryData1: string | null;
1548
- auxiliaryData2: string | null;
1549
- }[];
1550
- claimed: bigint;
1551
- amount: bigint;
1552
- pending: bigint;
1553
- recipient: string;
1554
- root: string;
1555
- proofs: string[];
1556
- }, "breakdowns"> & {
1557
- breakdowns: {
1558
- opportunity: import("../../modules/v4").Opportunity["model"] | null;
1559
- claimed: bigint;
1560
- amount: bigint;
1561
- pending: bigint;
1562
- auxiliaryData1: string | null;
1563
- auxiliaryData2: string | null;
1564
- }[];
1565
- })[];
1566
- distributor: string;
1567
- })[];
1568
- };
1569
- };
1570
- };
1571
- };
1572
- };
1573
- };
1574
- } & {
1575
- users: {
1576
- ":address": {
1577
- rewards: {
1578
- get: {
1579
- body: unknown;
1580
- params: {
1581
- address: string;
1582
- };
1583
- query: {
1584
- chainId: number[];
1585
- };
1586
- headers: unknown;
1587
- response: {
1588
- 200: (Omit<{
1589
- chain: import("../../../database/api/.generated").Chain;
1590
- rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["format"]>>;
1591
- }, "rewards"> & {
1592
- rewards: (Omit<{
1593
- token: {
1594
- symbol: string;
1595
- name: string | null;
1596
- id: string;
1597
- chainId: number;
1598
- address: string;
1599
- icon: string;
1600
- decimals: number;
1601
- verified: boolean;
1602
- price: number | null;
1603
- };
1604
- breakdowns: {
1605
- campaignId: string;
1606
- opportunity: {
1607
- Chain: {
1608
- name: string;
1609
- id: number;
1610
- icon: string;
1611
- };
1612
- Tokens: {
1613
- symbol: string;
1614
- name: string | null;
1615
- id: string;
1616
- chainId: number;
1617
- address: string;
1618
- icon: string;
1619
- decimals: number;
1620
- verified: boolean;
1621
- price: number | null;
1622
- }[];
1623
- Protocols: {
1624
- name: string;
1625
- url: string;
1626
- description: string;
1627
- id: string;
1628
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1629
- icon: string;
1630
- }[];
1631
- MainProtocol: {
1632
- name: string;
1633
- url: string;
1634
- description: string;
1635
- id: string;
1636
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1637
- icon: string;
1638
- } | null;
1639
- } & {
1640
- name: string;
1641
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1642
- id: string;
1643
- status: import("../../../database/api/.generated").$Enums.Status;
1644
- tags: string[];
1645
- identifier: string;
1646
- chainId: number;
1647
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1648
- mainProtocolId: string | null;
1649
- tvl: number;
1650
- apr: number;
1651
- dailyRewards: number;
1652
- };
1653
- reason: string;
1654
- pending: string;
1655
- amount: string;
1656
- claimed: string;
1657
- auxiliaryData1: string | null;
1658
- auxiliaryData2: string | null;
1659
- }[];
1660
- claimed: bigint;
1661
- amount: bigint;
1662
- pending: bigint;
1663
- recipient: string;
1664
- root: string;
1665
- proofs: string[];
1666
- }, "breakdowns"> & {
1667
- breakdowns: {
1668
- campaignId: string;
1669
- reason: string;
1670
- pending: string;
1671
- amount: string;
1672
- claimed: string;
1673
- auxiliaryData1: string | null;
1674
- auxiliaryData2: string | null;
1675
- }[];
1676
- })[];
1677
- })[];
1678
- };
1679
- };
1680
- };
1681
- };
1682
- };
1683
- } & {
1684
- users: {
1685
- index: {
1686
- post: {
1687
- body: {
1688
- tags: string[];
1689
- address: string;
1690
- };
1691
- params: {};
1692
- query: unknown;
1693
- headers: {
1694
- authorization: string;
1695
- };
1696
- response: {
1697
- 200: {
1698
- tags: string[];
1699
- address: string;
1700
- };
1701
- };
1702
- };
1703
- };
1704
- };
1705
- } & {
1706
- users: {
1707
- sync: {
1708
- post: {
1709
- body: unknown;
1710
- params: {};
1711
- query: unknown;
1712
- headers: {
1713
- authorization: string;
1714
- };
1715
- response: {
1716
- 200: void;
1717
- };
1718
- };
1719
- };
1720
- };
1721
- } & {
1722
- users: {
1723
- ":address": {
1724
- tags: {
1725
- patch: {
1726
- body: {
1727
- tags: string[];
1728
- };
1729
- params: {
1730
- address: string;
1731
- };
1732
- query: unknown;
1733
- headers: {
1734
- authorization: string;
1735
- };
1736
- response: {
1737
- 200: {
1738
- tags: string[];
1739
- address: string;
1740
- };
1741
- };
1742
- };
1743
- };
1744
- };
1745
- };
1746
- };
1747
- } & {
1748
- v4: {
1749
- roots: {
1750
- index: {
1751
- get: {
1752
- body: unknown;
1753
- params: {};
1754
- query: {
1755
- chainId: number;
1756
- fromTimestamp: string;
1757
- toTimestamp: string;
1758
- };
1759
- headers: unknown;
1760
- response: {
1761
- 200: {
1762
- timestamp: bigint;
1763
- chainId: number;
1764
- root: string;
1765
- epoch: number;
1766
- }[];
1767
- };
1768
- };
1769
- };
1770
- };
1771
- } & {
1772
- roots: {
1773
- live: {
1774
- get: {
1775
- body: unknown;
1776
- params: {};
1777
- query: unknown;
1778
- headers: unknown;
1779
- response: {
1780
- 200: {
1781
- live: string;
1782
- tree: string;
1783
- lastTree: string;
1784
- }[];
1785
- };
1786
- };
1787
- };
1788
- };
1789
- };
1790
- } & {
1791
- v4: {
1792
- interaction: {
1793
- targets: {
1794
- get: {
1795
- body: unknown;
1796
- params: {};
1797
- query: {
1798
- identifier?: string | undefined;
1799
- chainId: number;
1800
- protocolId: string;
1801
- };
1802
- headers: unknown;
1803
- response: {
1804
- 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1805
- };
1806
- };
1807
- };
1808
- };
1809
- } & {
1810
- interaction: {
1811
- protocols: {
1812
- get: {
1813
- body: unknown;
1814
- params: {};
1815
- query: {
1816
- chainId?: number | undefined;
1817
- };
1818
- headers: unknown;
1819
- response: {
1820
- 200: ({
1821
- name: string;
1822
- url: string;
1823
- description: string;
1824
- id: string;
1825
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1826
- icon: string;
1827
- } & {})[] | null;
1828
- };
1829
- };
1830
- };
1831
- };
1832
- } & {
1833
- interaction: {
1834
- quote: {
1835
- get: {
1836
- body: unknown;
1837
- params: {};
1838
- query: {
1839
- identifier: string;
1840
- chainId: number;
1841
- protocolId: string;
1842
- userAddress: string;
1843
- fromAmount: string;
1844
- fromTokenAddress: string;
1845
- };
1846
- headers: unknown;
1847
- response: {
1848
- 200: {
1849
- amountOut: {};
1850
- gas: string;
1851
- feeAmount: string[];
1852
- priceImpact: number;
1853
- } | undefined;
1854
- };
1855
- };
1856
- };
1857
- };
1858
- } & {
1859
- interaction: {
1860
- transaction: {
1861
- get: {
1862
- body: unknown;
1863
- params: {};
1864
- query: {
1865
- identifier: string;
1866
- chainId: number;
1867
- protocolId: string;
1868
- userAddress: string;
1869
- fromAmount: string;
1870
- fromTokenAddress: string;
1871
- };
1872
- headers: unknown;
1873
- response: {
1874
- 200: {
1875
- amountOut: string;
1876
- gas: string;
1877
- feeAmount: string[];
1878
- priceImpact: number;
1879
- createAt: number;
1880
- tx: {
1881
- data: string;
1882
- from: string;
1883
- value: string;
1884
- to: string;
1885
- };
1886
- } | undefined;
1887
- };
1888
- };
1889
- };
1890
- };
1891
- };
1892
- } & {
1893
- v4: {
1894
- accounting: {
1895
- index: {
1896
- get: {
1897
- body: unknown;
1898
- params: {};
1899
- query: {
1900
- items?: number | undefined;
1901
- page?: number | undefined;
1902
- };
1903
- headers: {
1904
- authorization: string;
1905
- };
1906
- response: {
1907
- 200: {
1908
- id: string;
1909
- timestamp: number;
1910
- chainId: number;
1911
- fromTokenId: string;
1912
- toTokenId: string;
1913
- multisig: string;
1914
- recipient: string;
1915
- amountIn: string;
1916
- amountOut: string;
1917
- datetime: Date;
1918
- }[];
1919
- };
1920
- };
1921
- };
1922
- } & {
1923
- revenues: {
1924
- get: {
1925
- body: unknown;
1926
- params: {};
1927
- query: unknown;
1928
- headers: {
1929
- authorization: string;
1930
- };
1931
- response: {
1932
- 200: {
1933
- totalAmount: number;
1934
- };
1935
- };
1936
- };
1937
- };
1938
- } & {
1939
- revenues: {
1940
- "per-month": {
1941
- ":year": {
1942
- ":month": {
1943
- get: {
1944
- body: unknown;
1945
- params: {
1946
- month: number;
1947
- year: number;
1948
- };
1949
- query: unknown;
1950
- headers: {
1951
- authorization: string;
1952
- };
1953
- response: {
1954
- 200: {
1955
- totalAmount: number;
1956
- from: string;
1957
- to: string;
1958
- };
1959
- };
1960
- };
1961
- };
1962
- };
1963
- };
1964
- };
1965
- } & {
1966
- revenues: {
1967
- chains: {
1968
- ":chainId": {
1969
- get: {
1970
- body: unknown;
1971
- params: {
1972
- chainId: number;
1973
- };
1974
- query: unknown;
1975
- headers: {
1976
- authorization: string;
1977
- };
1978
- response: {
1979
- 200: {
1980
- totalAmount: number;
1981
- };
1982
- };
1983
- };
1984
- };
1985
- };
1986
- };
1987
- } & {
1988
- revenues: {
1989
- chains: {
1990
- ":chainId": {
1991
- "per-month": {
1992
- ":year": {
1993
- ":month": {
1994
- get: {
1995
- body: unknown;
1996
- params: {
1997
- chainId: number;
1998
- month: number;
1999
- year: number;
2000
- };
2001
- query: unknown;
2002
- headers: {
2003
- authorization: string;
2004
- };
2005
- response: {
2006
- 200: {
2007
- totalAmount: number;
2008
- from: string;
2009
- to: string;
2010
- };
2011
- };
2012
- };
2013
- };
2014
- };
2015
- };
2016
- };
2017
- };
2018
- };
2019
- } & {
2020
- tokens: {
2021
- ":chainId": {
2022
- ":tokenAddress": {
2023
- get: {
2024
- body: unknown;
2025
- params: {
2026
- chainId: number;
2027
- tokenAddress: string;
2028
- };
2029
- query: unknown;
2030
- headers: {
2031
- authorization: string;
2032
- };
2033
- response: {
2034
- 200: {
2035
- totalAmount: number;
2036
- totalAmountUSD: number;
2037
- };
2038
- };
2039
- };
2040
- };
2041
- };
2042
- };
2043
- } & {
2044
- tokens: {
2045
- ":chainId": {
2046
- ":tokenAddress": {
2047
- "per-month": {
2048
- ":year": {
2049
- ":month": {
2050
- get: {
2051
- body: unknown;
2052
- params: {
2053
- chainId: number;
2054
- tokenAddress: string;
2055
- month: number;
2056
- year: number;
2057
- };
2058
- query: unknown;
2059
- headers: {
2060
- authorization: string;
2061
- };
2062
- response: {
2063
- 200: {
2064
- totalAmount: number;
2065
- totalAmountUSD: number;
2066
- from: string;
2067
- to: string;
2068
- };
2069
- };
2070
- };
2071
- };
2072
- };
2073
- };
2074
- };
2075
- };
2076
- };
2077
- };
2078
- };
2079
- } & {
2080
- v4: {
2081
- "dynamic-data": {
2082
- index: {
2083
- get: {
2084
- body: unknown;
2085
- params: {};
2086
- query: {
2087
- chainId: number;
2088
- tokenAddress: string;
2089
- };
2090
- headers: {
2091
- authorization: string;
2092
- };
2093
- response: {
2094
- 200: {
2095
- tvl: number;
2096
- totalSupply: number;
2097
- cardName: string;
2098
- blacklistedSupply: number;
2099
- priceTargetToken: number;
2100
- };
2101
- };
2102
- };
2103
- };
2104
- };
2105
- };
2106
- } & {
2107
- v4: {
2108
- "campaign-status": {
2109
- engine: {
2110
- ":campaignId": {
2111
- put: {
2112
- body: {
2113
- value: "SUCCESS";
2114
- computedUntil: number;
2115
- } | {
2116
- value: "PROCESSING";
2117
- } | {
2118
- error: string;
2119
- details: string;
2120
- value: "SKIPPED";
2121
- } | {
2122
- error: string;
2123
- details: string;
2124
- value: "FAILED";
2125
- };
2126
- params: {
2127
- campaignId: string;
2128
- };
2129
- query: unknown;
2130
- headers: {
2131
- authorization: string;
2132
- };
2133
- response: {
2134
- 200: void;
2135
- };
2136
- };
2137
- };
2138
- };
2139
- };
2140
- } & {
2141
- "campaign-status": {
2142
- engine: {
2143
- overlaps: {
2144
- get: {
2145
- body: unknown;
2146
- params: {};
2147
- query: {
2148
- campaignId: string;
2149
- distributionChain: number;
2150
- };
2151
- headers: {
2152
- authorization: string;
2153
- };
2154
- response: {
2155
- 200: boolean;
2156
- };
2157
- };
2158
- };
2159
- };
2160
- };
2161
- } & {
2162
- "campaign-status": {
2163
- index: {
2164
- get: {
2165
- body: unknown;
2166
- params: {};
2167
- query: {
2168
- status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2169
- computeChainId?: number | undefined;
2170
- };
2171
- headers: unknown;
2172
- response: {
2173
- 200: {
2174
- error: string;
2175
- details: import("database/api/.generated/runtime/library").JsonValue;
2176
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2177
- campaignId: string;
2178
- computedUntil: bigint;
2179
- processingStarted: bigint;
2180
- }[];
2181
- };
2182
- };
2183
- };
2184
- };
2185
- } & {
2186
- "campaign-status": {
2187
- ":campaignId": {
2188
- get: {
2189
- body: unknown;
2190
- params: {
2191
- campaignId: string;
2192
- };
2193
- query: unknown;
2194
- headers: unknown;
2195
- response: {
2196
- 200: {
2197
- error: string;
2198
- details: import("database/api/.generated/runtime/library").JsonValue;
2199
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2200
- campaignId: string;
2201
- computedUntil: bigint;
2202
- processingStarted: bigint;
2203
- }[] | {
2204
- error: string;
2205
- details: import("database/api/.generated/runtime/library").JsonValue;
2206
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2207
- campaignId: string;
2208
- computedUntil: bigint;
2209
- processingStarted: bigint;
2210
- };
2211
- };
2212
- };
2213
- };
2214
- };
2215
- };
2216
- } & {
2217
- index: {
2218
- get: {
2219
- body: unknown;
2220
- params: {};
2221
- query: {
2222
- chainIds?: string | string[] | undefined;
2223
- };
2224
- headers: unknown;
2225
- response: {
2226
- [x: string]: any;
2227
- 200: any;
2228
- };
2229
- };
2230
- };
2231
- }, {
2232
- derive: {};
2233
- resolve: {};
2234
- schema: {};
2235
- }, {
2236
- derive: {};
2237
- resolve: {};
2238
- schema: {};
2239
- }>;
2240
- export default _default;