@merkl/api 0.10.205 → 0.10.207

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3359 @@
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")[];
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")[];
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")[] | 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
+ icon: string;
940
+ };
941
+ params: {};
942
+ query: unknown;
943
+ headers: {
944
+ authorization: string;
945
+ };
946
+ response: {
947
+ 200: {
948
+ name: string;
949
+ url: string;
950
+ description: string;
951
+ id: string;
952
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
953
+ icon: string;
954
+ };
955
+ };
956
+ };
957
+ };
958
+ };
959
+ };
960
+ } & {
961
+ v4: {
962
+ tokens: {
963
+ ":id": {
964
+ get: {
965
+ body: unknown;
966
+ params: {
967
+ id: string;
968
+ };
969
+ query: unknown;
970
+ headers: unknown;
971
+ response: {
972
+ 200: {
973
+ symbol: string;
974
+ name: string | null;
975
+ id: string;
976
+ icon: string;
977
+ chainId: number;
978
+ address: string;
979
+ decimals: number;
980
+ verified: boolean;
981
+ isTest: boolean;
982
+ price?: number | null | undefined;
983
+ } | undefined;
984
+ };
985
+ };
986
+ };
987
+ };
988
+ } & {
989
+ tokens: {
990
+ balances: {
991
+ get: {
992
+ body: unknown;
993
+ params: {};
994
+ query: {
995
+ tokenAddress?: string | undefined;
996
+ additionalTokenAddresses?: string[] | undefined;
997
+ chainId: number;
998
+ userAddress: string;
999
+ };
1000
+ headers: unknown;
1001
+ response: {
1002
+ 200: ({
1003
+ symbol: string;
1004
+ name: string | null;
1005
+ id: string;
1006
+ icon: string;
1007
+ chainId: number;
1008
+ address: string;
1009
+ decimals: number;
1010
+ verified: boolean;
1011
+ isTest: boolean;
1012
+ } & {
1013
+ price?: number | null | undefined;
1014
+ } & {
1015
+ balance: bigint;
1016
+ })[];
1017
+ };
1018
+ };
1019
+ };
1020
+ };
1021
+ } & {
1022
+ tokens: {
1023
+ index: {
1024
+ get: {
1025
+ body: unknown;
1026
+ params: {};
1027
+ query: {
1028
+ symbol?: string | undefined;
1029
+ name?: string | undefined;
1030
+ chainId?: any;
1031
+ address?: string | undefined;
1032
+ verified?: boolean | undefined;
1033
+ test?: boolean | undefined;
1034
+ };
1035
+ headers: unknown;
1036
+ response: {
1037
+ 200: ({
1038
+ symbol: string;
1039
+ name: string | null;
1040
+ id: string;
1041
+ icon: string;
1042
+ chainId: number;
1043
+ address: string;
1044
+ decimals: number;
1045
+ verified: boolean;
1046
+ isTest: boolean;
1047
+ } & {
1048
+ price?: number | null | undefined;
1049
+ })[];
1050
+ };
1051
+ };
1052
+ };
1053
+ };
1054
+ } & {
1055
+ tokens: {
1056
+ count: {
1057
+ get: {
1058
+ body: unknown;
1059
+ params: {};
1060
+ query: {
1061
+ symbol?: string | undefined;
1062
+ name?: string | undefined;
1063
+ chainId?: any;
1064
+ address?: string | undefined;
1065
+ verified?: boolean | undefined;
1066
+ test?: boolean | undefined;
1067
+ };
1068
+ headers: unknown;
1069
+ response: {
1070
+ 200: number;
1071
+ };
1072
+ };
1073
+ };
1074
+ };
1075
+ } & {
1076
+ tokens: {
1077
+ ":id": {
1078
+ patch: {
1079
+ body: {
1080
+ icon?: string | undefined;
1081
+ displaySymbol?: string | undefined;
1082
+ isTest?: boolean | undefined;
1083
+ };
1084
+ params: {
1085
+ id: string;
1086
+ };
1087
+ query: unknown;
1088
+ headers: {
1089
+ authorization: string;
1090
+ };
1091
+ response: {
1092
+ 200: {
1093
+ symbol: string;
1094
+ name: string | null;
1095
+ id: string;
1096
+ icon: string;
1097
+ chainId: number;
1098
+ address: string;
1099
+ decimals: number;
1100
+ displaySymbol: string;
1101
+ verified: boolean;
1102
+ isTest: boolean;
1103
+ price: number | null;
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ };
1110
+ } & {
1111
+ v4: {
1112
+ rewards: {
1113
+ index: {
1114
+ get: {
1115
+ body: unknown;
1116
+ params: {};
1117
+ query: {
1118
+ items?: number | undefined;
1119
+ page?: number | undefined;
1120
+ chainId: number;
1121
+ campaignId: string;
1122
+ };
1123
+ headers: unknown;
1124
+ response: {
1125
+ 200: import("./modules/v4/reward").BreakdownForCampaignsRaw[];
1126
+ };
1127
+ };
1128
+ };
1129
+ } & {
1130
+ total: {
1131
+ get: {
1132
+ body: unknown;
1133
+ params: {};
1134
+ query: {
1135
+ items?: number | undefined;
1136
+ page?: number | undefined;
1137
+ chainId: number;
1138
+ campaignId: string;
1139
+ };
1140
+ headers: unknown;
1141
+ response: {
1142
+ 200: {
1143
+ campaignId: string;
1144
+ amount: bigint;
1145
+ };
1146
+ };
1147
+ };
1148
+ };
1149
+ } & {
1150
+ engine: {
1151
+ post: {
1152
+ body: {
1153
+ recipient: string;
1154
+ distributionChainId: number;
1155
+ root: string;
1156
+ proofs: string[];
1157
+ rewardToken: string;
1158
+ }[];
1159
+ params: {};
1160
+ query: unknown;
1161
+ headers: {
1162
+ authorization: string;
1163
+ };
1164
+ response: {
1165
+ 200: {
1166
+ count: number;
1167
+ };
1168
+ };
1169
+ };
1170
+ };
1171
+ } & {
1172
+ engine: {
1173
+ breakdowns: {
1174
+ post: {
1175
+ body: {
1176
+ distributionChainId: number;
1177
+ campaignId: string;
1178
+ root: string;
1179
+ rewardToken: string;
1180
+ breakdowns: {
1181
+ protocolId?: string | undefined;
1182
+ auxiliaryData1?: string | undefined;
1183
+ auxiliaryData2?: string | undefined;
1184
+ reason: string;
1185
+ pending: string;
1186
+ recipient: string;
1187
+ amount: string;
1188
+ claimed: string;
1189
+ }[];
1190
+ }[];
1191
+ params: {};
1192
+ query: unknown;
1193
+ headers: {
1194
+ authorization: string;
1195
+ };
1196
+ response: {
1197
+ 200: {
1198
+ count: number;
1199
+ } | undefined;
1200
+ };
1201
+ };
1202
+ };
1203
+ };
1204
+ } & {
1205
+ engine: {
1206
+ claims: {
1207
+ post: {
1208
+ body: {
1209
+ token: string;
1210
+ chainId: number;
1211
+ recipient: string;
1212
+ root: string;
1213
+ }[];
1214
+ params: {};
1215
+ query: unknown;
1216
+ headers: {
1217
+ authorization: string;
1218
+ };
1219
+ response: {
1220
+ 200: void;
1221
+ };
1222
+ };
1223
+ };
1224
+ };
1225
+ } & {
1226
+ engine: {
1227
+ pendings: {
1228
+ post: {
1229
+ body: {
1230
+ distributionChainId: number;
1231
+ campaignId: string;
1232
+ root: string;
1233
+ rewardToken: string;
1234
+ toUpdate: {
1235
+ auxiliaryData1?: string | undefined;
1236
+ auxiliaryData2?: string | undefined;
1237
+ reason: string;
1238
+ pending: string;
1239
+ recipient: string;
1240
+ }[];
1241
+ toCreate: {
1242
+ auxiliaryData1?: string | undefined;
1243
+ auxiliaryData2?: string | undefined;
1244
+ reason: string;
1245
+ pending: string;
1246
+ recipient: string;
1247
+ }[];
1248
+ };
1249
+ params: {};
1250
+ query: unknown;
1251
+ headers: {
1252
+ authorization: string;
1253
+ };
1254
+ response: {
1255
+ 200: boolean;
1256
+ };
1257
+ };
1258
+ };
1259
+ };
1260
+ } & {
1261
+ count: {
1262
+ get: {
1263
+ body: unknown;
1264
+ params: {};
1265
+ query: {
1266
+ items?: number | undefined;
1267
+ page?: number | undefined;
1268
+ chainId: number;
1269
+ campaignId: string;
1270
+ };
1271
+ headers: unknown;
1272
+ response: {
1273
+ 200: {
1274
+ count: number;
1275
+ };
1276
+ };
1277
+ };
1278
+ };
1279
+ } & {
1280
+ count: {
1281
+ chains: {
1282
+ get: {
1283
+ body: unknown;
1284
+ params: {};
1285
+ query: unknown;
1286
+ headers: {
1287
+ authorization: string;
1288
+ };
1289
+ response: {
1290
+ 200: {
1291
+ [x: string]: {
1292
+ breakdown: number;
1293
+ rewards: Record<string, number>;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ };
1300
+ } & {
1301
+ unclaim: {
1302
+ index: {
1303
+ get: {
1304
+ body: unknown;
1305
+ params: {};
1306
+ query: {
1307
+ chainId: number;
1308
+ campaignIds: string[];
1309
+ };
1310
+ headers: unknown;
1311
+ response: {
1312
+ 200: {
1313
+ [x: string]: string;
1314
+ };
1315
+ };
1316
+ };
1317
+ };
1318
+ };
1319
+ };
1320
+ };
1321
+ } & {
1322
+ v4: {
1323
+ chains: {
1324
+ ":chainId": {
1325
+ get: {
1326
+ body: unknown;
1327
+ params: {
1328
+ chainId: number;
1329
+ };
1330
+ query: unknown;
1331
+ headers: unknown;
1332
+ response: {
1333
+ 200: {
1334
+ name: string;
1335
+ id: number;
1336
+ icon: string;
1337
+ explorers: {
1338
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1339
+ url: string;
1340
+ id: string;
1341
+ chainId: number;
1342
+ }[];
1343
+ } | null;
1344
+ };
1345
+ };
1346
+ };
1347
+ } & {
1348
+ index: {
1349
+ get: {
1350
+ body: unknown;
1351
+ params: {};
1352
+ query: {
1353
+ name?: string | undefined;
1354
+ };
1355
+ headers: unknown;
1356
+ response: {
1357
+ 200: {
1358
+ name: string;
1359
+ id: number;
1360
+ icon: string;
1361
+ explorers: {
1362
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1363
+ url: string;
1364
+ id: string;
1365
+ chainId: number;
1366
+ }[];
1367
+ }[];
1368
+ };
1369
+ };
1370
+ };
1371
+ } & {
1372
+ count: {
1373
+ get: {
1374
+ body: unknown;
1375
+ params: {};
1376
+ query: {
1377
+ name?: string | undefined;
1378
+ };
1379
+ headers: unknown;
1380
+ response: {
1381
+ 200: number;
1382
+ };
1383
+ };
1384
+ };
1385
+ } & {
1386
+ explorers: {
1387
+ post: {
1388
+ body: {
1389
+ type: "ETHERSCAN" | "BLOCKSCOUT";
1390
+ url: string;
1391
+ chainId: number;
1392
+ };
1393
+ params: {};
1394
+ query: unknown;
1395
+ headers: {
1396
+ authorization: string;
1397
+ };
1398
+ response: {
1399
+ 200: {
1400
+ type: import("../database/api/.generated").$Enums.ExplorerType;
1401
+ url: string;
1402
+ id: string;
1403
+ chainId: number;
1404
+ };
1405
+ };
1406
+ };
1407
+ };
1408
+ };
1409
+ } & {
1410
+ chains: {
1411
+ ":chainId": {
1412
+ patch: {
1413
+ body: {
1414
+ icon?: string | undefined;
1415
+ };
1416
+ params: {
1417
+ chainId: number;
1418
+ };
1419
+ query: unknown;
1420
+ headers: {
1421
+ authorization: string;
1422
+ };
1423
+ response: {
1424
+ 200: {
1425
+ name: string;
1426
+ id: number;
1427
+ icon: string;
1428
+ };
1429
+ };
1430
+ };
1431
+ };
1432
+ };
1433
+ };
1434
+ } & {
1435
+ v4: {
1436
+ prices: {
1437
+ index: {
1438
+ get: {
1439
+ body: unknown;
1440
+ params: {};
1441
+ query: unknown;
1442
+ headers: unknown;
1443
+ response: {
1444
+ 200: {
1445
+ [x: string]: number;
1446
+ };
1447
+ };
1448
+ };
1449
+ };
1450
+ } & {
1451
+ array: {
1452
+ get: {
1453
+ body: unknown;
1454
+ params: {};
1455
+ query: unknown;
1456
+ headers: unknown;
1457
+ response: {
1458
+ 200: {
1459
+ rate: number;
1460
+ token: string;
1461
+ }[];
1462
+ };
1463
+ };
1464
+ };
1465
+ } & {
1466
+ symbol: {
1467
+ ":symbol": {
1468
+ get: {
1469
+ body: unknown;
1470
+ params: {
1471
+ symbol: string;
1472
+ };
1473
+ query: unknown;
1474
+ headers: unknown;
1475
+ response: {
1476
+ 200: number;
1477
+ };
1478
+ };
1479
+ };
1480
+ };
1481
+ } & {
1482
+ sources: {
1483
+ index: {
1484
+ get: {
1485
+ body: unknown;
1486
+ params: {};
1487
+ query: unknown;
1488
+ headers: unknown;
1489
+ response: {
1490
+ 200: {
1491
+ symbol: string;
1492
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1493
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1494
+ id: number;
1495
+ }[];
1496
+ };
1497
+ };
1498
+ };
1499
+ };
1500
+ } & {
1501
+ sources: {
1502
+ symbol: {
1503
+ ":symbol": {
1504
+ get: {
1505
+ body: unknown;
1506
+ params: {
1507
+ symbol: string;
1508
+ };
1509
+ query: unknown;
1510
+ headers: unknown;
1511
+ response: {
1512
+ 200: {
1513
+ symbol: string;
1514
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1515
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1516
+ id: number;
1517
+ };
1518
+ };
1519
+ };
1520
+ };
1521
+ };
1522
+ };
1523
+ } & {
1524
+ sources: {
1525
+ index: {
1526
+ post: {
1527
+ body: {
1528
+ symbol: string;
1529
+ method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
1530
+ args: {};
1531
+ };
1532
+ params: {};
1533
+ query: unknown;
1534
+ headers: {
1535
+ authorization: string;
1536
+ };
1537
+ response: {
1538
+ 200: number | undefined;
1539
+ };
1540
+ };
1541
+ };
1542
+ };
1543
+ } & {
1544
+ sources: {
1545
+ symbol: {
1546
+ ":symbol": {
1547
+ patch: {
1548
+ body: {
1549
+ symbol?: string | undefined;
1550
+ method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
1551
+ args?: {} | undefined;
1552
+ };
1553
+ params: {
1554
+ symbol: string;
1555
+ };
1556
+ query: unknown;
1557
+ headers: {
1558
+ authorization: string;
1559
+ };
1560
+ response: {
1561
+ 200: {
1562
+ symbol: string;
1563
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1564
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1565
+ id: number;
1566
+ };
1567
+ };
1568
+ };
1569
+ };
1570
+ };
1571
+ };
1572
+ } & {
1573
+ sources: {
1574
+ symbol: {
1575
+ ":symbol": {
1576
+ delete: {
1577
+ body: unknown;
1578
+ params: {
1579
+ symbol: string;
1580
+ };
1581
+ query: unknown;
1582
+ headers: {
1583
+ authorization: string;
1584
+ };
1585
+ response: {
1586
+ 200: {
1587
+ symbol: string;
1588
+ method: import("../database/api/.generated").$Enums.PriceSourceMethod;
1589
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
1590
+ id: number;
1591
+ };
1592
+ };
1593
+ };
1594
+ };
1595
+ };
1596
+ };
1597
+ };
1598
+ };
1599
+ } & {
1600
+ v4: {
1601
+ blacklists: {
1602
+ index: {
1603
+ get: {
1604
+ body: unknown;
1605
+ params: {};
1606
+ query: unknown;
1607
+ headers: unknown;
1608
+ response: {
1609
+ 200: {
1610
+ id: string;
1611
+ chainId: number;
1612
+ poolAddress: string;
1613
+ userAddress: string;
1614
+ arrestTimestamp: bigint;
1615
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1616
+ }[];
1617
+ };
1618
+ };
1619
+ };
1620
+ };
1621
+ } & {
1622
+ blacklists: {
1623
+ mapping: {
1624
+ get: {
1625
+ body: unknown;
1626
+ params: {};
1627
+ query: unknown;
1628
+ headers: unknown;
1629
+ response: {
1630
+ 200: unknown;
1631
+ };
1632
+ };
1633
+ };
1634
+ };
1635
+ } & {
1636
+ blacklists: {
1637
+ check: {
1638
+ ":address": {
1639
+ get: {
1640
+ body: unknown;
1641
+ params: {
1642
+ address: string;
1643
+ };
1644
+ query: unknown;
1645
+ headers: unknown;
1646
+ response: {
1647
+ 200: boolean;
1648
+ };
1649
+ };
1650
+ };
1651
+ };
1652
+ };
1653
+ } & {
1654
+ blacklists: {
1655
+ index: {
1656
+ post: {
1657
+ body: {
1658
+ reason?: string | undefined;
1659
+ chainId: number;
1660
+ poolAddress: string;
1661
+ userAddress: string;
1662
+ };
1663
+ params: {};
1664
+ query: unknown;
1665
+ headers: {
1666
+ authorization: string;
1667
+ };
1668
+ response: {
1669
+ 200: {
1670
+ id: string;
1671
+ chainId: number;
1672
+ poolAddress: string;
1673
+ userAddress: string;
1674
+ arrestTimestamp: bigint;
1675
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1676
+ };
1677
+ };
1678
+ };
1679
+ };
1680
+ };
1681
+ } & {
1682
+ blacklists: {
1683
+ user: {
1684
+ ":address": {
1685
+ delete: {
1686
+ body: unknown;
1687
+ params: {
1688
+ address: string;
1689
+ };
1690
+ query: unknown;
1691
+ headers: {
1692
+ authorization: string;
1693
+ };
1694
+ response: {
1695
+ 200: boolean;
1696
+ };
1697
+ };
1698
+ };
1699
+ };
1700
+ };
1701
+ };
1702
+ } & {
1703
+ v4: {
1704
+ users: {
1705
+ index: {
1706
+ get: {
1707
+ body: unknown;
1708
+ params: {};
1709
+ query: {
1710
+ items?: number | undefined;
1711
+ tags?: string[] | undefined;
1712
+ page?: number | undefined;
1713
+ address?: string | undefined;
1714
+ };
1715
+ headers: unknown;
1716
+ response: {
1717
+ 200: {
1718
+ tags: string[];
1719
+ address: string;
1720
+ }[];
1721
+ };
1722
+ };
1723
+ };
1724
+ };
1725
+ } & {
1726
+ users: {
1727
+ tags: {
1728
+ get: {
1729
+ body: unknown;
1730
+ params: {};
1731
+ query: unknown;
1732
+ headers: {
1733
+ authorization: string;
1734
+ };
1735
+ response: {
1736
+ 200: {
1737
+ tags: string[];
1738
+ address: string;
1739
+ }[];
1740
+ };
1741
+ };
1742
+ };
1743
+ };
1744
+ } & {
1745
+ users: {
1746
+ ":address": {
1747
+ get: {
1748
+ body: unknown;
1749
+ params: {
1750
+ address: string;
1751
+ };
1752
+ query: unknown;
1753
+ headers: unknown;
1754
+ response: {
1755
+ 200: {
1756
+ tags: string[];
1757
+ address: string;
1758
+ } | null;
1759
+ };
1760
+ };
1761
+ };
1762
+ };
1763
+ } & {
1764
+ users: {
1765
+ ":address": {
1766
+ rewards: {
1767
+ breakdowns: {
1768
+ get: {
1769
+ body: unknown;
1770
+ params: {
1771
+ address: string;
1772
+ };
1773
+ query: {
1774
+ chainId?: number | undefined;
1775
+ };
1776
+ headers: unknown;
1777
+ response: {
1778
+ 200: (Omit<{
1779
+ chain: import("../database/api/.generated").Chain;
1780
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1781
+ }, "rewards"> & {
1782
+ rewards: (Omit<{
1783
+ token: {
1784
+ symbol: string;
1785
+ name: string | null;
1786
+ id: string;
1787
+ icon: string;
1788
+ chainId: number;
1789
+ address: string;
1790
+ decimals: number;
1791
+ displaySymbol: string;
1792
+ verified: boolean;
1793
+ isTest: boolean;
1794
+ price: number | null;
1795
+ };
1796
+ breakdowns: {
1797
+ campaignId: string;
1798
+ opportunity: {
1799
+ Chain: {
1800
+ name: string;
1801
+ id: number;
1802
+ icon: string;
1803
+ };
1804
+ Tokens: {
1805
+ symbol: string;
1806
+ name: string | null;
1807
+ id: string;
1808
+ icon: string;
1809
+ chainId: number;
1810
+ address: string;
1811
+ decimals: number;
1812
+ displaySymbol: string;
1813
+ verified: boolean;
1814
+ isTest: boolean;
1815
+ price: number | null;
1816
+ }[];
1817
+ Protocols: {
1818
+ name: string;
1819
+ url: string;
1820
+ description: string;
1821
+ id: string;
1822
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1823
+ icon: string;
1824
+ }[];
1825
+ MainProtocol: {
1826
+ name: string;
1827
+ url: string;
1828
+ description: string;
1829
+ id: string;
1830
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1831
+ icon: string;
1832
+ } | null;
1833
+ } & {
1834
+ name: string;
1835
+ type: import("../database/api/.generated").$Enums.CampaignType;
1836
+ id: string;
1837
+ status: import("../database/api/.generated").$Enums.Status;
1838
+ tags: string[];
1839
+ identifier: string;
1840
+ chainId: number;
1841
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
1842
+ mainProtocolId: string | null;
1843
+ tvl: number;
1844
+ apr: number;
1845
+ dailyRewards: number;
1846
+ };
1847
+ reason: string;
1848
+ pending: string;
1849
+ amount: string;
1850
+ claimed: string;
1851
+ auxiliaryData1: string | null;
1852
+ auxiliaryData2: string | null;
1853
+ }[];
1854
+ claimed: bigint;
1855
+ amount: bigint;
1856
+ pending: bigint;
1857
+ recipient: string;
1858
+ root: string;
1859
+ proofs: string[];
1860
+ }, "breakdowns"> & {
1861
+ breakdowns: {
1862
+ opportunity: import("./modules/v4").Opportunity["model"];
1863
+ claimed: bigint;
1864
+ amount: bigint;
1865
+ pending: bigint;
1866
+ auxiliaryData1: string | null;
1867
+ auxiliaryData2: string | null;
1868
+ }[];
1869
+ })[];
1870
+ distributor: string;
1871
+ })[];
1872
+ };
1873
+ };
1874
+ };
1875
+ };
1876
+ };
1877
+ };
1878
+ } & {
1879
+ users: {
1880
+ ":address": {
1881
+ rewards: {
1882
+ get: {
1883
+ body: unknown;
1884
+ params: {
1885
+ address: string;
1886
+ };
1887
+ query: {
1888
+ chainId: number[];
1889
+ };
1890
+ headers: unknown;
1891
+ response: {
1892
+ 200: (Omit<{
1893
+ chain: import("../database/api/.generated").Chain;
1894
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1895
+ }, "rewards"> & {
1896
+ rewards: (Omit<{
1897
+ token: {
1898
+ symbol: string;
1899
+ name: string | null;
1900
+ id: string;
1901
+ icon: string;
1902
+ chainId: number;
1903
+ address: string;
1904
+ decimals: number;
1905
+ displaySymbol: string;
1906
+ verified: boolean;
1907
+ isTest: boolean;
1908
+ price: number | null;
1909
+ };
1910
+ breakdowns: {
1911
+ campaignId: string;
1912
+ opportunity: {
1913
+ Chain: {
1914
+ name: string;
1915
+ id: number;
1916
+ icon: string;
1917
+ };
1918
+ Tokens: {
1919
+ symbol: string;
1920
+ name: string | null;
1921
+ id: string;
1922
+ icon: string;
1923
+ chainId: number;
1924
+ address: string;
1925
+ decimals: number;
1926
+ displaySymbol: string;
1927
+ verified: boolean;
1928
+ isTest: boolean;
1929
+ price: number | null;
1930
+ }[];
1931
+ Protocols: {
1932
+ name: string;
1933
+ url: string;
1934
+ description: string;
1935
+ id: string;
1936
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1937
+ icon: string;
1938
+ }[];
1939
+ MainProtocol: {
1940
+ name: string;
1941
+ url: string;
1942
+ description: string;
1943
+ id: string;
1944
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
1945
+ icon: string;
1946
+ } | null;
1947
+ } & {
1948
+ name: string;
1949
+ type: import("../database/api/.generated").$Enums.CampaignType;
1950
+ id: string;
1951
+ status: import("../database/api/.generated").$Enums.Status;
1952
+ tags: string[];
1953
+ identifier: string;
1954
+ chainId: number;
1955
+ action: import("../database/api/.generated").$Enums.OpportunityAction;
1956
+ mainProtocolId: string | null;
1957
+ tvl: number;
1958
+ apr: number;
1959
+ dailyRewards: number;
1960
+ };
1961
+ reason: string;
1962
+ pending: string;
1963
+ amount: string;
1964
+ claimed: string;
1965
+ auxiliaryData1: string | null;
1966
+ auxiliaryData2: string | null;
1967
+ }[];
1968
+ claimed: bigint;
1969
+ amount: bigint;
1970
+ pending: bigint;
1971
+ recipient: string;
1972
+ root: string;
1973
+ proofs: string[];
1974
+ }, "breakdowns"> & {
1975
+ breakdowns: {
1976
+ campaignId: string;
1977
+ reason: string;
1978
+ pending: string;
1979
+ amount: string;
1980
+ claimed: string;
1981
+ auxiliaryData1: string | null;
1982
+ auxiliaryData2: string | null;
1983
+ }[];
1984
+ })[];
1985
+ })[];
1986
+ };
1987
+ };
1988
+ };
1989
+ };
1990
+ };
1991
+ } & {
1992
+ users: {
1993
+ index: {
1994
+ post: {
1995
+ body: {
1996
+ tags: string[];
1997
+ address: string;
1998
+ };
1999
+ params: {};
2000
+ query: unknown;
2001
+ headers: {
2002
+ authorization: string;
2003
+ };
2004
+ response: {
2005
+ 200: {
2006
+ tags: string[];
2007
+ address: string;
2008
+ };
2009
+ };
2010
+ };
2011
+ };
2012
+ };
2013
+ } & {
2014
+ users: {
2015
+ sync: {
2016
+ post: {
2017
+ body: unknown;
2018
+ params: {};
2019
+ query: unknown;
2020
+ headers: {
2021
+ authorization: string;
2022
+ };
2023
+ response: {
2024
+ 200: void;
2025
+ };
2026
+ };
2027
+ };
2028
+ };
2029
+ } & {
2030
+ users: {
2031
+ ":address": {
2032
+ tags: {
2033
+ patch: {
2034
+ body: {
2035
+ tags: string[];
2036
+ };
2037
+ params: {
2038
+ address: string;
2039
+ };
2040
+ query: unknown;
2041
+ headers: {
2042
+ authorization: string;
2043
+ };
2044
+ response: {
2045
+ 200: {
2046
+ tags: string[];
2047
+ address: string;
2048
+ };
2049
+ };
2050
+ };
2051
+ };
2052
+ };
2053
+ };
2054
+ };
2055
+ } & {
2056
+ v4: {
2057
+ roots: {
2058
+ index: {
2059
+ get: {
2060
+ body: unknown;
2061
+ params: {};
2062
+ query: {
2063
+ chainId: number;
2064
+ fromTimestamp: string;
2065
+ toTimestamp: string;
2066
+ };
2067
+ headers: unknown;
2068
+ response: {
2069
+ 200: {
2070
+ timestamp: bigint;
2071
+ chainId: number;
2072
+ root: string;
2073
+ epoch: number;
2074
+ }[];
2075
+ };
2076
+ };
2077
+ };
2078
+ };
2079
+ } & {
2080
+ roots: {
2081
+ live: {
2082
+ get: {
2083
+ body: unknown;
2084
+ params: {};
2085
+ query: unknown;
2086
+ headers: unknown;
2087
+ response: {
2088
+ 200: {
2089
+ live: string;
2090
+ tree: string;
2091
+ lastTree: string;
2092
+ }[];
2093
+ };
2094
+ };
2095
+ };
2096
+ };
2097
+ } & {
2098
+ roots: {
2099
+ engine: {
2100
+ post: {
2101
+ body: {
2102
+ timestamp: number;
2103
+ chainId: number;
2104
+ root: string;
2105
+ epoch: number;
2106
+ };
2107
+ params: {};
2108
+ query: unknown;
2109
+ headers: {
2110
+ authorization: string;
2111
+ };
2112
+ response: {
2113
+ 200: {
2114
+ timestamp: bigint;
2115
+ chainId: number;
2116
+ root: string;
2117
+ epoch: number;
2118
+ };
2119
+ };
2120
+ };
2121
+ };
2122
+ };
2123
+ };
2124
+ } & {
2125
+ v4: {
2126
+ interaction: {
2127
+ targets: {
2128
+ get: {
2129
+ body: unknown;
2130
+ params: {};
2131
+ query: {
2132
+ protocolId?: string | undefined;
2133
+ identifier: string;
2134
+ chainId: number;
2135
+ };
2136
+ headers: unknown;
2137
+ response: {
2138
+ 200: import("./modules/v4/interaction/interaction.model").InteractionTarget[];
2139
+ };
2140
+ };
2141
+ };
2142
+ };
2143
+ } & {
2144
+ interaction: {
2145
+ protocols: {
2146
+ get: {
2147
+ body: unknown;
2148
+ params: {};
2149
+ query: {
2150
+ chainId?: number | undefined;
2151
+ };
2152
+ headers: unknown;
2153
+ response: {
2154
+ 200: ({
2155
+ name: string;
2156
+ url: string;
2157
+ description: string;
2158
+ id: string;
2159
+ tags: import("../database/api/.generated").$Enums.ProtocolTag[];
2160
+ icon: string;
2161
+ } & {})[];
2162
+ };
2163
+ };
2164
+ };
2165
+ };
2166
+ } & {
2167
+ interaction: {
2168
+ transaction: {
2169
+ get: {
2170
+ body: unknown;
2171
+ params: {};
2172
+ query: {
2173
+ identifier: string;
2174
+ chainId: number;
2175
+ protocolId: string;
2176
+ userAddress: string;
2177
+ fromAmount: string;
2178
+ fromTokenAddress: string;
2179
+ };
2180
+ headers: unknown;
2181
+ response: {
2182
+ 200: {
2183
+ amountIn: bigint;
2184
+ allowance: bigint;
2185
+ approved: boolean;
2186
+ transaction: import("./modules/v4/interaction/interaction.model").UserTransaction;
2187
+ approval: import("./modules/v4/interaction/interaction.model").UserTransaction;
2188
+ } | undefined;
2189
+ };
2190
+ };
2191
+ };
2192
+ };
2193
+ } & {
2194
+ interaction: {
2195
+ sponsored: {
2196
+ get: {
2197
+ body: unknown;
2198
+ params: {};
2199
+ query: {
2200
+ identifier: string;
2201
+ chainId: number;
2202
+ protocolId: string;
2203
+ userAddress: string;
2204
+ fromAmount: string;
2205
+ fromTokenAddress: string;
2206
+ };
2207
+ headers: unknown;
2208
+ response: {
2209
+ 200: {
2210
+ expirationTime: string;
2211
+ expiresIn: string;
2212
+ feeTokenAmount: string;
2213
+ feeTokendecimals: string;
2214
+ feeUSD: string;
2215
+ gasLimit: string;
2216
+ gasPrice: string;
2217
+ markup: string;
2218
+ maxNonce: string;
2219
+ protocolAddress: string;
2220
+ sponsorshipRatio: string;
2221
+ tokenAddress: string;
2222
+ tokenPrice: string;
2223
+ txData: {
2224
+ from: string;
2225
+ to: string;
2226
+ data: string;
2227
+ };
2228
+ warnings: string[];
2229
+ } | undefined;
2230
+ };
2231
+ };
2232
+ };
2233
+ };
2234
+ };
2235
+ } & {
2236
+ v4: {
2237
+ accounting: {
2238
+ index: {
2239
+ get: {
2240
+ body: unknown;
2241
+ params: {};
2242
+ query: {
2243
+ items?: number | undefined;
2244
+ page?: number | undefined;
2245
+ };
2246
+ headers: {
2247
+ authorization: string;
2248
+ };
2249
+ response: {
2250
+ 200: {
2251
+ id: string;
2252
+ timestamp: number;
2253
+ chainId: number;
2254
+ fromTokenId: string;
2255
+ toTokenId: string;
2256
+ multisig: string;
2257
+ recipient: string;
2258
+ amountIn: string;
2259
+ amountOut: string;
2260
+ datetime: Date;
2261
+ }[];
2262
+ };
2263
+ };
2264
+ };
2265
+ } & {
2266
+ revenues: {
2267
+ get: {
2268
+ body: unknown;
2269
+ params: {};
2270
+ query: unknown;
2271
+ headers: {
2272
+ authorization: string;
2273
+ };
2274
+ response: {
2275
+ 200: {
2276
+ totalAmount: number;
2277
+ };
2278
+ };
2279
+ };
2280
+ };
2281
+ } & {
2282
+ revenues: {
2283
+ "per-month": {
2284
+ ":year": {
2285
+ ":month": {
2286
+ get: {
2287
+ body: unknown;
2288
+ params: {
2289
+ month: number;
2290
+ year: number;
2291
+ };
2292
+ query: unknown;
2293
+ headers: {
2294
+ authorization: string;
2295
+ };
2296
+ response: {
2297
+ 200: {
2298
+ totalAmount: number;
2299
+ from: string;
2300
+ to: string;
2301
+ };
2302
+ };
2303
+ };
2304
+ };
2305
+ };
2306
+ };
2307
+ };
2308
+ } & {
2309
+ revenues: {
2310
+ chains: {
2311
+ ":chainId": {
2312
+ get: {
2313
+ body: unknown;
2314
+ params: {
2315
+ chainId: number;
2316
+ };
2317
+ query: unknown;
2318
+ headers: {
2319
+ authorization: string;
2320
+ };
2321
+ response: {
2322
+ 200: {
2323
+ totalAmount: number;
2324
+ };
2325
+ };
2326
+ };
2327
+ };
2328
+ };
2329
+ };
2330
+ } & {
2331
+ revenues: {
2332
+ chains: {
2333
+ ":chainId": {
2334
+ "per-month": {
2335
+ ":year": {
2336
+ ":month": {
2337
+ get: {
2338
+ body: unknown;
2339
+ params: {
2340
+ chainId: number;
2341
+ month: number;
2342
+ year: number;
2343
+ };
2344
+ query: unknown;
2345
+ headers: {
2346
+ authorization: string;
2347
+ };
2348
+ response: {
2349
+ 200: {
2350
+ totalAmount: number;
2351
+ from: string;
2352
+ to: string;
2353
+ };
2354
+ };
2355
+ };
2356
+ };
2357
+ };
2358
+ };
2359
+ };
2360
+ };
2361
+ };
2362
+ } & {
2363
+ tokens: {
2364
+ ":chainId": {
2365
+ ":tokenAddress": {
2366
+ get: {
2367
+ body: unknown;
2368
+ params: {
2369
+ chainId: number;
2370
+ tokenAddress: string;
2371
+ };
2372
+ query: unknown;
2373
+ headers: {
2374
+ authorization: string;
2375
+ };
2376
+ response: {
2377
+ 200: {
2378
+ totalAmount: number;
2379
+ totalAmountUSD: number;
2380
+ };
2381
+ };
2382
+ };
2383
+ };
2384
+ };
2385
+ };
2386
+ } & {
2387
+ tokens: {
2388
+ ":chainId": {
2389
+ ":tokenAddress": {
2390
+ "per-month": {
2391
+ ":year": {
2392
+ ":month": {
2393
+ get: {
2394
+ body: unknown;
2395
+ params: {
2396
+ chainId: number;
2397
+ tokenAddress: string;
2398
+ month: number;
2399
+ year: number;
2400
+ };
2401
+ query: unknown;
2402
+ headers: {
2403
+ authorization: string;
2404
+ };
2405
+ response: {
2406
+ 200: {
2407
+ totalAmount: number;
2408
+ totalAmountUSD: number;
2409
+ from: string;
2410
+ to: string;
2411
+ };
2412
+ };
2413
+ };
2414
+ };
2415
+ };
2416
+ };
2417
+ };
2418
+ };
2419
+ };
2420
+ };
2421
+ };
2422
+ } & {
2423
+ v4: {
2424
+ "dynamic-data": {
2425
+ index: {
2426
+ get: {
2427
+ body: unknown;
2428
+ params: {};
2429
+ query: {
2430
+ chainId: number;
2431
+ tokenAddress: string;
2432
+ };
2433
+ headers: {
2434
+ authorization: string;
2435
+ };
2436
+ response: {
2437
+ 200: {
2438
+ tvl: number;
2439
+ totalSupply: number;
2440
+ cardName: string;
2441
+ blacklistedSupply: number;
2442
+ priceTargetToken: number;
2443
+ };
2444
+ };
2445
+ };
2446
+ };
2447
+ };
2448
+ };
2449
+ } & {
2450
+ v4: {
2451
+ "campaign-status": {
2452
+ engine: {
2453
+ ":campaignId": {
2454
+ put: {
2455
+ body: {
2456
+ value: "SUCCESS";
2457
+ computedUntil: number;
2458
+ } | {
2459
+ value: "PROCESSING";
2460
+ } | {
2461
+ error: string;
2462
+ details: string;
2463
+ value: "SKIPPED";
2464
+ } | {
2465
+ error: string;
2466
+ details: string;
2467
+ value: "FAILED";
2468
+ };
2469
+ params: {
2470
+ campaignId: string;
2471
+ };
2472
+ query: unknown;
2473
+ headers: {
2474
+ authorization: string;
2475
+ };
2476
+ response: {
2477
+ 200: void;
2478
+ };
2479
+ };
2480
+ };
2481
+ };
2482
+ };
2483
+ } & {
2484
+ "campaign-status": {
2485
+ engine: {
2486
+ overlaps: {
2487
+ get: {
2488
+ body: unknown;
2489
+ params: {};
2490
+ query: {
2491
+ campaignId: string;
2492
+ distributionChain: number;
2493
+ };
2494
+ headers: {
2495
+ authorization: string;
2496
+ };
2497
+ response: {
2498
+ 200: boolean;
2499
+ };
2500
+ };
2501
+ };
2502
+ };
2503
+ };
2504
+ } & {
2505
+ "campaign-status": {
2506
+ index: {
2507
+ get: {
2508
+ body: unknown;
2509
+ params: {};
2510
+ query: {
2511
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2512
+ computeChainId?: number | undefined;
2513
+ };
2514
+ headers: unknown;
2515
+ response: {
2516
+ 200: {
2517
+ error: string;
2518
+ details: import("database/api/.generated/runtime/library").JsonValue;
2519
+ status: import("../database/api/.generated").$Enums.RunStatus;
2520
+ campaignId: string;
2521
+ computedUntil: bigint;
2522
+ processingStarted: bigint;
2523
+ }[];
2524
+ };
2525
+ };
2526
+ };
2527
+ };
2528
+ } & {
2529
+ "campaign-status": {
2530
+ ":campaignId": {
2531
+ get: {
2532
+ body: unknown;
2533
+ params: {
2534
+ campaignId: string;
2535
+ };
2536
+ query: unknown;
2537
+ headers: unknown;
2538
+ response: {
2539
+ 200: {
2540
+ error: string;
2541
+ details: import("database/api/.generated/runtime/library").JsonValue;
2542
+ status: import("../database/api/.generated").$Enums.RunStatus;
2543
+ campaignId: string;
2544
+ computedUntil: bigint;
2545
+ processingStarted: bigint;
2546
+ }[] | {
2547
+ error: string;
2548
+ details: import("database/api/.generated/runtime/library").JsonValue;
2549
+ status: import("../database/api/.generated").$Enums.RunStatus;
2550
+ campaignId: string;
2551
+ computedUntil: bigint;
2552
+ processingStarted: bigint;
2553
+ };
2554
+ };
2555
+ };
2556
+ };
2557
+ };
2558
+ };
2559
+ } & {
2560
+ v4: {
2561
+ liquidity: {
2562
+ index: {
2563
+ get: {
2564
+ body: unknown;
2565
+ params: {};
2566
+ query: {
2567
+ chainId: number;
2568
+ address: string;
2569
+ };
2570
+ headers: unknown;
2571
+ response: {
2572
+ 200: import("./modules/v4/liquidity").PositionT[];
2573
+ };
2574
+ };
2575
+ };
2576
+ };
2577
+ };
2578
+ } & {
2579
+ v4: {
2580
+ claims: {
2581
+ ":address": {
2582
+ get: {
2583
+ body: unknown;
2584
+ params: {
2585
+ address: string;
2586
+ };
2587
+ query: unknown;
2588
+ headers: unknown;
2589
+ response: {
2590
+ 200: (import("./modules/v4/claims").ClaimModel & {
2591
+ token: import("./modules/v4").Token["model"];
2592
+ })[];
2593
+ };
2594
+ };
2595
+ };
2596
+ };
2597
+ };
2598
+ } & {
2599
+ v3: {
2600
+ app: {
2601
+ get: {
2602
+ body: unknown;
2603
+ params: {};
2604
+ query: {};
2605
+ headers: unknown;
2606
+ response: {
2607
+ [x: string]: any;
2608
+ 200: any;
2609
+ };
2610
+ };
2611
+ };
2612
+ };
2613
+ } & {
2614
+ v3: {
2615
+ blacklist: {
2616
+ get: {
2617
+ body: unknown;
2618
+ params: {};
2619
+ query: {
2620
+ user: string;
2621
+ };
2622
+ headers: unknown;
2623
+ response: {
2624
+ 200: {
2625
+ isBlacklisted: boolean;
2626
+ };
2627
+ };
2628
+ };
2629
+ };
2630
+ };
2631
+ } & {
2632
+ v3: {
2633
+ campaignClaims: {
2634
+ get: {
2635
+ body: unknown;
2636
+ params: {};
2637
+ query: {
2638
+ byReason?: boolean | undefined;
2639
+ chainId: number;
2640
+ campaignId: string;
2641
+ };
2642
+ headers: unknown;
2643
+ response: {
2644
+ 200: unknown;
2645
+ };
2646
+ };
2647
+ };
2648
+ };
2649
+ } & {
2650
+ v3: {
2651
+ campaignReport: {
2652
+ get: {
2653
+ body: unknown;
2654
+ params: {};
2655
+ query: {
2656
+ chainId: number;
2657
+ campaignId: string;
2658
+ };
2659
+ headers: unknown;
2660
+ response: {
2661
+ 200: import("./utils/queries/rewardsAmount").RewardsAmountQueryOutput;
2662
+ };
2663
+ };
2664
+ };
2665
+ };
2666
+ } & {
2667
+ v3: {
2668
+ campaigns: {
2669
+ get: {
2670
+ body: unknown;
2671
+ params: {};
2672
+ query: {
2673
+ types?: string | number | string[] | number[] | undefined;
2674
+ creatorTag?: string | undefined;
2675
+ live?: boolean | undefined;
2676
+ chainIds?: string | string[] | undefined;
2677
+ hideTestTokens?: string | undefined;
2678
+ };
2679
+ headers: unknown;
2680
+ response: {
2681
+ [x: string]: any;
2682
+ 200: any;
2683
+ };
2684
+ };
2685
+ };
2686
+ };
2687
+ } & {
2688
+ v3: {
2689
+ campaignsForMainParameter: {
2690
+ get: {
2691
+ body: unknown;
2692
+ params: {};
2693
+ query: {
2694
+ chainId: number;
2695
+ mainParameter: string;
2696
+ };
2697
+ headers: unknown;
2698
+ response: {
2699
+ 200: import("./types/returnTypes").CampaignsForMainParameterReturnType;
2700
+ };
2701
+ };
2702
+ };
2703
+ };
2704
+ } & {
2705
+ v3: {
2706
+ campaignInfo: {
2707
+ post: {
2708
+ body: {
2709
+ [x: string]: string[];
2710
+ };
2711
+ params: {};
2712
+ query: unknown;
2713
+ headers: unknown;
2714
+ response: {
2715
+ 200: {
2716
+ [x: string]: Record<string, any>;
2717
+ } | {
2718
+ error: string;
2719
+ };
2720
+ };
2721
+ };
2722
+ };
2723
+ };
2724
+ } & {
2725
+ v3: {
2726
+ campaignsRewardsReport: {
2727
+ get: {
2728
+ body: unknown;
2729
+ params: {};
2730
+ query: {
2731
+ from?: number | undefined;
2732
+ to?: number | undefined;
2733
+ chain_campaignIds: never[];
2734
+ };
2735
+ headers: unknown;
2736
+ response: {
2737
+ 200: any[];
2738
+ };
2739
+ };
2740
+ };
2741
+ };
2742
+ } & {
2743
+ v3: {
2744
+ campaignUnclaimed: {
2745
+ get: {
2746
+ body: unknown;
2747
+ params: {};
2748
+ query: {
2749
+ chainId: number;
2750
+ campaignIds: string;
2751
+ };
2752
+ headers: unknown;
2753
+ response: {
2754
+ 200: {
2755
+ [x: string]: string;
2756
+ };
2757
+ };
2758
+ };
2759
+ };
2760
+ };
2761
+ } & {
2762
+ v3: {
2763
+ claims: {
2764
+ get: {
2765
+ body: unknown;
2766
+ params: {};
2767
+ query: {
2768
+ creatorTag?: string | undefined;
2769
+ chainIds?: string | string[] | undefined;
2770
+ byReason?: boolean | undefined;
2771
+ user: string;
2772
+ };
2773
+ headers: unknown;
2774
+ response: {
2775
+ 200: unknown;
2776
+ };
2777
+ };
2778
+ };
2779
+ };
2780
+ } & {
2781
+ v3: {
2782
+ compoundV2: {
2783
+ get: {
2784
+ body: unknown;
2785
+ params: {};
2786
+ query: {};
2787
+ headers: unknown;
2788
+ response: {
2789
+ 200: {
2790
+ [x: string]: {
2791
+ address: string;
2792
+ symbolCToken: string;
2793
+ decimalsCToken: number;
2794
+ underlying: string;
2795
+ symbolUnderlying: string;
2796
+ decimalsUnderlying: number;
2797
+ }[];
2798
+ };
2799
+ };
2800
+ };
2801
+ };
2802
+ };
2803
+ } & {
2804
+ v3: {
2805
+ createCampaign: {
2806
+ get: {
2807
+ body: unknown;
2808
+ params: {};
2809
+ query: {
2810
+ chainId: number;
2811
+ user: string;
2812
+ };
2813
+ headers: unknown;
2814
+ response: {
2815
+ 200: {
2816
+ feeRebate: number | undefined;
2817
+ message: any;
2818
+ signed: boolean | undefined;
2819
+ validRewardTokens: any;
2820
+ };
2821
+ };
2822
+ };
2823
+ };
2824
+ };
2825
+ } & {
2826
+ v3: {
2827
+ dolomite: {
2828
+ get: {
2829
+ body: unknown;
2830
+ params: {};
2831
+ query: {};
2832
+ headers: unknown;
2833
+ response: {
2834
+ [x: string]: any;
2835
+ 200: any;
2836
+ };
2837
+ };
2838
+ };
2839
+ };
2840
+ } & {
2841
+ v3: {
2842
+ euler: {
2843
+ get: {
2844
+ body: unknown;
2845
+ params: {};
2846
+ query: {};
2847
+ headers: unknown;
2848
+ response: {
2849
+ 200: import("./libs/campaigns/utils/getEulerV2Vaults").EulerVaultType[];
2850
+ };
2851
+ };
2852
+ };
2853
+ };
2854
+ } & {
2855
+ v3: {
2856
+ fetch: {
2857
+ get: {
2858
+ body: unknown;
2859
+ params: {};
2860
+ query: {
2861
+ index: number;
2862
+ chainId: number;
2863
+ };
2864
+ headers: unknown;
2865
+ response: {
2866
+ 200: string | {
2867
+ message: string;
2868
+ name: string;
2869
+ };
2870
+ };
2871
+ };
2872
+ };
2873
+ };
2874
+ } & {
2875
+ v3: {
2876
+ health: {
2877
+ get: {
2878
+ body: unknown;
2879
+ params: {};
2880
+ query: {};
2881
+ headers: unknown;
2882
+ response: {
2883
+ 200: {
2884
+ success: boolean;
2885
+ };
2886
+ };
2887
+ };
2888
+ };
2889
+ };
2890
+ } & {
2891
+ v3: {
2892
+ lostyield: {
2893
+ get: {
2894
+ body: unknown;
2895
+ params: {};
2896
+ query: {
2897
+ user: string;
2898
+ };
2899
+ headers: unknown;
2900
+ response: {
2901
+ [x: string]: any;
2902
+ 200: any;
2903
+ };
2904
+ };
2905
+ };
2906
+ };
2907
+ } & {
2908
+ v3: {
2909
+ merkl: {
2910
+ get: {
2911
+ body: unknown;
2912
+ params: {};
2913
+ query: unknown;
2914
+ headers: unknown;
2915
+ response: {
2916
+ [x: string]: any;
2917
+ 200: any;
2918
+ };
2919
+ };
2920
+ };
2921
+ };
2922
+ } & {
2923
+ v3: {
2924
+ morphoMarkets: {
2925
+ get: {
2926
+ body: unknown;
2927
+ params: {};
2928
+ query: {
2929
+ chainId: number;
2930
+ repository: string;
2931
+ };
2932
+ headers: unknown;
2933
+ response: {
2934
+ [x: string]: any;
2935
+ 200: any;
2936
+ };
2937
+ };
2938
+ };
2939
+ };
2940
+ } & {
2941
+ v3: {
2942
+ morphoVaults: {
2943
+ get: {
2944
+ body: unknown;
2945
+ params: {};
2946
+ query: {
2947
+ chainId: number;
2948
+ repository: string;
2949
+ };
2950
+ headers: unknown;
2951
+ response: {
2952
+ [x: string]: any;
2953
+ 200: any;
2954
+ };
2955
+ };
2956
+ };
2957
+ };
2958
+ } & {
2959
+ v3: {
2960
+ multiChainPositions: {
2961
+ get: {
2962
+ body: unknown;
2963
+ params: {};
2964
+ query: {
2965
+ chainIds?: string | string[] | undefined;
2966
+ user: string;
2967
+ creatorTag: string;
2968
+ };
2969
+ headers: unknown;
2970
+ response: {
2971
+ [x: string]: any;
2972
+ 200: any;
2973
+ };
2974
+ };
2975
+ };
2976
+ };
2977
+ } & {
2978
+ v3: {
2979
+ opportunity: {
2980
+ get: {
2981
+ body: unknown;
2982
+ params: {};
2983
+ query: {
2984
+ type?: undefined;
2985
+ tag?: string | undefined;
2986
+ chainId?: undefined;
2987
+ mainParameter?: string | undefined;
2988
+ action?: undefined;
2989
+ campaigns?: boolean | undefined;
2990
+ testTokens?: boolean | undefined;
2991
+ };
2992
+ headers: unknown;
2993
+ response: {
2994
+ 200: {};
2995
+ };
2996
+ };
2997
+ };
2998
+ };
2999
+ } & {
3000
+ v3: {
3001
+ overview: {
3002
+ get: {
3003
+ body: unknown;
3004
+ params: {};
3005
+ query: {
3006
+ chainId?: undefined;
3007
+ };
3008
+ headers: unknown;
3009
+ response: {
3010
+ 200: {
3011
+ disputes: {
3012
+ [chainId: number]: {
3013
+ root: string;
3014
+ endOfDisputePeriod: number;
3015
+ disputeLive: boolean;
3016
+ treeRoot: string;
3017
+ lastTreeRoot: string;
3018
+ };
3019
+ };
3020
+ rewardTokens: {
3021
+ [chainId: number]: {
3022
+ token: string;
3023
+ minimumAmountPerEpoch: number;
3024
+ decimals: number;
3025
+ symbol: string;
3026
+ }[];
3027
+ };
3028
+ };
3029
+ };
3030
+ };
3031
+ };
3032
+ };
3033
+ } & {
3034
+ v3: {
3035
+ parse: {
3036
+ get: {
3037
+ body: unknown;
3038
+ params: {};
3039
+ query: {
3040
+ index?: number | undefined;
3041
+ chainId: number;
3042
+ campaign: any;
3043
+ };
3044
+ headers: unknown;
3045
+ response: {
3046
+ 200: string | {
3047
+ message: string;
3048
+ name: string;
3049
+ };
3050
+ };
3051
+ };
3052
+ };
3053
+ };
3054
+ } & {
3055
+ v3: {
3056
+ payload: {
3057
+ get: {
3058
+ body: unknown;
3059
+ params: {};
3060
+ query: {
3061
+ signature?: any;
3062
+ config: string;
3063
+ chainId: number;
3064
+ };
3065
+ headers: unknown;
3066
+ response: {
3067
+ 200: {
3068
+ message: any;
3069
+ name: string;
3070
+ args?: undefined;
3071
+ parsedCampaign?: undefined;
3072
+ payload?: undefined;
3073
+ fee?: undefined;
3074
+ } | {
3075
+ args: any;
3076
+ parsedCampaign: any;
3077
+ payload: any;
3078
+ fee: string | undefined;
3079
+ message?: undefined;
3080
+ name?: undefined;
3081
+ };
3082
+ };
3083
+ };
3084
+ };
3085
+ };
3086
+ } & {
3087
+ v3: {
3088
+ poolInfo: {
3089
+ get: {
3090
+ body: unknown;
3091
+ params: {};
3092
+ query: {
3093
+ chainId: number;
3094
+ poolAddress: string;
3095
+ };
3096
+ headers: unknown;
3097
+ response: {
3098
+ [x: string]: any;
3099
+ 200: any;
3100
+ };
3101
+ };
3102
+ };
3103
+ };
3104
+ } & {
3105
+ v3: {
3106
+ positions: {
3107
+ get: {
3108
+ body: unknown;
3109
+ params: {};
3110
+ query: {
3111
+ chainId: never;
3112
+ user: string;
3113
+ };
3114
+ headers: unknown;
3115
+ response: {
3116
+ [x: string]: any;
3117
+ 200: any;
3118
+ };
3119
+ };
3120
+ };
3121
+ };
3122
+ } & {
3123
+ v3: {
3124
+ radiant: {
3125
+ get: {
3126
+ body: unknown;
3127
+ params: {};
3128
+ query: {
3129
+ chainId: number;
3130
+ poolAddressProvider: string;
3131
+ };
3132
+ headers: unknown;
3133
+ response: {
3134
+ [x: string]: any;
3135
+ 200: any;
3136
+ };
3137
+ };
3138
+ };
3139
+ };
3140
+ } & {
3141
+ v3: {
3142
+ recipients: {
3143
+ get: {
3144
+ body: unknown;
3145
+ params: {};
3146
+ query: {
3147
+ chainId: number;
3148
+ campaignId: string;
3149
+ };
3150
+ headers: unknown;
3151
+ response: {
3152
+ 200: {
3153
+ recipient: string;
3154
+ reason: string;
3155
+ rewardToken: string;
3156
+ amount: string;
3157
+ }[];
3158
+ };
3159
+ };
3160
+ };
3161
+ };
3162
+ } & {
3163
+ v3: {
3164
+ rewards: {
3165
+ get: {
3166
+ body: unknown;
3167
+ params: {};
3168
+ query: {
3169
+ creatorTag?: string | undefined;
3170
+ chainIds?: string | string[] | undefined;
3171
+ user: string;
3172
+ };
3173
+ headers: unknown;
3174
+ response: {
3175
+ 200: {
3176
+ [x: string]: {
3177
+ campaignData: {
3178
+ [x: string]: {
3179
+ [x: string]: {
3180
+ pending?: string | undefined;
3181
+ symbol: string;
3182
+ token: string;
3183
+ mainParameter: string;
3184
+ decimals: number;
3185
+ auxiliaryData1: string;
3186
+ auxiliaryData2: string;
3187
+ unclaimed: string;
3188
+ accumulated: string;
3189
+ };
3190
+ };
3191
+ };
3192
+ tokenData: {
3193
+ [x: string]: {
3194
+ pending?: string | undefined;
3195
+ symbol: string;
3196
+ decimals: number;
3197
+ proof: string[];
3198
+ unclaimed: string;
3199
+ accumulated: string;
3200
+ };
3201
+ };
3202
+ };
3203
+ };
3204
+ };
3205
+ };
3206
+ };
3207
+ };
3208
+ } & {
3209
+ v3: {
3210
+ rewardsReport: {
3211
+ get: {
3212
+ body: unknown;
3213
+ params: {};
3214
+ query: {
3215
+ from?: number | undefined;
3216
+ to?: number | undefined;
3217
+ mainParameter?: string | undefined;
3218
+ chainId: number;
3219
+ campaignId: string;
3220
+ };
3221
+ headers: unknown;
3222
+ response: {
3223
+ 200: {
3224
+ recipient: string;
3225
+ reason: string;
3226
+ rewardToken: string;
3227
+ amount: string;
3228
+ }[];
3229
+ };
3230
+ };
3231
+ };
3232
+ };
3233
+ } & {
3234
+ v3: {
3235
+ silo: {
3236
+ get: {
3237
+ body: unknown;
3238
+ params: {};
3239
+ query: {
3240
+ chainId: number;
3241
+ repository: string;
3242
+ };
3243
+ headers: unknown;
3244
+ response: {
3245
+ [x: string]: any;
3246
+ 200: any;
3247
+ };
3248
+ };
3249
+ };
3250
+ };
3251
+ } & {
3252
+ v3: {
3253
+ token: {
3254
+ get: {
3255
+ body: unknown;
3256
+ params: {};
3257
+ query: {
3258
+ chainId: number;
3259
+ address: string;
3260
+ };
3261
+ headers: unknown;
3262
+ response: {
3263
+ 200: {
3264
+ name: string;
3265
+ symbol: string;
3266
+ decimals: number;
3267
+ };
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ } & {
3273
+ v3: {
3274
+ tokenUnclaimed: {
3275
+ get: {
3276
+ body: unknown;
3277
+ params: {};
3278
+ query: {
3279
+ token: string;
3280
+ chainId: number;
3281
+ };
3282
+ headers: unknown;
3283
+ response: {
3284
+ 200: {
3285
+ message: string;
3286
+ };
3287
+ };
3288
+ };
3289
+ };
3290
+ };
3291
+ } & {
3292
+ v3: {
3293
+ updates: {
3294
+ get: {
3295
+ body: unknown;
3296
+ params: {};
3297
+ query: {};
3298
+ headers: unknown;
3299
+ response: {
3300
+ 200: {
3301
+ [x: number]: {
3302
+ [campaignId: string]: number;
3303
+ };
3304
+ };
3305
+ readonly 400: {
3306
+ message?: string | undefined;
3307
+ error: string;
3308
+ };
3309
+ };
3310
+ };
3311
+ };
3312
+ };
3313
+ } & {
3314
+ v3: {
3315
+ userRewards: {
3316
+ get: {
3317
+ body: unknown;
3318
+ params: {};
3319
+ query: {
3320
+ mainParameter?: string | undefined;
3321
+ rewardToken?: string | undefined;
3322
+ proof?: string | undefined;
3323
+ chainId: never;
3324
+ user: string;
3325
+ };
3326
+ headers: unknown;
3327
+ response: {
3328
+ 200: {
3329
+ [x: string]: {
3330
+ pending?: string | undefined;
3331
+ proof?: string[] | undefined;
3332
+ symbol: string;
3333
+ decimals: number;
3334
+ unclaimed: string;
3335
+ accumulated: string;
3336
+ reasons: {
3337
+ [x: string]: {
3338
+ pending?: string | undefined;
3339
+ unclaimed: string;
3340
+ accumulated: string;
3341
+ };
3342
+ };
3343
+ };
3344
+ };
3345
+ };
3346
+ };
3347
+ };
3348
+ };
3349
+ }, {
3350
+ derive: {};
3351
+ resolve: {};
3352
+ schema: {};
3353
+ }, {
3354
+ derive: {};
3355
+ resolve: {};
3356
+ schema: {};
3357
+ }>;
2
3358
  export type App = typeof app;
3
3359
  export { app };