@merkl/api 0.10.206 → 0.10.208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/database/api/.generated/edge.js +5 -4
  2. package/dist/database/api/.generated/index-browser.js +2 -1
  3. package/dist/database/api/.generated/index.d.ts +2 -1
  4. package/dist/database/api/.generated/index.js +5 -4
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +1 -0
  7. package/dist/database/api/.generated/wasm.js +2 -1
  8. package/dist/src/eden/index.d.ts +8672 -2
  9. package/dist/src/index.d.ts +3358 -1
  10. package/dist/src/index.js +4 -4
  11. package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
  12. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  13. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  14. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +31 -1
  15. package/dist/src/modules/v4/protocol/protocol.controller.js +8 -1
  16. package/dist/src/modules/v4/protocol/protocol.model.d.ts +11 -0
  17. package/dist/src/modules/v4/protocol/protocol.model.js +8 -0
  18. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
  19. package/dist/src/modules/v4/protocol/protocol.repository.js +12 -3
  20. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
  21. package/dist/src/modules/v4/protocol/protocol.service.js +3 -0
  22. package/dist/src/modules/v4/router.d.ts +33 -3
  23. package/dist/src/routes/v2/merkl.d.ts +4 -4
  24. package/dist/src/routes/v2/router.d.ts +4 -4
  25. package/dist/src/routes/v3/blacklist.d.ts +38 -2
  26. package/dist/src/routes/v3/campaigns.d.ts +41 -2
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +40 -2
  28. package/dist/src/routes/v3/claims.d.ts +1 -1
  29. package/dist/src/routes/v3/multiChainPositions.d.ts +39 -2
  30. package/dist/src/routes/v3/opportunity.d.ts +42 -2
  31. package/dist/src/routes/v3/positions.d.ts +38 -2
  32. package/dist/src/routes/v3/rewards.d.ts +66 -2
  33. package/dist/src/routes/v3/router.d.ts +773 -1
  34. package/dist/src/routes/v3/updates.d.ts +42 -2
  35. package/dist/src/routes/v3/userRewards.d.ts +56 -2
  36. package/dist/tsconfig.package.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/dist/src/utils/rateLimit.d.ts +0 -63
  39. package/dist/src/utils/rateLimit.js +0 -13
@@ -1,3 +1,3360 @@
1
- declare const app: any;
1
+ import { Elysia } from "elysia";
2
+ declare const app: Elysia<"", false, {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ type: {};
9
+ error: {
10
+ readonly HttpError: import("./errors").HttpError;
11
+ readonly BadRequestError: import("./errors").BadRequestError;
12
+ readonly ConflictError: import("./errors").ConflictError;
13
+ readonly NotFoundError: import("./errors").NotFoundError;
14
+ readonly UnauthorizedError: import("./errors").UnauthorizedError;
15
+ readonly InvalidParameter: import("./utils/error").InvalidParameter;
16
+ readonly UnsupportedNetwork: import("./utils/error").UnsupportedNetwork;
17
+ readonly OpportunityNotFound: import("./utils/error").OpportunityNotFound;
18
+ readonly MerkleRootNotFound: import("./utils/error").MerkleRootNotFound;
19
+ readonly ValidationError: import("elysia").ValidationError;
20
+ readonly InvalidCacheCall: import("./utils/error").InvalidCacheCall;
21
+ };
22
+ }, {
23
+ schema: {};
24
+ macro: {};
25
+ macroFn: {};
26
+ }, {
27
+ v1: {
28
+ allowances: {
29
+ get: {
30
+ body: unknown;
31
+ params: {};
32
+ query: {
33
+ additionalTokenAddresses?: string[] | undefined;
34
+ chainId: number;
35
+ user: string;
36
+ };
37
+ headers: unknown;
38
+ response: {
39
+ 200: {
40
+ [x: string]: {
41
+ symbol: string;
42
+ balance: string;
43
+ decimals: number;
44
+ };
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ } & {
51
+ v1: {
52
+ balances: {
53
+ get: {
54
+ body: unknown;
55
+ params: {};
56
+ query: {
57
+ additionalTokenAddresses?: string[] | undefined;
58
+ chainId: number;
59
+ user: string;
60
+ };
61
+ headers: unknown;
62
+ response: {
63
+ 200: {
64
+ [x: string]: {
65
+ symbol: string;
66
+ balance: string;
67
+ decimals: number;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ } & {
75
+ v1: {
76
+ prices: {
77
+ get: {
78
+ body: unknown;
79
+ params: {};
80
+ query: {};
81
+ headers: unknown;
82
+ response: {
83
+ 200: {
84
+ rate: number;
85
+ token: string;
86
+ }[];
87
+ };
88
+ };
89
+ };
90
+ };
91
+ } & {
92
+ v1: {
93
+ tokens: {
94
+ get: {
95
+ body: unknown;
96
+ params: {};
97
+ query: {};
98
+ headers: unknown;
99
+ response: {
100
+ [x: string]: any;
101
+ 200: any;
102
+ };
103
+ };
104
+ };
105
+ };
106
+ } & {
107
+ v2: {
108
+ merkl: {
109
+ get: {
110
+ body: unknown;
111
+ params: {};
112
+ query: {
113
+ user?: string | undefined;
114
+ AMMs?: string | string[] | undefined;
115
+ chainIds?: number | number[] | undefined;
116
+ onlyLive?: string | undefined;
117
+ "AMMs[]"?: string | string[] | undefined;
118
+ "AMMs[0]"?: string | undefined;
119
+ "chainIds[]"?: number | number[] | undefined;
120
+ "chainIds[0]"?: number | undefined;
121
+ };
122
+ headers: unknown;
123
+ response: {
124
+ [x: string]: any;
125
+ 200: any;
126
+ };
127
+ };
128
+ };
129
+ };
130
+ } & {
131
+ v4: {};
132
+ } & {
133
+ v4: {
134
+ opportunities: {
135
+ index: {
136
+ post: {
137
+ body: {
138
+ name?: string | undefined;
139
+ type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
140
+ tokens: {
141
+ chainId: number;
142
+ address: string;
143
+ }[];
144
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
145
+ identifier: string;
146
+ chainId: number;
147
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
148
+ protocols: string[];
149
+ mainProtocol: string;
150
+ };
151
+ params: {};
152
+ query: unknown;
153
+ headers: {
154
+ authorization: string;
155
+ };
156
+ response: {
157
+ 200: void;
158
+ };
159
+ };
160
+ };
161
+ };
162
+ } & {
163
+ opportunities: {
164
+ index: {
165
+ get: {
166
+ body: unknown;
167
+ params: {};
168
+ query: {
169
+ sort?: string | undefined;
170
+ name?: string | undefined;
171
+ tokens?: string | undefined;
172
+ status?: string | undefined;
173
+ items?: number | undefined;
174
+ tags?: string | undefined;
175
+ page?: number | undefined;
176
+ chainId?: string | undefined;
177
+ action?: string | undefined;
178
+ mainProtocolId?: string | undefined;
179
+ order?: string | undefined;
180
+ test?: boolean | undefined;
181
+ minimumTvl?: number | undefined;
182
+ };
183
+ headers: unknown;
184
+ response: {
185
+ 200: {
186
+ aprRecord: {
187
+ cumulated: number;
188
+ timestamp: bigint;
189
+ breakdowns: {
190
+ type: import("../database/api/.generated").$Enums.AprType;
191
+ id: number;
192
+ identifier: string;
193
+ value: number;
194
+ aprRecordId: string;
195
+ }[];
196
+ };
197
+ tvlRecord: {
198
+ id: string;
199
+ total: number;
200
+ timestamp: bigint;
201
+ breakdowns: {
202
+ type: import("../database/api/.generated").$Enums.TvlType;
203
+ id: number;
204
+ identifier: string;
205
+ value: number;
206
+ tvlRecordId: string;
207
+ }[];
208
+ };
209
+ rewardsRecord: {
210
+ id: string;
211
+ total: number;
212
+ timestamp: bigint;
213
+ breakdowns: {
214
+ id: number;
215
+ value: number;
216
+ campaignId: string;
217
+ dailyRewardsRecordId: string;
218
+ token: {
219
+ symbol: string;
220
+ name: string | null;
221
+ id: string;
222
+ icon: string;
223
+ chainId: number;
224
+ address: string;
225
+ decimals: number;
226
+ displaySymbol: string;
227
+ verified: boolean;
228
+ isTest: boolean;
229
+ price: number | null;
230
+ };
231
+ amount: bigint;
232
+ }[];
233
+ };
234
+ id: string;
235
+ tokens: ({
236
+ symbol: string;
237
+ name: string | null;
238
+ id: string;
239
+ icon: string;
240
+ chainId: number;
241
+ address: string;
242
+ decimals: number;
243
+ verified: boolean;
244
+ isTest: boolean;
245
+ } & {
246
+ price?: number | null | undefined;
247
+ })[];
248
+ chain: {
249
+ name: string;
250
+ id: number;
251
+ icon: string;
252
+ };
253
+ protocol: {
254
+ name: string;
255
+ url: string;
256
+ description: string;
257
+ id: string;
258
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
259
+ icon: string;
260
+ } | undefined;
261
+ name: string;
262
+ type: import("../database/api/.generated").$Enums.CampaignType;
263
+ status: import("../database/api/.generated").$Enums.Status;
264
+ tags: string[];
265
+ identifier: string;
266
+ chainId: number;
267
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
268
+ tvl: number;
269
+ apr: number;
270
+ dailyRewards: number;
271
+ }[];
272
+ };
273
+ };
274
+ };
275
+ };
276
+ } & {
277
+ opportunities: {
278
+ count: {
279
+ get: {
280
+ body: unknown;
281
+ params: {};
282
+ query: {
283
+ sort?: string | undefined;
284
+ name?: string | undefined;
285
+ tokens?: string | undefined;
286
+ status?: string | undefined;
287
+ items?: number | undefined;
288
+ tags?: string | undefined;
289
+ page?: number | undefined;
290
+ chainId?: string | undefined;
291
+ action?: string | undefined;
292
+ mainProtocolId?: string | undefined;
293
+ order?: string | undefined;
294
+ test?: boolean | undefined;
295
+ minimumTvl?: number | undefined;
296
+ };
297
+ headers: unknown;
298
+ response: {
299
+ 200: number;
300
+ };
301
+ };
302
+ };
303
+ };
304
+ } & {
305
+ opportunities: {
306
+ ":id": {
307
+ get: {
308
+ body: unknown;
309
+ params: {
310
+ id: string;
311
+ };
312
+ query: unknown;
313
+ headers: unknown;
314
+ response: {
315
+ 200: {
316
+ protocol?: {
317
+ name: string;
318
+ url: string;
319
+ description: string;
320
+ id: string;
321
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
322
+ icon: string;
323
+ } | null | undefined;
324
+ aprRecord?: {
325
+ timestamp: string | bigint;
326
+ cumulated: number;
327
+ breakdowns: {
328
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
329
+ id: number;
330
+ identifier: string;
331
+ value: number;
332
+ aprRecordId: string;
333
+ }[];
334
+ } | undefined;
335
+ tvlRecord?: {
336
+ total: number;
337
+ timestamp: string | bigint;
338
+ breakdowns: {
339
+ type: "TOKEN" | "PROTOCOL";
340
+ id: number;
341
+ identifier: string;
342
+ value: number;
343
+ tvlRecordId: string;
344
+ }[];
345
+ } | undefined;
346
+ rewardsRecord?: {
347
+ total: number;
348
+ id: string;
349
+ timestamp: string | bigint;
350
+ breakdowns: {
351
+ token: {
352
+ price?: number | null | undefined;
353
+ symbol: string;
354
+ name: string | null;
355
+ id: string;
356
+ icon: string;
357
+ chainId: number;
358
+ address: string;
359
+ decimals: number;
360
+ verified: boolean;
361
+ isTest: boolean;
362
+ };
363
+ id: number;
364
+ value: number;
365
+ campaignId: string;
366
+ amount: string | bigint;
367
+ dailyRewardsRecordId: string;
368
+ }[];
369
+ } | undefined;
370
+ name: string;
371
+ type: string;
372
+ tokens: {
373
+ price?: number | null | undefined;
374
+ symbol: string;
375
+ name: string | null;
376
+ id: string;
377
+ icon: string;
378
+ chainId: number;
379
+ address: string;
380
+ decimals: number;
381
+ verified: boolean;
382
+ isTest: boolean;
383
+ }[];
384
+ id: string;
385
+ status: string;
386
+ tags: string[];
387
+ identifier: string;
388
+ chain: {
389
+ name: string;
390
+ id: number;
391
+ icon: string;
392
+ };
393
+ chainId: number;
394
+ action: string;
395
+ tvl: number;
396
+ apr: number;
397
+ dailyRewards: number;
398
+ };
399
+ readonly 404: {
400
+ message: string;
401
+ name: string;
402
+ };
403
+ readonly 500: {
404
+ code: string;
405
+ info: string;
406
+ httpCode: number;
407
+ };
408
+ };
409
+ };
410
+ };
411
+ };
412
+ } & {
413
+ opportunities: {
414
+ ":id": {
415
+ campaigns: {
416
+ get: {
417
+ body: unknown;
418
+ params: {
419
+ id: string;
420
+ };
421
+ query: unknown;
422
+ headers: unknown;
423
+ response: {
424
+ 200: {
425
+ protocol?: {
426
+ name: string;
427
+ url: string;
428
+ description: string;
429
+ id: string;
430
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
431
+ icon: string;
432
+ } | null | undefined;
433
+ aprRecord?: {
434
+ timestamp: string | bigint;
435
+ cumulated: number;
436
+ breakdowns: {
437
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
438
+ id: number;
439
+ identifier: string;
440
+ value: number;
441
+ aprRecordId: string;
442
+ }[];
443
+ } | undefined;
444
+ tvlRecord?: {
445
+ total: number;
446
+ timestamp: string | bigint;
447
+ breakdowns: {
448
+ type: "TOKEN" | "PROTOCOL";
449
+ id: number;
450
+ identifier: string;
451
+ value: number;
452
+ tvlRecordId: string;
453
+ }[];
454
+ } | undefined;
455
+ rewardsRecord?: {
456
+ total: number;
457
+ id: string;
458
+ timestamp: string | bigint;
459
+ breakdowns: {
460
+ token: {
461
+ price?: number | null | undefined;
462
+ symbol: string;
463
+ name: string | null;
464
+ id: string;
465
+ icon: string;
466
+ chainId: number;
467
+ address: string;
468
+ decimals: number;
469
+ verified: boolean;
470
+ isTest: boolean;
471
+ };
472
+ id: number;
473
+ value: number;
474
+ campaignId: string;
475
+ amount: string | bigint;
476
+ dailyRewardsRecordId: string;
477
+ }[];
478
+ } | undefined;
479
+ name: string;
480
+ type: string;
481
+ tokens: {
482
+ price?: number | null | undefined;
483
+ symbol: string;
484
+ name: string | null;
485
+ id: string;
486
+ icon: string;
487
+ chainId: number;
488
+ address: string;
489
+ decimals: number;
490
+ verified: boolean;
491
+ isTest: boolean;
492
+ }[];
493
+ id: string;
494
+ status: string;
495
+ tags: string[];
496
+ identifier: string;
497
+ chain: {
498
+ name: string;
499
+ id: number;
500
+ icon: string;
501
+ };
502
+ chainId: number;
503
+ action: string;
504
+ tvl: number;
505
+ apr: number;
506
+ dailyRewards: number;
507
+ campaigns: {
508
+ campaignStatus?: {
509
+ error?: string | undefined;
510
+ details?: any;
511
+ status: string;
512
+ campaignId: string;
513
+ computedUntil: string | bigint;
514
+ processingStarted: string | bigint;
515
+ } | undefined;
516
+ distributionChain?: {
517
+ name: string;
518
+ id: number;
519
+ icon: string;
520
+ } | undefined;
521
+ type: string;
522
+ id: string;
523
+ params: any;
524
+ subType: number | null;
525
+ chain: {
526
+ name: string;
527
+ id: number;
528
+ icon: string;
529
+ };
530
+ startTimestamp: string | bigint;
531
+ endTimestamp: string | bigint;
532
+ computeChainId: number;
533
+ distributionChainId: number;
534
+ campaignId: string;
535
+ rewardTokenId: string;
536
+ amount: string;
537
+ opportunityId: string;
538
+ creatorAddress: string;
539
+ rewardToken: {
540
+ price?: number | null | undefined;
541
+ symbol: string;
542
+ name: string | null;
543
+ id: string;
544
+ icon: string;
545
+ chainId: number;
546
+ address: string;
547
+ decimals: number;
548
+ verified: boolean;
549
+ isTest: boolean;
550
+ };
551
+ }[];
552
+ };
553
+ readonly 404: {
554
+ message: string;
555
+ name: string;
556
+ };
557
+ readonly 500: {
558
+ code: string;
559
+ info: string;
560
+ httpCode: number;
561
+ };
562
+ };
563
+ };
564
+ };
565
+ };
566
+ };
567
+ } & {
568
+ opportunities: {
569
+ aggregate: {
570
+ ":field": {
571
+ get: {
572
+ body: unknown;
573
+ params: {
574
+ field: never;
575
+ };
576
+ query: {
577
+ sort?: string | undefined;
578
+ name?: string | undefined;
579
+ tokens?: string | undefined;
580
+ status?: string | undefined;
581
+ items?: number | undefined;
582
+ tags?: string | undefined;
583
+ page?: number | undefined;
584
+ chainId?: string | undefined;
585
+ action?: string | undefined;
586
+ mainProtocolId?: string | undefined;
587
+ order?: string | undefined;
588
+ test?: boolean | undefined;
589
+ minimumTvl?: number | undefined;
590
+ };
591
+ headers: unknown;
592
+ response: {
593
+ 200: {
594
+ sum: File;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ };
600
+ };
601
+ } & {
602
+ opportunities: {
603
+ ":id": {
604
+ patch: {
605
+ body: {
606
+ name?: string | undefined;
607
+ tags?: string[] | undefined;
608
+ };
609
+ params: {
610
+ id: string;
611
+ };
612
+ query: unknown;
613
+ headers: {
614
+ authorization: string;
615
+ };
616
+ response: {
617
+ 200: {
618
+ name: string;
619
+ type: import("../database/api/.generated").$Enums.CampaignType;
620
+ id: string;
621
+ status: import("../database/api/.generated").$Enums.Status;
622
+ tags: string[];
623
+ identifier: string;
624
+ chainId: number;
625
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
626
+ mainProtocolId: string | null;
627
+ tvl: number;
628
+ apr: number;
629
+ dailyRewards: number;
630
+ };
631
+ };
632
+ };
633
+ };
634
+ };
635
+ };
636
+ } & {
637
+ v4: {
638
+ campaigns: {
639
+ index: {
640
+ post: {
641
+ body: {
642
+ identifier?: string | undefined;
643
+ subType?: number | undefined;
644
+ type: number;
645
+ params: string;
646
+ creator: string;
647
+ chainId: number;
648
+ startTimestamp: string;
649
+ endTimestamp: string;
650
+ computeChainId: number;
651
+ campaignId: string;
652
+ amount: string;
653
+ rewardTokenAddress: string;
654
+ opportunityIdentifier: string;
655
+ };
656
+ params: {};
657
+ query: unknown;
658
+ headers: {
659
+ authorization: string;
660
+ };
661
+ response: {
662
+ 200: {
663
+ type: import("../database/api/.generated").$Enums.CampaignType;
664
+ id: string;
665
+ params: import("database/api/.generated/runtime/library").JsonValue;
666
+ subType: number | null;
667
+ startTimestamp: bigint;
668
+ endTimestamp: bigint;
669
+ computeChainId: number;
670
+ distributionChainId: number;
671
+ campaignId: string;
672
+ rewardTokenId: string;
673
+ amount: string;
674
+ opportunityId: string;
675
+ creatorAddress: string;
676
+ } | undefined;
677
+ };
678
+ };
679
+ };
680
+ } & {
681
+ index: {
682
+ get: {
683
+ body: unknown;
684
+ params: {};
685
+ query: {
686
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
687
+ items?: number | undefined;
688
+ subType?: number | undefined;
689
+ page?: number | undefined;
690
+ chainId?: number | undefined;
691
+ startTimestamp?: string | undefined;
692
+ endTimestamp?: string | undefined;
693
+ tokenAddress?: string | undefined;
694
+ mainParameter?: string | undefined;
695
+ campaignId?: string | undefined;
696
+ opportunityId?: string | undefined;
697
+ test?: boolean | undefined;
698
+ creatorTag?: string | undefined;
699
+ tokenSymbol?: string | undefined;
700
+ };
701
+ headers: unknown;
702
+ response: {
703
+ 200: {
704
+ params: any;
705
+ chain: {
706
+ name: string;
707
+ id: number;
708
+ icon: string;
709
+ };
710
+ rewardToken: {
711
+ symbol: string;
712
+ name: string | null;
713
+ id: string;
714
+ icon: string;
715
+ chainId: number;
716
+ address: string;
717
+ decimals: number;
718
+ verified: boolean;
719
+ isTest: boolean;
720
+ } & {
721
+ price?: number | null | undefined;
722
+ };
723
+ distributionChain: {
724
+ name: string;
725
+ id: number;
726
+ icon: string;
727
+ } | undefined;
728
+ campaignStatus: {
729
+ error: string;
730
+ details: import("database/api/.generated/runtime/library").JsonValue;
731
+ status: import("../database/api/.generated").$Enums.RunStatus;
732
+ campaignId: string;
733
+ computedUntil: bigint;
734
+ processingStarted: bigint;
735
+ };
736
+ type: import("../database/api/.generated").$Enums.CampaignType;
737
+ id: string;
738
+ subType: number | null;
739
+ startTimestamp: bigint;
740
+ endTimestamp: bigint;
741
+ computeChainId: number;
742
+ distributionChainId: number;
743
+ campaignId: string;
744
+ rewardTokenId: string;
745
+ amount: string;
746
+ opportunityId: string;
747
+ creatorAddress: string;
748
+ }[];
749
+ };
750
+ };
751
+ };
752
+ } & {
753
+ count: {
754
+ get: {
755
+ body: unknown;
756
+ params: {};
757
+ query: {
758
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
759
+ items?: number | undefined;
760
+ subType?: number | undefined;
761
+ page?: number | undefined;
762
+ chainId?: number | undefined;
763
+ startTimestamp?: string | undefined;
764
+ endTimestamp?: string | undefined;
765
+ tokenAddress?: string | undefined;
766
+ mainParameter?: string | undefined;
767
+ campaignId?: string | undefined;
768
+ opportunityId?: string | undefined;
769
+ test?: boolean | undefined;
770
+ creatorTag?: string | undefined;
771
+ tokenSymbol?: string | undefined;
772
+ };
773
+ headers: unknown;
774
+ response: {
775
+ 200: number;
776
+ };
777
+ };
778
+ };
779
+ } & {
780
+ "campaigns-to-process": {
781
+ index: {
782
+ get: {
783
+ body: unknown;
784
+ params: {};
785
+ query: {
786
+ chainId: number;
787
+ };
788
+ headers: unknown;
789
+ response: {
790
+ 200: {
791
+ endTimestamp: bigint;
792
+ campaignId: string;
793
+ CampaignStatus: {
794
+ computedUntil: bigint;
795
+ }[];
796
+ }[];
797
+ };
798
+ };
799
+ };
800
+ };
801
+ } & {
802
+ "campaigns-to-process": {
803
+ count: {
804
+ get: {
805
+ body: unknown;
806
+ params: {};
807
+ query: {
808
+ chainId: number;
809
+ };
810
+ headers: unknown;
811
+ response: {
812
+ 200: number;
813
+ };
814
+ };
815
+ };
816
+ };
817
+ } & {
818
+ "campaigns-to-process": {
819
+ engine: {
820
+ post: {
821
+ body: unknown;
822
+ params: {};
823
+ query: {
824
+ chainId: number;
825
+ };
826
+ headers: {
827
+ authorization: string;
828
+ };
829
+ response: {
830
+ 200: string;
831
+ };
832
+ };
833
+ };
834
+ };
835
+ };
836
+ };
837
+ } & {
838
+ v4: {
839
+ protocols: {
840
+ index: {
841
+ get: {
842
+ body: unknown;
843
+ params: {};
844
+ query: {
845
+ name?: string | undefined;
846
+ items?: number | undefined;
847
+ tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
848
+ page?: number | undefined;
849
+ };
850
+ headers: unknown;
851
+ response: {
852
+ 200: ({
853
+ name: string;
854
+ url: string;
855
+ description: string;
856
+ id: string;
857
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
858
+ icon: string;
859
+ } & {})[];
860
+ };
861
+ };
862
+ };
863
+ };
864
+ } & {
865
+ protocols: {
866
+ count: {
867
+ get: {
868
+ body: unknown;
869
+ params: {};
870
+ query: unknown;
871
+ headers: unknown;
872
+ response: {
873
+ 200: number;
874
+ };
875
+ };
876
+ };
877
+ };
878
+ } & {
879
+ protocols: {
880
+ ":id": {
881
+ get: {
882
+ body: unknown;
883
+ params: {
884
+ id: string;
885
+ };
886
+ query: unknown;
887
+ headers: unknown;
888
+ response: {
889
+ 200: {
890
+ name: string;
891
+ url: string;
892
+ description: string;
893
+ id: string;
894
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
895
+ icon: string;
896
+ } | null;
897
+ };
898
+ };
899
+ };
900
+ };
901
+ } & {
902
+ protocols: {
903
+ ":id": {
904
+ patch: {
905
+ body: {
906
+ url?: string | undefined;
907
+ description?: string | undefined;
908
+ icon?: string | undefined;
909
+ };
910
+ params: {
911
+ id: string;
912
+ };
913
+ query: unknown;
914
+ headers: {
915
+ authorization: string;
916
+ };
917
+ response: {
918
+ 200: {
919
+ name: string;
920
+ url: string;
921
+ description: string;
922
+ id: string;
923
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
924
+ icon: string;
925
+ };
926
+ };
927
+ };
928
+ };
929
+ };
930
+ } & {
931
+ protocols: {
932
+ index: {
933
+ post: {
934
+ body: {
935
+ name: string;
936
+ url: string;
937
+ description: string;
938
+ id: string;
939
+ tags: never[];
940
+ icon: string;
941
+ };
942
+ params: {};
943
+ query: unknown;
944
+ headers: {
945
+ authorization: string;
946
+ };
947
+ response: {
948
+ 200: {
949
+ name: string;
950
+ url: string;
951
+ description: string;
952
+ id: string;
953
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
954
+ icon: string;
955
+ };
956
+ };
957
+ };
958
+ };
959
+ };
960
+ };
961
+ } & {
962
+ v4: {
963
+ tokens: {
964
+ ":id": {
965
+ get: {
966
+ body: unknown;
967
+ params: {
968
+ id: string;
969
+ };
970
+ query: unknown;
971
+ headers: unknown;
972
+ response: {
973
+ 200: {
974
+ symbol: string;
975
+ name: string | null;
976
+ id: string;
977
+ icon: string;
978
+ chainId: number;
979
+ address: string;
980
+ decimals: number;
981
+ verified: boolean;
982
+ isTest: boolean;
983
+ price?: number | null | undefined;
984
+ } | undefined;
985
+ };
986
+ };
987
+ };
988
+ };
989
+ } & {
990
+ tokens: {
991
+ balances: {
992
+ get: {
993
+ body: unknown;
994
+ params: {};
995
+ query: {
996
+ tokenAddress?: string | undefined;
997
+ additionalTokenAddresses?: string[] | undefined;
998
+ chainId: number;
999
+ userAddress: string;
1000
+ };
1001
+ headers: unknown;
1002
+ response: {
1003
+ 200: ({
1004
+ symbol: string;
1005
+ name: string | null;
1006
+ id: string;
1007
+ icon: string;
1008
+ chainId: number;
1009
+ address: string;
1010
+ decimals: number;
1011
+ verified: boolean;
1012
+ isTest: boolean;
1013
+ } & {
1014
+ price?: number | null | undefined;
1015
+ } & {
1016
+ balance: bigint;
1017
+ })[];
1018
+ };
1019
+ };
1020
+ };
1021
+ };
1022
+ } & {
1023
+ tokens: {
1024
+ index: {
1025
+ get: {
1026
+ body: unknown;
1027
+ params: {};
1028
+ query: {
1029
+ symbol?: string | undefined;
1030
+ name?: string | undefined;
1031
+ chainId?: any;
1032
+ address?: string | undefined;
1033
+ verified?: boolean | undefined;
1034
+ test?: boolean | undefined;
1035
+ };
1036
+ headers: unknown;
1037
+ response: {
1038
+ 200: ({
1039
+ symbol: string;
1040
+ name: string | null;
1041
+ id: string;
1042
+ icon: string;
1043
+ chainId: number;
1044
+ address: string;
1045
+ decimals: number;
1046
+ verified: boolean;
1047
+ isTest: boolean;
1048
+ } & {
1049
+ price?: number | null | undefined;
1050
+ })[];
1051
+ };
1052
+ };
1053
+ };
1054
+ };
1055
+ } & {
1056
+ tokens: {
1057
+ count: {
1058
+ get: {
1059
+ body: unknown;
1060
+ params: {};
1061
+ query: {
1062
+ symbol?: string | undefined;
1063
+ name?: string | undefined;
1064
+ chainId?: any;
1065
+ address?: string | undefined;
1066
+ verified?: boolean | undefined;
1067
+ test?: boolean | undefined;
1068
+ };
1069
+ headers: unknown;
1070
+ response: {
1071
+ 200: number;
1072
+ };
1073
+ };
1074
+ };
1075
+ };
1076
+ } & {
1077
+ tokens: {
1078
+ ":id": {
1079
+ patch: {
1080
+ body: {
1081
+ icon?: string | undefined;
1082
+ displaySymbol?: string | undefined;
1083
+ isTest?: boolean | undefined;
1084
+ };
1085
+ params: {
1086
+ id: string;
1087
+ };
1088
+ query: unknown;
1089
+ headers: {
1090
+ authorization: string;
1091
+ };
1092
+ response: {
1093
+ 200: {
1094
+ symbol: string;
1095
+ name: string | null;
1096
+ id: string;
1097
+ icon: string;
1098
+ chainId: number;
1099
+ address: string;
1100
+ decimals: number;
1101
+ displaySymbol: string;
1102
+ verified: boolean;
1103
+ isTest: boolean;
1104
+ price: number | null;
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ } & {
1112
+ v4: {
1113
+ rewards: {
1114
+ index: {
1115
+ get: {
1116
+ body: unknown;
1117
+ params: {};
1118
+ query: {
1119
+ items?: number | undefined;
1120
+ page?: number | undefined;
1121
+ chainId: number;
1122
+ campaignId: string;
1123
+ };
1124
+ headers: unknown;
1125
+ response: {
1126
+ 200: import("./modules/v4/reward").BreakdownForCampaignsRaw[];
1127
+ };
1128
+ };
1129
+ };
1130
+ } & {
1131
+ total: {
1132
+ get: {
1133
+ body: unknown;
1134
+ params: {};
1135
+ query: {
1136
+ items?: number | undefined;
1137
+ page?: number | undefined;
1138
+ chainId: number;
1139
+ campaignId: string;
1140
+ };
1141
+ headers: unknown;
1142
+ response: {
1143
+ 200: {
1144
+ campaignId: string;
1145
+ amount: bigint;
1146
+ };
1147
+ };
1148
+ };
1149
+ };
1150
+ } & {
1151
+ engine: {
1152
+ post: {
1153
+ body: {
1154
+ recipient: string;
1155
+ distributionChainId: number;
1156
+ root: string;
1157
+ proofs: string[];
1158
+ rewardToken: string;
1159
+ }[];
1160
+ params: {};
1161
+ query: unknown;
1162
+ headers: {
1163
+ authorization: string;
1164
+ };
1165
+ response: {
1166
+ 200: {
1167
+ count: number;
1168
+ };
1169
+ };
1170
+ };
1171
+ };
1172
+ } & {
1173
+ engine: {
1174
+ breakdowns: {
1175
+ post: {
1176
+ body: {
1177
+ distributionChainId: number;
1178
+ campaignId: string;
1179
+ root: string;
1180
+ rewardToken: string;
1181
+ breakdowns: {
1182
+ protocolId?: string | undefined;
1183
+ auxiliaryData1?: string | undefined;
1184
+ auxiliaryData2?: string | undefined;
1185
+ reason: string;
1186
+ pending: string;
1187
+ recipient: string;
1188
+ amount: string;
1189
+ claimed: string;
1190
+ }[];
1191
+ }[];
1192
+ params: {};
1193
+ query: unknown;
1194
+ headers: {
1195
+ authorization: string;
1196
+ };
1197
+ response: {
1198
+ 200: {
1199
+ count: number;
1200
+ } | undefined;
1201
+ };
1202
+ };
1203
+ };
1204
+ };
1205
+ } & {
1206
+ engine: {
1207
+ claims: {
1208
+ post: {
1209
+ body: {
1210
+ token: string;
1211
+ chainId: number;
1212
+ recipient: string;
1213
+ root: string;
1214
+ }[];
1215
+ params: {};
1216
+ query: unknown;
1217
+ headers: {
1218
+ authorization: string;
1219
+ };
1220
+ response: {
1221
+ 200: void;
1222
+ };
1223
+ };
1224
+ };
1225
+ };
1226
+ } & {
1227
+ engine: {
1228
+ pendings: {
1229
+ post: {
1230
+ body: {
1231
+ distributionChainId: number;
1232
+ campaignId: string;
1233
+ root: string;
1234
+ rewardToken: string;
1235
+ toUpdate: {
1236
+ auxiliaryData1?: string | undefined;
1237
+ auxiliaryData2?: string | undefined;
1238
+ reason: string;
1239
+ pending: string;
1240
+ recipient: string;
1241
+ }[];
1242
+ toCreate: {
1243
+ auxiliaryData1?: string | undefined;
1244
+ auxiliaryData2?: string | undefined;
1245
+ reason: string;
1246
+ pending: string;
1247
+ recipient: string;
1248
+ }[];
1249
+ };
1250
+ params: {};
1251
+ query: unknown;
1252
+ headers: {
1253
+ authorization: string;
1254
+ };
1255
+ response: {
1256
+ 200: boolean;
1257
+ };
1258
+ };
1259
+ };
1260
+ };
1261
+ } & {
1262
+ count: {
1263
+ get: {
1264
+ body: unknown;
1265
+ params: {};
1266
+ query: {
1267
+ items?: number | undefined;
1268
+ page?: number | undefined;
1269
+ chainId: number;
1270
+ campaignId: string;
1271
+ };
1272
+ headers: unknown;
1273
+ response: {
1274
+ 200: {
1275
+ count: number;
1276
+ };
1277
+ };
1278
+ };
1279
+ };
1280
+ } & {
1281
+ count: {
1282
+ chains: {
1283
+ get: {
1284
+ body: unknown;
1285
+ params: {};
1286
+ query: unknown;
1287
+ headers: {
1288
+ authorization: string;
1289
+ };
1290
+ response: {
1291
+ 200: {
1292
+ [x: string]: {
1293
+ breakdown: number;
1294
+ rewards: Record<string, number>;
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ };
1300
+ };
1301
+ } & {
1302
+ unclaim: {
1303
+ index: {
1304
+ get: {
1305
+ body: unknown;
1306
+ params: {};
1307
+ query: {
1308
+ chainId: number;
1309
+ campaignIds: string[];
1310
+ };
1311
+ headers: unknown;
1312
+ response: {
1313
+ 200: {
1314
+ [x: string]: string;
1315
+ };
1316
+ };
1317
+ };
1318
+ };
1319
+ };
1320
+ };
1321
+ };
1322
+ } & {
1323
+ v4: {
1324
+ chains: {
1325
+ ":chainId": {
1326
+ get: {
1327
+ body: unknown;
1328
+ params: {
1329
+ chainId: number;
1330
+ };
1331
+ query: unknown;
1332
+ headers: unknown;
1333
+ response: {
1334
+ 200: {
1335
+ name: string;
1336
+ id: number;
1337
+ icon: string;
1338
+ explorers: {
1339
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1340
+ url: string;
1341
+ id: string;
1342
+ chainId: number;
1343
+ }[];
1344
+ } | null;
1345
+ };
1346
+ };
1347
+ };
1348
+ } & {
1349
+ index: {
1350
+ get: {
1351
+ body: unknown;
1352
+ params: {};
1353
+ query: {
1354
+ name?: string | undefined;
1355
+ };
1356
+ headers: unknown;
1357
+ response: {
1358
+ 200: {
1359
+ name: string;
1360
+ id: number;
1361
+ icon: string;
1362
+ explorers: {
1363
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1364
+ url: string;
1365
+ id: string;
1366
+ chainId: number;
1367
+ }[];
1368
+ }[];
1369
+ };
1370
+ };
1371
+ };
1372
+ } & {
1373
+ count: {
1374
+ get: {
1375
+ body: unknown;
1376
+ params: {};
1377
+ query: {
1378
+ name?: string | undefined;
1379
+ };
1380
+ headers: unknown;
1381
+ response: {
1382
+ 200: number;
1383
+ };
1384
+ };
1385
+ };
1386
+ } & {
1387
+ explorers: {
1388
+ post: {
1389
+ body: {
1390
+ type: "ETHERSCAN" | "BLOCKSCOUT";
1391
+ url: string;
1392
+ chainId: number;
1393
+ };
1394
+ params: {};
1395
+ query: unknown;
1396
+ headers: {
1397
+ authorization: string;
1398
+ };
1399
+ response: {
1400
+ 200: {
1401
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1402
+ url: string;
1403
+ id: string;
1404
+ chainId: number;
1405
+ };
1406
+ };
1407
+ };
1408
+ };
1409
+ };
1410
+ } & {
1411
+ chains: {
1412
+ ":chainId": {
1413
+ patch: {
1414
+ body: {
1415
+ icon?: string | undefined;
1416
+ };
1417
+ params: {
1418
+ chainId: number;
1419
+ };
1420
+ query: unknown;
1421
+ headers: {
1422
+ authorization: string;
1423
+ };
1424
+ response: {
1425
+ 200: {
1426
+ name: string;
1427
+ id: number;
1428
+ icon: string;
1429
+ };
1430
+ };
1431
+ };
1432
+ };
1433
+ };
1434
+ };
1435
+ } & {
1436
+ v4: {
1437
+ prices: {
1438
+ index: {
1439
+ get: {
1440
+ body: unknown;
1441
+ params: {};
1442
+ query: unknown;
1443
+ headers: unknown;
1444
+ response: {
1445
+ 200: {
1446
+ [x: string]: number;
1447
+ };
1448
+ };
1449
+ };
1450
+ };
1451
+ } & {
1452
+ array: {
1453
+ get: {
1454
+ body: unknown;
1455
+ params: {};
1456
+ query: unknown;
1457
+ headers: unknown;
1458
+ response: {
1459
+ 200: {
1460
+ rate: number;
1461
+ token: string;
1462
+ }[];
1463
+ };
1464
+ };
1465
+ };
1466
+ } & {
1467
+ symbol: {
1468
+ ":symbol": {
1469
+ get: {
1470
+ body: unknown;
1471
+ params: {
1472
+ symbol: string;
1473
+ };
1474
+ query: unknown;
1475
+ headers: unknown;
1476
+ response: {
1477
+ 200: number;
1478
+ };
1479
+ };
1480
+ };
1481
+ };
1482
+ } & {
1483
+ sources: {
1484
+ index: {
1485
+ get: {
1486
+ body: unknown;
1487
+ params: {};
1488
+ query: unknown;
1489
+ headers: unknown;
1490
+ response: {
1491
+ 200: {
1492
+ symbol: string;
1493
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1494
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1495
+ id: number;
1496
+ }[];
1497
+ };
1498
+ };
1499
+ };
1500
+ };
1501
+ } & {
1502
+ sources: {
1503
+ symbol: {
1504
+ ":symbol": {
1505
+ get: {
1506
+ body: unknown;
1507
+ params: {
1508
+ symbol: string;
1509
+ };
1510
+ query: unknown;
1511
+ headers: unknown;
1512
+ response: {
1513
+ 200: {
1514
+ symbol: string;
1515
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1516
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1517
+ id: number;
1518
+ };
1519
+ };
1520
+ };
1521
+ };
1522
+ };
1523
+ };
1524
+ } & {
1525
+ sources: {
1526
+ index: {
1527
+ post: {
1528
+ body: {
1529
+ symbol: string;
1530
+ method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
1531
+ args: {};
1532
+ };
1533
+ params: {};
1534
+ query: unknown;
1535
+ headers: {
1536
+ authorization: string;
1537
+ };
1538
+ response: {
1539
+ 200: number | undefined;
1540
+ };
1541
+ };
1542
+ };
1543
+ };
1544
+ } & {
1545
+ sources: {
1546
+ symbol: {
1547
+ ":symbol": {
1548
+ patch: {
1549
+ body: {
1550
+ symbol?: string | undefined;
1551
+ method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
1552
+ args?: {} | undefined;
1553
+ };
1554
+ params: {
1555
+ symbol: string;
1556
+ };
1557
+ query: unknown;
1558
+ headers: {
1559
+ authorization: string;
1560
+ };
1561
+ response: {
1562
+ 200: {
1563
+ symbol: string;
1564
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1565
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1566
+ id: number;
1567
+ };
1568
+ };
1569
+ };
1570
+ };
1571
+ };
1572
+ };
1573
+ } & {
1574
+ sources: {
1575
+ symbol: {
1576
+ ":symbol": {
1577
+ delete: {
1578
+ body: unknown;
1579
+ params: {
1580
+ symbol: string;
1581
+ };
1582
+ query: unknown;
1583
+ headers: {
1584
+ authorization: string;
1585
+ };
1586
+ response: {
1587
+ 200: {
1588
+ symbol: string;
1589
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1590
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1591
+ id: number;
1592
+ };
1593
+ };
1594
+ };
1595
+ };
1596
+ };
1597
+ };
1598
+ };
1599
+ };
1600
+ } & {
1601
+ v4: {
1602
+ blacklists: {
1603
+ index: {
1604
+ get: {
1605
+ body: unknown;
1606
+ params: {};
1607
+ query: unknown;
1608
+ headers: unknown;
1609
+ response: {
1610
+ 200: {
1611
+ id: string;
1612
+ chainId: number;
1613
+ poolAddress: string;
1614
+ userAddress: string;
1615
+ arrestTimestamp: bigint;
1616
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1617
+ }[];
1618
+ };
1619
+ };
1620
+ };
1621
+ };
1622
+ } & {
1623
+ blacklists: {
1624
+ mapping: {
1625
+ get: {
1626
+ body: unknown;
1627
+ params: {};
1628
+ query: unknown;
1629
+ headers: unknown;
1630
+ response: {
1631
+ 200: unknown;
1632
+ };
1633
+ };
1634
+ };
1635
+ };
1636
+ } & {
1637
+ blacklists: {
1638
+ check: {
1639
+ ":address": {
1640
+ get: {
1641
+ body: unknown;
1642
+ params: {
1643
+ address: string;
1644
+ };
1645
+ query: unknown;
1646
+ headers: unknown;
1647
+ response: {
1648
+ 200: boolean;
1649
+ };
1650
+ };
1651
+ };
1652
+ };
1653
+ };
1654
+ } & {
1655
+ blacklists: {
1656
+ index: {
1657
+ post: {
1658
+ body: {
1659
+ reason?: string | undefined;
1660
+ chainId: number;
1661
+ poolAddress: string;
1662
+ userAddress: string;
1663
+ };
1664
+ params: {};
1665
+ query: unknown;
1666
+ headers: {
1667
+ authorization: string;
1668
+ };
1669
+ response: {
1670
+ 200: {
1671
+ id: string;
1672
+ chainId: number;
1673
+ poolAddress: string;
1674
+ userAddress: string;
1675
+ arrestTimestamp: bigint;
1676
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1677
+ };
1678
+ };
1679
+ };
1680
+ };
1681
+ };
1682
+ } & {
1683
+ blacklists: {
1684
+ user: {
1685
+ ":address": {
1686
+ delete: {
1687
+ body: unknown;
1688
+ params: {
1689
+ address: string;
1690
+ };
1691
+ query: unknown;
1692
+ headers: {
1693
+ authorization: string;
1694
+ };
1695
+ response: {
1696
+ 200: boolean;
1697
+ };
1698
+ };
1699
+ };
1700
+ };
1701
+ };
1702
+ };
1703
+ } & {
1704
+ v4: {
1705
+ users: {
1706
+ index: {
1707
+ get: {
1708
+ body: unknown;
1709
+ params: {};
1710
+ query: {
1711
+ items?: number | undefined;
1712
+ tags?: string[] | undefined;
1713
+ page?: number | undefined;
1714
+ address?: string | undefined;
1715
+ };
1716
+ headers: unknown;
1717
+ response: {
1718
+ 200: {
1719
+ tags: string[];
1720
+ address: string;
1721
+ }[];
1722
+ };
1723
+ };
1724
+ };
1725
+ };
1726
+ } & {
1727
+ users: {
1728
+ tags: {
1729
+ get: {
1730
+ body: unknown;
1731
+ params: {};
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
+ users: {
1747
+ ":address": {
1748
+ get: {
1749
+ body: unknown;
1750
+ params: {
1751
+ address: string;
1752
+ };
1753
+ query: unknown;
1754
+ headers: unknown;
1755
+ response: {
1756
+ 200: {
1757
+ tags: string[];
1758
+ address: string;
1759
+ } | null;
1760
+ };
1761
+ };
1762
+ };
1763
+ };
1764
+ } & {
1765
+ users: {
1766
+ ":address": {
1767
+ rewards: {
1768
+ breakdowns: {
1769
+ get: {
1770
+ body: unknown;
1771
+ params: {
1772
+ address: string;
1773
+ };
1774
+ query: {
1775
+ chainId?: number | undefined;
1776
+ };
1777
+ headers: unknown;
1778
+ response: {
1779
+ 200: (Omit<{
1780
+ chain: import("../database/api/.generated").Chain;
1781
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1782
+ }, "rewards"> & {
1783
+ rewards: (Omit<{
1784
+ token: {
1785
+ symbol: string;
1786
+ name: string | null;
1787
+ id: string;
1788
+ icon: string;
1789
+ chainId: number;
1790
+ address: string;
1791
+ decimals: number;
1792
+ displaySymbol: string;
1793
+ verified: boolean;
1794
+ isTest: boolean;
1795
+ price: number | null;
1796
+ };
1797
+ breakdowns: {
1798
+ campaignId: string;
1799
+ opportunity: {
1800
+ Chain: {
1801
+ name: string;
1802
+ id: number;
1803
+ icon: string;
1804
+ };
1805
+ Tokens: {
1806
+ symbol: string;
1807
+ name: string | null;
1808
+ id: string;
1809
+ icon: string;
1810
+ chainId: number;
1811
+ address: string;
1812
+ decimals: number;
1813
+ displaySymbol: string;
1814
+ verified: boolean;
1815
+ isTest: boolean;
1816
+ price: number | null;
1817
+ }[];
1818
+ Protocols: {
1819
+ name: string;
1820
+ url: string;
1821
+ description: string;
1822
+ id: string;
1823
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1824
+ icon: string;
1825
+ }[];
1826
+ MainProtocol: {
1827
+ name: string;
1828
+ url: string;
1829
+ description: string;
1830
+ id: string;
1831
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1832
+ icon: string;
1833
+ } | null;
1834
+ } & {
1835
+ name: string;
1836
+ type: import("../database/api/.generated").$Enums.CampaignType;
1837
+ id: string;
1838
+ status: import("../database/api/.generated").$Enums.Status;
1839
+ tags: string[];
1840
+ identifier: string;
1841
+ chainId: number;
1842
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
1843
+ mainProtocolId: string | null;
1844
+ tvl: number;
1845
+ apr: number;
1846
+ dailyRewards: number;
1847
+ };
1848
+ reason: string;
1849
+ pending: string;
1850
+ amount: string;
1851
+ claimed: string;
1852
+ auxiliaryData1: string | null;
1853
+ auxiliaryData2: string | null;
1854
+ }[];
1855
+ claimed: bigint;
1856
+ amount: bigint;
1857
+ pending: bigint;
1858
+ recipient: string;
1859
+ root: string;
1860
+ proofs: string[];
1861
+ }, "breakdowns"> & {
1862
+ breakdowns: {
1863
+ opportunity: import("./modules/v4").Opportunity["model"];
1864
+ claimed: bigint;
1865
+ amount: bigint;
1866
+ pending: bigint;
1867
+ auxiliaryData1: string | null;
1868
+ auxiliaryData2: string | null;
1869
+ }[];
1870
+ })[];
1871
+ distributor: string;
1872
+ })[];
1873
+ };
1874
+ };
1875
+ };
1876
+ };
1877
+ };
1878
+ };
1879
+ } & {
1880
+ users: {
1881
+ ":address": {
1882
+ rewards: {
1883
+ get: {
1884
+ body: unknown;
1885
+ params: {
1886
+ address: string;
1887
+ };
1888
+ query: {
1889
+ chainId: number[];
1890
+ };
1891
+ headers: unknown;
1892
+ response: {
1893
+ 200: (Omit<{
1894
+ chain: import("../database/api/.generated").Chain;
1895
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1896
+ }, "rewards"> & {
1897
+ rewards: (Omit<{
1898
+ token: {
1899
+ symbol: string;
1900
+ name: string | null;
1901
+ id: string;
1902
+ icon: string;
1903
+ chainId: number;
1904
+ address: string;
1905
+ decimals: number;
1906
+ displaySymbol: string;
1907
+ verified: boolean;
1908
+ isTest: boolean;
1909
+ price: number | null;
1910
+ };
1911
+ breakdowns: {
1912
+ campaignId: string;
1913
+ opportunity: {
1914
+ Chain: {
1915
+ name: string;
1916
+ id: number;
1917
+ icon: string;
1918
+ };
1919
+ Tokens: {
1920
+ symbol: string;
1921
+ name: string | null;
1922
+ id: string;
1923
+ icon: string;
1924
+ chainId: number;
1925
+ address: string;
1926
+ decimals: number;
1927
+ displaySymbol: string;
1928
+ verified: boolean;
1929
+ isTest: boolean;
1930
+ price: number | null;
1931
+ }[];
1932
+ Protocols: {
1933
+ name: string;
1934
+ url: string;
1935
+ description: string;
1936
+ id: string;
1937
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1938
+ icon: string;
1939
+ }[];
1940
+ MainProtocol: {
1941
+ name: string;
1942
+ url: string;
1943
+ description: string;
1944
+ id: string;
1945
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1946
+ icon: string;
1947
+ } | null;
1948
+ } & {
1949
+ name: string;
1950
+ type: import("../database/api/.generated").$Enums.CampaignType;
1951
+ id: string;
1952
+ status: import("../database/api/.generated").$Enums.Status;
1953
+ tags: string[];
1954
+ identifier: string;
1955
+ chainId: number;
1956
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
1957
+ mainProtocolId: string | null;
1958
+ tvl: number;
1959
+ apr: number;
1960
+ dailyRewards: number;
1961
+ };
1962
+ reason: string;
1963
+ pending: string;
1964
+ amount: string;
1965
+ claimed: string;
1966
+ auxiliaryData1: string | null;
1967
+ auxiliaryData2: string | null;
1968
+ }[];
1969
+ claimed: bigint;
1970
+ amount: bigint;
1971
+ pending: bigint;
1972
+ recipient: string;
1973
+ root: string;
1974
+ proofs: string[];
1975
+ }, "breakdowns"> & {
1976
+ breakdowns: {
1977
+ campaignId: string;
1978
+ reason: string;
1979
+ pending: string;
1980
+ amount: string;
1981
+ claimed: string;
1982
+ auxiliaryData1: string | null;
1983
+ auxiliaryData2: string | null;
1984
+ }[];
1985
+ })[];
1986
+ })[];
1987
+ };
1988
+ };
1989
+ };
1990
+ };
1991
+ };
1992
+ } & {
1993
+ users: {
1994
+ index: {
1995
+ post: {
1996
+ body: {
1997
+ tags: string[];
1998
+ address: string;
1999
+ };
2000
+ params: {};
2001
+ query: unknown;
2002
+ headers: {
2003
+ authorization: string;
2004
+ };
2005
+ response: {
2006
+ 200: {
2007
+ tags: string[];
2008
+ address: string;
2009
+ };
2010
+ };
2011
+ };
2012
+ };
2013
+ };
2014
+ } & {
2015
+ users: {
2016
+ sync: {
2017
+ post: {
2018
+ body: unknown;
2019
+ params: {};
2020
+ query: unknown;
2021
+ headers: {
2022
+ authorization: string;
2023
+ };
2024
+ response: {
2025
+ 200: void;
2026
+ };
2027
+ };
2028
+ };
2029
+ };
2030
+ } & {
2031
+ users: {
2032
+ ":address": {
2033
+ tags: {
2034
+ patch: {
2035
+ body: {
2036
+ tags: string[];
2037
+ };
2038
+ params: {
2039
+ address: string;
2040
+ };
2041
+ query: unknown;
2042
+ headers: {
2043
+ authorization: string;
2044
+ };
2045
+ response: {
2046
+ 200: {
2047
+ tags: string[];
2048
+ address: string;
2049
+ };
2050
+ };
2051
+ };
2052
+ };
2053
+ };
2054
+ };
2055
+ };
2056
+ } & {
2057
+ v4: {
2058
+ roots: {
2059
+ index: {
2060
+ get: {
2061
+ body: unknown;
2062
+ params: {};
2063
+ query: {
2064
+ chainId: number;
2065
+ fromTimestamp: string;
2066
+ toTimestamp: string;
2067
+ };
2068
+ headers: unknown;
2069
+ response: {
2070
+ 200: {
2071
+ timestamp: bigint;
2072
+ chainId: number;
2073
+ root: string;
2074
+ epoch: number;
2075
+ }[];
2076
+ };
2077
+ };
2078
+ };
2079
+ };
2080
+ } & {
2081
+ roots: {
2082
+ live: {
2083
+ get: {
2084
+ body: unknown;
2085
+ params: {};
2086
+ query: unknown;
2087
+ headers: unknown;
2088
+ response: {
2089
+ 200: {
2090
+ live: string;
2091
+ tree: string;
2092
+ lastTree: string;
2093
+ }[];
2094
+ };
2095
+ };
2096
+ };
2097
+ };
2098
+ } & {
2099
+ roots: {
2100
+ engine: {
2101
+ post: {
2102
+ body: {
2103
+ timestamp: number;
2104
+ chainId: number;
2105
+ root: string;
2106
+ epoch: number;
2107
+ };
2108
+ params: {};
2109
+ query: unknown;
2110
+ headers: {
2111
+ authorization: string;
2112
+ };
2113
+ response: {
2114
+ 200: {
2115
+ timestamp: bigint;
2116
+ chainId: number;
2117
+ root: string;
2118
+ epoch: number;
2119
+ };
2120
+ };
2121
+ };
2122
+ };
2123
+ };
2124
+ };
2125
+ } & {
2126
+ v4: {
2127
+ interaction: {
2128
+ targets: {
2129
+ get: {
2130
+ body: unknown;
2131
+ params: {};
2132
+ query: {
2133
+ protocolId?: string | undefined;
2134
+ identifier: string;
2135
+ chainId: number;
2136
+ };
2137
+ headers: unknown;
2138
+ response: {
2139
+ 200: import("./modules/v4/interaction/interaction.model").InteractionTarget[];
2140
+ };
2141
+ };
2142
+ };
2143
+ };
2144
+ } & {
2145
+ interaction: {
2146
+ protocols: {
2147
+ get: {
2148
+ body: unknown;
2149
+ params: {};
2150
+ query: {
2151
+ chainId?: number | undefined;
2152
+ };
2153
+ headers: unknown;
2154
+ response: {
2155
+ 200: ({
2156
+ name: string;
2157
+ url: string;
2158
+ description: string;
2159
+ id: string;
2160
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
2161
+ icon: string;
2162
+ } & {})[];
2163
+ };
2164
+ };
2165
+ };
2166
+ };
2167
+ } & {
2168
+ interaction: {
2169
+ transaction: {
2170
+ get: {
2171
+ body: unknown;
2172
+ params: {};
2173
+ query: {
2174
+ identifier: string;
2175
+ chainId: number;
2176
+ protocolId: string;
2177
+ userAddress: string;
2178
+ fromAmount: string;
2179
+ fromTokenAddress: string;
2180
+ };
2181
+ headers: unknown;
2182
+ response: {
2183
+ 200: {
2184
+ amountIn: bigint;
2185
+ allowance: bigint;
2186
+ approved: boolean;
2187
+ transaction: import("./modules/v4/interaction/interaction.model").UserTransaction;
2188
+ approval: import("./modules/v4/interaction/interaction.model").UserTransaction;
2189
+ } | undefined;
2190
+ };
2191
+ };
2192
+ };
2193
+ };
2194
+ } & {
2195
+ interaction: {
2196
+ sponsored: {
2197
+ get: {
2198
+ body: unknown;
2199
+ params: {};
2200
+ query: {
2201
+ identifier: string;
2202
+ chainId: number;
2203
+ protocolId: string;
2204
+ userAddress: string;
2205
+ fromAmount: string;
2206
+ fromTokenAddress: string;
2207
+ };
2208
+ headers: unknown;
2209
+ response: {
2210
+ 200: {
2211
+ expirationTime: string;
2212
+ expiresIn: string;
2213
+ feeTokenAmount: string;
2214
+ feeTokendecimals: string;
2215
+ feeUSD: string;
2216
+ gasLimit: string;
2217
+ gasPrice: string;
2218
+ markup: string;
2219
+ maxNonce: string;
2220
+ protocolAddress: string;
2221
+ sponsorshipRatio: string;
2222
+ tokenAddress: string;
2223
+ tokenPrice: string;
2224
+ txData: {
2225
+ from: string;
2226
+ to: string;
2227
+ data: string;
2228
+ };
2229
+ warnings: string[];
2230
+ } | undefined;
2231
+ };
2232
+ };
2233
+ };
2234
+ };
2235
+ };
2236
+ } & {
2237
+ v4: {
2238
+ accounting: {
2239
+ index: {
2240
+ get: {
2241
+ body: unknown;
2242
+ params: {};
2243
+ query: {
2244
+ items?: number | undefined;
2245
+ page?: number | undefined;
2246
+ };
2247
+ headers: {
2248
+ authorization: string;
2249
+ };
2250
+ response: {
2251
+ 200: {
2252
+ id: string;
2253
+ timestamp: number;
2254
+ chainId: number;
2255
+ fromTokenId: string;
2256
+ toTokenId: string;
2257
+ multisig: string;
2258
+ recipient: string;
2259
+ amountIn: string;
2260
+ amountOut: string;
2261
+ datetime: Date;
2262
+ }[];
2263
+ };
2264
+ };
2265
+ };
2266
+ } & {
2267
+ revenues: {
2268
+ get: {
2269
+ body: unknown;
2270
+ params: {};
2271
+ query: unknown;
2272
+ headers: {
2273
+ authorization: string;
2274
+ };
2275
+ response: {
2276
+ 200: {
2277
+ totalAmount: number;
2278
+ };
2279
+ };
2280
+ };
2281
+ };
2282
+ } & {
2283
+ revenues: {
2284
+ "per-month": {
2285
+ ":year": {
2286
+ ":month": {
2287
+ get: {
2288
+ body: unknown;
2289
+ params: {
2290
+ month: number;
2291
+ year: number;
2292
+ };
2293
+ query: unknown;
2294
+ headers: {
2295
+ authorization: string;
2296
+ };
2297
+ response: {
2298
+ 200: {
2299
+ totalAmount: number;
2300
+ from: string;
2301
+ to: string;
2302
+ };
2303
+ };
2304
+ };
2305
+ };
2306
+ };
2307
+ };
2308
+ };
2309
+ } & {
2310
+ revenues: {
2311
+ chains: {
2312
+ ":chainId": {
2313
+ get: {
2314
+ body: unknown;
2315
+ params: {
2316
+ chainId: number;
2317
+ };
2318
+ query: unknown;
2319
+ headers: {
2320
+ authorization: string;
2321
+ };
2322
+ response: {
2323
+ 200: {
2324
+ totalAmount: number;
2325
+ };
2326
+ };
2327
+ };
2328
+ };
2329
+ };
2330
+ };
2331
+ } & {
2332
+ revenues: {
2333
+ chains: {
2334
+ ":chainId": {
2335
+ "per-month": {
2336
+ ":year": {
2337
+ ":month": {
2338
+ get: {
2339
+ body: unknown;
2340
+ params: {
2341
+ chainId: number;
2342
+ month: number;
2343
+ year: number;
2344
+ };
2345
+ query: unknown;
2346
+ headers: {
2347
+ authorization: string;
2348
+ };
2349
+ response: {
2350
+ 200: {
2351
+ totalAmount: number;
2352
+ from: string;
2353
+ to: string;
2354
+ };
2355
+ };
2356
+ };
2357
+ };
2358
+ };
2359
+ };
2360
+ };
2361
+ };
2362
+ };
2363
+ } & {
2364
+ tokens: {
2365
+ ":chainId": {
2366
+ ":tokenAddress": {
2367
+ get: {
2368
+ body: unknown;
2369
+ params: {
2370
+ chainId: number;
2371
+ tokenAddress: string;
2372
+ };
2373
+ query: unknown;
2374
+ headers: {
2375
+ authorization: string;
2376
+ };
2377
+ response: {
2378
+ 200: {
2379
+ totalAmount: number;
2380
+ totalAmountUSD: number;
2381
+ };
2382
+ };
2383
+ };
2384
+ };
2385
+ };
2386
+ };
2387
+ } & {
2388
+ tokens: {
2389
+ ":chainId": {
2390
+ ":tokenAddress": {
2391
+ "per-month": {
2392
+ ":year": {
2393
+ ":month": {
2394
+ get: {
2395
+ body: unknown;
2396
+ params: {
2397
+ chainId: number;
2398
+ tokenAddress: string;
2399
+ month: number;
2400
+ year: number;
2401
+ };
2402
+ query: unknown;
2403
+ headers: {
2404
+ authorization: string;
2405
+ };
2406
+ response: {
2407
+ 200: {
2408
+ totalAmount: number;
2409
+ totalAmountUSD: number;
2410
+ from: string;
2411
+ to: string;
2412
+ };
2413
+ };
2414
+ };
2415
+ };
2416
+ };
2417
+ };
2418
+ };
2419
+ };
2420
+ };
2421
+ };
2422
+ };
2423
+ } & {
2424
+ v4: {
2425
+ "dynamic-data": {
2426
+ index: {
2427
+ get: {
2428
+ body: unknown;
2429
+ params: {};
2430
+ query: {
2431
+ chainId: number;
2432
+ tokenAddress: string;
2433
+ };
2434
+ headers: {
2435
+ authorization: string;
2436
+ };
2437
+ response: {
2438
+ 200: {
2439
+ tvl: number;
2440
+ totalSupply: number;
2441
+ cardName: string;
2442
+ blacklistedSupply: number;
2443
+ priceTargetToken: number;
2444
+ };
2445
+ };
2446
+ };
2447
+ };
2448
+ };
2449
+ };
2450
+ } & {
2451
+ v4: {
2452
+ "campaign-status": {
2453
+ engine: {
2454
+ ":campaignId": {
2455
+ put: {
2456
+ body: {
2457
+ value: "SUCCESS";
2458
+ computedUntil: number;
2459
+ } | {
2460
+ value: "PROCESSING";
2461
+ } | {
2462
+ error: string;
2463
+ details: string;
2464
+ value: "SKIPPED";
2465
+ } | {
2466
+ error: string;
2467
+ details: string;
2468
+ value: "FAILED";
2469
+ };
2470
+ params: {
2471
+ campaignId: string;
2472
+ };
2473
+ query: unknown;
2474
+ headers: {
2475
+ authorization: string;
2476
+ };
2477
+ response: {
2478
+ 200: void;
2479
+ };
2480
+ };
2481
+ };
2482
+ };
2483
+ };
2484
+ } & {
2485
+ "campaign-status": {
2486
+ engine: {
2487
+ overlaps: {
2488
+ get: {
2489
+ body: unknown;
2490
+ params: {};
2491
+ query: {
2492
+ campaignId: string;
2493
+ distributionChain: number;
2494
+ };
2495
+ headers: {
2496
+ authorization: string;
2497
+ };
2498
+ response: {
2499
+ 200: boolean;
2500
+ };
2501
+ };
2502
+ };
2503
+ };
2504
+ };
2505
+ } & {
2506
+ "campaign-status": {
2507
+ index: {
2508
+ get: {
2509
+ body: unknown;
2510
+ params: {};
2511
+ query: {
2512
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2513
+ computeChainId?: number | undefined;
2514
+ };
2515
+ headers: unknown;
2516
+ response: {
2517
+ 200: {
2518
+ error: string;
2519
+ details: import("database/api/.generated/runtime/library").JsonValue;
2520
+ status: import("../database/api/.generated").$Enums.RunStatus;
2521
+ campaignId: string;
2522
+ computedUntil: bigint;
2523
+ processingStarted: bigint;
2524
+ }[];
2525
+ };
2526
+ };
2527
+ };
2528
+ };
2529
+ } & {
2530
+ "campaign-status": {
2531
+ ":campaignId": {
2532
+ get: {
2533
+ body: unknown;
2534
+ params: {
2535
+ campaignId: string;
2536
+ };
2537
+ query: unknown;
2538
+ headers: unknown;
2539
+ response: {
2540
+ 200: {
2541
+ error: string;
2542
+ details: import("database/api/.generated/runtime/library").JsonValue;
2543
+ status: import("../database/api/.generated").$Enums.RunStatus;
2544
+ campaignId: string;
2545
+ computedUntil: bigint;
2546
+ processingStarted: bigint;
2547
+ }[] | {
2548
+ error: string;
2549
+ details: import("database/api/.generated/runtime/library").JsonValue;
2550
+ status: import("../database/api/.generated").$Enums.RunStatus;
2551
+ campaignId: string;
2552
+ computedUntil: bigint;
2553
+ processingStarted: bigint;
2554
+ };
2555
+ };
2556
+ };
2557
+ };
2558
+ };
2559
+ };
2560
+ } & {
2561
+ v4: {
2562
+ liquidity: {
2563
+ index: {
2564
+ get: {
2565
+ body: unknown;
2566
+ params: {};
2567
+ query: {
2568
+ chainId: number;
2569
+ address: string;
2570
+ };
2571
+ headers: unknown;
2572
+ response: {
2573
+ 200: import("./modules/v4/liquidity").PositionT[];
2574
+ };
2575
+ };
2576
+ };
2577
+ };
2578
+ };
2579
+ } & {
2580
+ v4: {
2581
+ claims: {
2582
+ ":address": {
2583
+ get: {
2584
+ body: unknown;
2585
+ params: {
2586
+ address: string;
2587
+ };
2588
+ query: unknown;
2589
+ headers: unknown;
2590
+ response: {
2591
+ 200: (import("./modules/v4/claims").ClaimModel & {
2592
+ token: import("./modules/v4").Token["model"];
2593
+ })[];
2594
+ };
2595
+ };
2596
+ };
2597
+ };
2598
+ };
2599
+ } & {
2600
+ v3: {
2601
+ app: {
2602
+ get: {
2603
+ body: unknown;
2604
+ params: {};
2605
+ query: {};
2606
+ headers: unknown;
2607
+ response: {
2608
+ [x: string]: any;
2609
+ 200: any;
2610
+ };
2611
+ };
2612
+ };
2613
+ };
2614
+ } & {
2615
+ v3: {
2616
+ blacklist: {
2617
+ get: {
2618
+ body: unknown;
2619
+ params: {};
2620
+ query: {
2621
+ user: string;
2622
+ };
2623
+ headers: unknown;
2624
+ response: {
2625
+ 200: {
2626
+ isBlacklisted: boolean;
2627
+ };
2628
+ };
2629
+ };
2630
+ };
2631
+ };
2632
+ } & {
2633
+ v3: {
2634
+ campaignClaims: {
2635
+ get: {
2636
+ body: unknown;
2637
+ params: {};
2638
+ query: {
2639
+ byReason?: boolean | undefined;
2640
+ chainId: number;
2641
+ campaignId: string;
2642
+ };
2643
+ headers: unknown;
2644
+ response: {
2645
+ 200: unknown;
2646
+ };
2647
+ };
2648
+ };
2649
+ };
2650
+ } & {
2651
+ v3: {
2652
+ campaignReport: {
2653
+ get: {
2654
+ body: unknown;
2655
+ params: {};
2656
+ query: {
2657
+ chainId: number;
2658
+ campaignId: string;
2659
+ };
2660
+ headers: unknown;
2661
+ response: {
2662
+ 200: import("./utils/queries/rewardsAmount").RewardsAmountQueryOutput;
2663
+ };
2664
+ };
2665
+ };
2666
+ };
2667
+ } & {
2668
+ v3: {
2669
+ campaigns: {
2670
+ get: {
2671
+ body: unknown;
2672
+ params: {};
2673
+ query: {
2674
+ types?: string | number | string[] | number[] | undefined;
2675
+ creatorTag?: string | undefined;
2676
+ live?: boolean | undefined;
2677
+ chainIds?: string | string[] | undefined;
2678
+ hideTestTokens?: string | undefined;
2679
+ };
2680
+ headers: unknown;
2681
+ response: {
2682
+ [x: string]: any;
2683
+ 200: any;
2684
+ };
2685
+ };
2686
+ };
2687
+ };
2688
+ } & {
2689
+ v3: {
2690
+ campaignsForMainParameter: {
2691
+ get: {
2692
+ body: unknown;
2693
+ params: {};
2694
+ query: {
2695
+ chainId: number;
2696
+ mainParameter: string;
2697
+ };
2698
+ headers: unknown;
2699
+ response: {
2700
+ 200: import("./types/returnTypes").CampaignsForMainParameterReturnType;
2701
+ };
2702
+ };
2703
+ };
2704
+ };
2705
+ } & {
2706
+ v3: {
2707
+ campaignInfo: {
2708
+ post: {
2709
+ body: {
2710
+ [x: string]: string[];
2711
+ };
2712
+ params: {};
2713
+ query: unknown;
2714
+ headers: unknown;
2715
+ response: {
2716
+ 200: {
2717
+ [x: string]: Record<string, any>;
2718
+ } | {
2719
+ error: string;
2720
+ };
2721
+ };
2722
+ };
2723
+ };
2724
+ };
2725
+ } & {
2726
+ v3: {
2727
+ campaignsRewardsReport: {
2728
+ get: {
2729
+ body: unknown;
2730
+ params: {};
2731
+ query: {
2732
+ from?: number | undefined;
2733
+ to?: number | undefined;
2734
+ chain_campaignIds: never[];
2735
+ };
2736
+ headers: unknown;
2737
+ response: {
2738
+ 200: any[];
2739
+ };
2740
+ };
2741
+ };
2742
+ };
2743
+ } & {
2744
+ v3: {
2745
+ campaignUnclaimed: {
2746
+ get: {
2747
+ body: unknown;
2748
+ params: {};
2749
+ query: {
2750
+ chainId: number;
2751
+ campaignIds: string;
2752
+ };
2753
+ headers: unknown;
2754
+ response: {
2755
+ 200: {
2756
+ [x: string]: string;
2757
+ };
2758
+ };
2759
+ };
2760
+ };
2761
+ };
2762
+ } & {
2763
+ v3: {
2764
+ claims: {
2765
+ get: {
2766
+ body: unknown;
2767
+ params: {};
2768
+ query: {
2769
+ creatorTag?: string | undefined;
2770
+ chainIds?: string | string[] | undefined;
2771
+ byReason?: boolean | undefined;
2772
+ user: string;
2773
+ };
2774
+ headers: unknown;
2775
+ response: {
2776
+ 200: unknown;
2777
+ };
2778
+ };
2779
+ };
2780
+ };
2781
+ } & {
2782
+ v3: {
2783
+ compoundV2: {
2784
+ get: {
2785
+ body: unknown;
2786
+ params: {};
2787
+ query: {};
2788
+ headers: unknown;
2789
+ response: {
2790
+ 200: {
2791
+ [x: string]: {
2792
+ address: string;
2793
+ symbolCToken: string;
2794
+ decimalsCToken: number;
2795
+ underlying: string;
2796
+ symbolUnderlying: string;
2797
+ decimalsUnderlying: number;
2798
+ }[];
2799
+ };
2800
+ };
2801
+ };
2802
+ };
2803
+ };
2804
+ } & {
2805
+ v3: {
2806
+ createCampaign: {
2807
+ get: {
2808
+ body: unknown;
2809
+ params: {};
2810
+ query: {
2811
+ chainId: number;
2812
+ user: string;
2813
+ };
2814
+ headers: unknown;
2815
+ response: {
2816
+ 200: {
2817
+ feeRebate: number | undefined;
2818
+ message: any;
2819
+ signed: boolean | undefined;
2820
+ validRewardTokens: any;
2821
+ };
2822
+ };
2823
+ };
2824
+ };
2825
+ };
2826
+ } & {
2827
+ v3: {
2828
+ dolomite: {
2829
+ get: {
2830
+ body: unknown;
2831
+ params: {};
2832
+ query: {};
2833
+ headers: unknown;
2834
+ response: {
2835
+ [x: string]: any;
2836
+ 200: any;
2837
+ };
2838
+ };
2839
+ };
2840
+ };
2841
+ } & {
2842
+ v3: {
2843
+ euler: {
2844
+ get: {
2845
+ body: unknown;
2846
+ params: {};
2847
+ query: {};
2848
+ headers: unknown;
2849
+ response: {
2850
+ 200: import("./libs/campaigns/utils/getEulerV2Vaults").EulerVaultType[];
2851
+ };
2852
+ };
2853
+ };
2854
+ };
2855
+ } & {
2856
+ v3: {
2857
+ fetch: {
2858
+ get: {
2859
+ body: unknown;
2860
+ params: {};
2861
+ query: {
2862
+ index: number;
2863
+ chainId: number;
2864
+ };
2865
+ headers: unknown;
2866
+ response: {
2867
+ 200: string | {
2868
+ message: string;
2869
+ name: string;
2870
+ };
2871
+ };
2872
+ };
2873
+ };
2874
+ };
2875
+ } & {
2876
+ v3: {
2877
+ health: {
2878
+ get: {
2879
+ body: unknown;
2880
+ params: {};
2881
+ query: {};
2882
+ headers: unknown;
2883
+ response: {
2884
+ 200: {
2885
+ success: boolean;
2886
+ };
2887
+ };
2888
+ };
2889
+ };
2890
+ };
2891
+ } & {
2892
+ v3: {
2893
+ lostyield: {
2894
+ get: {
2895
+ body: unknown;
2896
+ params: {};
2897
+ query: {
2898
+ user: string;
2899
+ };
2900
+ headers: unknown;
2901
+ response: {
2902
+ [x: string]: any;
2903
+ 200: any;
2904
+ };
2905
+ };
2906
+ };
2907
+ };
2908
+ } & {
2909
+ v3: {
2910
+ merkl: {
2911
+ get: {
2912
+ body: unknown;
2913
+ params: {};
2914
+ query: unknown;
2915
+ headers: unknown;
2916
+ response: {
2917
+ [x: string]: any;
2918
+ 200: any;
2919
+ };
2920
+ };
2921
+ };
2922
+ };
2923
+ } & {
2924
+ v3: {
2925
+ morphoMarkets: {
2926
+ get: {
2927
+ body: unknown;
2928
+ params: {};
2929
+ query: {
2930
+ chainId: number;
2931
+ repository: string;
2932
+ };
2933
+ headers: unknown;
2934
+ response: {
2935
+ [x: string]: any;
2936
+ 200: any;
2937
+ };
2938
+ };
2939
+ };
2940
+ };
2941
+ } & {
2942
+ v3: {
2943
+ morphoVaults: {
2944
+ get: {
2945
+ body: unknown;
2946
+ params: {};
2947
+ query: {
2948
+ chainId: number;
2949
+ repository: string;
2950
+ };
2951
+ headers: unknown;
2952
+ response: {
2953
+ [x: string]: any;
2954
+ 200: any;
2955
+ };
2956
+ };
2957
+ };
2958
+ };
2959
+ } & {
2960
+ v3: {
2961
+ multiChainPositions: {
2962
+ get: {
2963
+ body: unknown;
2964
+ params: {};
2965
+ query: {
2966
+ chainIds?: string | string[] | undefined;
2967
+ user: string;
2968
+ creatorTag: string;
2969
+ };
2970
+ headers: unknown;
2971
+ response: {
2972
+ [x: string]: any;
2973
+ 200: any;
2974
+ };
2975
+ };
2976
+ };
2977
+ };
2978
+ } & {
2979
+ v3: {
2980
+ opportunity: {
2981
+ get: {
2982
+ body: unknown;
2983
+ params: {};
2984
+ query: {
2985
+ type?: undefined;
2986
+ tag?: string | undefined;
2987
+ chainId?: undefined;
2988
+ mainParameter?: string | undefined;
2989
+ action?: undefined;
2990
+ campaigns?: boolean | undefined;
2991
+ testTokens?: boolean | undefined;
2992
+ };
2993
+ headers: unknown;
2994
+ response: {
2995
+ 200: {};
2996
+ };
2997
+ };
2998
+ };
2999
+ };
3000
+ } & {
3001
+ v3: {
3002
+ overview: {
3003
+ get: {
3004
+ body: unknown;
3005
+ params: {};
3006
+ query: {
3007
+ chainId?: undefined;
3008
+ };
3009
+ headers: unknown;
3010
+ response: {
3011
+ 200: {
3012
+ disputes: {
3013
+ [chainId: number]: {
3014
+ root: string;
3015
+ endOfDisputePeriod: number;
3016
+ disputeLive: boolean;
3017
+ treeRoot: string;
3018
+ lastTreeRoot: string;
3019
+ };
3020
+ };
3021
+ rewardTokens: {
3022
+ [chainId: number]: {
3023
+ token: string;
3024
+ minimumAmountPerEpoch: number;
3025
+ decimals: number;
3026
+ symbol: string;
3027
+ }[];
3028
+ };
3029
+ };
3030
+ };
3031
+ };
3032
+ };
3033
+ };
3034
+ } & {
3035
+ v3: {
3036
+ parse: {
3037
+ get: {
3038
+ body: unknown;
3039
+ params: {};
3040
+ query: {
3041
+ index?: number | undefined;
3042
+ chainId: number;
3043
+ campaign: any;
3044
+ };
3045
+ headers: unknown;
3046
+ response: {
3047
+ 200: string | {
3048
+ message: string;
3049
+ name: string;
3050
+ };
3051
+ };
3052
+ };
3053
+ };
3054
+ };
3055
+ } & {
3056
+ v3: {
3057
+ payload: {
3058
+ get: {
3059
+ body: unknown;
3060
+ params: {};
3061
+ query: {
3062
+ signature?: any;
3063
+ config: string;
3064
+ chainId: number;
3065
+ };
3066
+ headers: unknown;
3067
+ response: {
3068
+ 200: {
3069
+ message: any;
3070
+ name: string;
3071
+ args?: undefined;
3072
+ parsedCampaign?: undefined;
3073
+ payload?: undefined;
3074
+ fee?: undefined;
3075
+ } | {
3076
+ args: any;
3077
+ parsedCampaign: any;
3078
+ payload: any;
3079
+ fee: string | undefined;
3080
+ message?: undefined;
3081
+ name?: undefined;
3082
+ };
3083
+ };
3084
+ };
3085
+ };
3086
+ };
3087
+ } & {
3088
+ v3: {
3089
+ poolInfo: {
3090
+ get: {
3091
+ body: unknown;
3092
+ params: {};
3093
+ query: {
3094
+ chainId: number;
3095
+ poolAddress: string;
3096
+ };
3097
+ headers: unknown;
3098
+ response: {
3099
+ [x: string]: any;
3100
+ 200: any;
3101
+ };
3102
+ };
3103
+ };
3104
+ };
3105
+ } & {
3106
+ v3: {
3107
+ positions: {
3108
+ get: {
3109
+ body: unknown;
3110
+ params: {};
3111
+ query: {
3112
+ chainId: never;
3113
+ user: string;
3114
+ };
3115
+ headers: unknown;
3116
+ response: {
3117
+ [x: string]: any;
3118
+ 200: any;
3119
+ };
3120
+ };
3121
+ };
3122
+ };
3123
+ } & {
3124
+ v3: {
3125
+ radiant: {
3126
+ get: {
3127
+ body: unknown;
3128
+ params: {};
3129
+ query: {
3130
+ chainId: number;
3131
+ poolAddressProvider: string;
3132
+ };
3133
+ headers: unknown;
3134
+ response: {
3135
+ [x: string]: any;
3136
+ 200: any;
3137
+ };
3138
+ };
3139
+ };
3140
+ };
3141
+ } & {
3142
+ v3: {
3143
+ recipients: {
3144
+ get: {
3145
+ body: unknown;
3146
+ params: {};
3147
+ query: {
3148
+ chainId: number;
3149
+ campaignId: string;
3150
+ };
3151
+ headers: unknown;
3152
+ response: {
3153
+ 200: {
3154
+ recipient: string;
3155
+ reason: string;
3156
+ rewardToken: string;
3157
+ amount: string;
3158
+ }[];
3159
+ };
3160
+ };
3161
+ };
3162
+ };
3163
+ } & {
3164
+ v3: {
3165
+ rewards: {
3166
+ get: {
3167
+ body: unknown;
3168
+ params: {};
3169
+ query: {
3170
+ creatorTag?: string | undefined;
3171
+ chainIds?: string | string[] | undefined;
3172
+ user: string;
3173
+ };
3174
+ headers: unknown;
3175
+ response: {
3176
+ 200: {
3177
+ [x: string]: {
3178
+ campaignData: {
3179
+ [x: string]: {
3180
+ [x: string]: {
3181
+ pending?: string | undefined;
3182
+ symbol: string;
3183
+ token: string;
3184
+ mainParameter: string;
3185
+ decimals: number;
3186
+ auxiliaryData1: string;
3187
+ auxiliaryData2: string;
3188
+ unclaimed: string;
3189
+ accumulated: string;
3190
+ };
3191
+ };
3192
+ };
3193
+ tokenData: {
3194
+ [x: string]: {
3195
+ pending?: string | undefined;
3196
+ symbol: string;
3197
+ decimals: number;
3198
+ proof: string[];
3199
+ unclaimed: string;
3200
+ accumulated: string;
3201
+ };
3202
+ };
3203
+ };
3204
+ };
3205
+ };
3206
+ };
3207
+ };
3208
+ };
3209
+ } & {
3210
+ v3: {
3211
+ rewardsReport: {
3212
+ get: {
3213
+ body: unknown;
3214
+ params: {};
3215
+ query: {
3216
+ from?: number | undefined;
3217
+ to?: number | undefined;
3218
+ mainParameter?: string | undefined;
3219
+ chainId: number;
3220
+ campaignId: string;
3221
+ };
3222
+ headers: unknown;
3223
+ response: {
3224
+ 200: {
3225
+ recipient: string;
3226
+ reason: string;
3227
+ rewardToken: string;
3228
+ amount: string;
3229
+ }[];
3230
+ };
3231
+ };
3232
+ };
3233
+ };
3234
+ } & {
3235
+ v3: {
3236
+ silo: {
3237
+ get: {
3238
+ body: unknown;
3239
+ params: {};
3240
+ query: {
3241
+ chainId: number;
3242
+ repository: string;
3243
+ };
3244
+ headers: unknown;
3245
+ response: {
3246
+ [x: string]: any;
3247
+ 200: any;
3248
+ };
3249
+ };
3250
+ };
3251
+ };
3252
+ } & {
3253
+ v3: {
3254
+ token: {
3255
+ get: {
3256
+ body: unknown;
3257
+ params: {};
3258
+ query: {
3259
+ chainId: number;
3260
+ address: string;
3261
+ };
3262
+ headers: unknown;
3263
+ response: {
3264
+ 200: {
3265
+ name: string;
3266
+ symbol: string;
3267
+ decimals: number;
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ };
3273
+ } & {
3274
+ v3: {
3275
+ tokenUnclaimed: {
3276
+ get: {
3277
+ body: unknown;
3278
+ params: {};
3279
+ query: {
3280
+ token: string;
3281
+ chainId: number;
3282
+ };
3283
+ headers: unknown;
3284
+ response: {
3285
+ 200: {
3286
+ message: string;
3287
+ };
3288
+ };
3289
+ };
3290
+ };
3291
+ };
3292
+ } & {
3293
+ v3: {
3294
+ updates: {
3295
+ get: {
3296
+ body: unknown;
3297
+ params: {};
3298
+ query: {};
3299
+ headers: unknown;
3300
+ response: {
3301
+ 200: {
3302
+ [x: number]: {
3303
+ [campaignId: string]: number;
3304
+ };
3305
+ };
3306
+ readonly 400: {
3307
+ message?: string | undefined;
3308
+ error: string;
3309
+ };
3310
+ };
3311
+ };
3312
+ };
3313
+ };
3314
+ } & {
3315
+ v3: {
3316
+ userRewards: {
3317
+ get: {
3318
+ body: unknown;
3319
+ params: {};
3320
+ query: {
3321
+ mainParameter?: string | undefined;
3322
+ rewardToken?: string | undefined;
3323
+ proof?: string | undefined;
3324
+ chainId: never;
3325
+ user: string;
3326
+ };
3327
+ headers: unknown;
3328
+ response: {
3329
+ 200: {
3330
+ [x: string]: {
3331
+ pending?: string | undefined;
3332
+ proof?: string[] | undefined;
3333
+ symbol: string;
3334
+ decimals: number;
3335
+ unclaimed: string;
3336
+ accumulated: string;
3337
+ reasons: {
3338
+ [x: string]: {
3339
+ pending?: string | undefined;
3340
+ unclaimed: string;
3341
+ accumulated: string;
3342
+ };
3343
+ };
3344
+ };
3345
+ };
3346
+ };
3347
+ };
3348
+ };
3349
+ };
3350
+ }, {
3351
+ derive: {};
3352
+ resolve: {};
3353
+ schema: {};
3354
+ }, {
3355
+ derive: {};
3356
+ resolve: {};
3357
+ schema: {};
3358
+ }>;
2
3359
  export type App = typeof app;
3
3360
  export { app };