@merkl/api 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/src/eden/index.d.ts +390 -212
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +25 -25
  3. package/dist/src/engine/implementations/Blend/metadata.d.ts +32 -0
  4. package/dist/src/engine/implementations/Blend/metadata.js.map +1 -0
  5. package/dist/src/engine/implementations/SacHolder/metadata.d.ts +16 -0
  6. package/dist/src/engine/implementations/SacHolder/metadata.js.map +1 -0
  7. package/dist/src/engine/metadata/factory.js.map +1 -1
  8. package/dist/src/engine/nativeAPR/factory.js.map +1 -1
  9. package/dist/src/engine/tvl/factory.js.map +1 -1
  10. package/dist/src/index.d.ts +390 -212
  11. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +64 -5
  12. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +10 -2
  13. package/dist/src/modules/v4/campaign/campaign.query-transformer.js.map +1 -1
  14. package/dist/src/modules/v4/campaign/campaign.service.d.ts +49 -12
  15. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +36 -48
  16. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +84 -50
  17. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +64 -68
  18. package/dist/src/modules/v4/carousel/carousel.repository.js.map +1 -1
  19. package/dist/src/modules/v4/carousel/carousel.service.d.ts +86 -70
  20. package/dist/src/modules/v4/config/config.controller.d.ts +9 -12
  21. package/dist/src/modules/v4/config/config.service.d.ts +9 -12
  22. package/dist/src/modules/v4/creator/creator.controller.d.ts +8 -1
  23. package/dist/src/modules/v4/leaf/leaf.repository.d.ts +18 -22
  24. package/dist/src/modules/v4/leaf/leaf.repository.js.map +1 -1
  25. package/dist/src/modules/v4/leaf/leaf.service.d.ts +18 -22
  26. package/dist/src/modules/v4/opportunity/depositUrl.formatter.d.ts +20 -0
  27. package/dist/src/modules/v4/opportunity/depositUrl.formatter.js.map +1 -0
  28. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +88 -31
  29. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +25 -1
  30. package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
  31. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +69 -5
  32. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  33. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +1 -1
  34. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +54 -67
  35. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  36. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +93 -60
  37. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  38. package/dist/src/modules/v4/payload/payload.controller.d.ts +27 -36
  39. package/dist/src/modules/v4/payload/payload.service.d.ts +36 -48
  40. package/dist/src/modules/v4/program/program.controller.d.ts +32 -4
  41. package/dist/src/modules/v4/program/program.repository.d.ts +41 -45
  42. package/dist/src/modules/v4/program/program.repository.js.map +1 -1
  43. package/dist/src/modules/v4/program/program.service.d.ts +32 -4
  44. package/dist/src/modules/v4/protocol/protocol.repository.js.map +1 -1
  45. package/dist/src/modules/v4/reward/reward.repository.d.ts +18 -22
  46. package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
  47. package/dist/src/modules/v4/reward/reward.service.d.ts +107 -122
  48. package/dist/src/modules/v4/router.d.ts +390 -212
  49. package/dist/src/modules/v4/transaction/transaction.service.d.ts +2006 -1936
  50. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +16 -2
  51. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +8 -1
  52. package/dist/src/modules/v4/user/user.controller.d.ts +26 -23
  53. package/dist/src/scripts/exportOpportunities.js.map +1 -1
  54. package/dist/src/scripts/importOpportunities.js.map +1 -1
  55. package/dist/src/utils/getAPR.d.ts +38 -3
  56. package/dist/src/utils/parseDistributionType.d.ts +1087 -1052
  57. package/dist/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +1 -1
@@ -34,18 +34,16 @@ export declare abstract class CarouselService {
34
34
  endOfDisputePeriod: number;
35
35
  lastClaimsOnchainFetchTimestamp: string | null;
36
36
  };
37
- MainProtocol: {
37
+ DepositUrls: {
38
38
  id: string;
39
- tags: string[];
40
- name: string;
41
- description: string;
39
+ title: string;
42
40
  url: string;
43
- icon: string;
44
- banner: string | null;
45
- opportunityBannerLight: string | null;
46
- opportunityBannerDark: string | null;
47
- } | null;
48
- Protocols: {
41
+ subtitle: string | null;
42
+ icon: string | null;
43
+ priority: number;
44
+ opportunityId: string;
45
+ }[];
46
+ MainProtocol: {
49
47
  id: string;
50
48
  tags: string[];
51
49
  name: string;
@@ -55,7 +53,7 @@ export declare abstract class CarouselService {
55
53
  banner: string | null;
56
54
  opportunityBannerLight: string | null;
57
55
  opportunityBannerDark: string | null;
58
- }[];
56
+ } | null;
59
57
  Tokens: {
60
58
  id: string;
61
59
  name: string | null;
@@ -119,18 +117,16 @@ export declare abstract class CarouselService {
119
117
  endOfDisputePeriod: number;
120
118
  lastClaimsOnchainFetchTimestamp: string | null;
121
119
  };
122
- MainProtocol: {
120
+ DepositUrls: {
123
121
  id: string;
124
- tags: string[];
125
- name: string;
126
- description: string;
122
+ title: string;
127
123
  url: string;
128
- icon: string;
129
- banner: string | null;
130
- opportunityBannerLight: string | null;
131
- opportunityBannerDark: string | null;
132
- } | null;
133
- Protocols: {
124
+ subtitle: string | null;
125
+ icon: string | null;
126
+ priority: number;
127
+ opportunityId: string;
128
+ }[];
129
+ MainProtocol: {
134
130
  id: string;
135
131
  tags: string[];
136
132
  name: string;
@@ -140,7 +136,7 @@ export declare abstract class CarouselService {
140
136
  banner: string | null;
141
137
  opportunityBannerLight: string | null;
142
138
  opportunityBannerDark: string | null;
143
- }[];
139
+ } | null;
144
140
  Tokens: {
145
141
  id: string;
146
142
  name: string | null;
@@ -243,9 +239,16 @@ export declare abstract class CarouselService {
243
239
  status: "LIVE" | "NONE" | "PAST" | "SOON";
244
240
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
245
241
  tags: string[];
246
- protocols?: string[] | undefined;
247
242
  mainProtocol?: string | undefined;
248
243
  depositUrl?: string | undefined;
244
+ depositUrls?: {
245
+ id: string;
246
+ title: string;
247
+ url: string;
248
+ subtitle?: string | undefined;
249
+ icon?: string | undefined;
250
+ priority: number;
251
+ }[] | undefined;
249
252
  explorerAddress?: string | undefined;
250
253
  hidden?: boolean | undefined;
251
254
  tvl: number;
@@ -412,9 +415,16 @@ export declare abstract class CarouselService {
412
415
  status: "LIVE" | "NONE" | "PAST" | "SOON";
413
416
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
414
417
  tags: string[];
415
- protocols?: string[] | undefined;
416
418
  mainProtocol?: string | undefined;
417
419
  depositUrl?: string | undefined;
420
+ depositUrls?: {
421
+ id: string;
422
+ title: string;
423
+ url: string;
424
+ subtitle?: string | undefined;
425
+ icon?: string | undefined;
426
+ priority: number;
427
+ }[] | undefined;
418
428
  explorerAddress?: string | undefined;
419
429
  hidden?: boolean | undefined;
420
430
  tvl: number;
@@ -646,18 +656,16 @@ export declare abstract class CarouselService {
646
656
  endOfDisputePeriod: number;
647
657
  lastClaimsOnchainFetchTimestamp: string | null;
648
658
  };
649
- MainProtocol: {
659
+ DepositUrls: {
650
660
  id: string;
651
- tags: string[];
652
- name: string;
653
- description: string;
661
+ title: string;
654
662
  url: string;
655
- icon: string;
656
- banner: string | null;
657
- opportunityBannerLight: string | null;
658
- opportunityBannerDark: string | null;
659
- } | null;
660
- Protocols: {
663
+ subtitle: string | null;
664
+ icon: string | null;
665
+ priority: number;
666
+ opportunityId: string;
667
+ }[];
668
+ MainProtocol: {
661
669
  id: string;
662
670
  tags: string[];
663
671
  name: string;
@@ -667,7 +675,7 @@ export declare abstract class CarouselService {
667
675
  banner: string | null;
668
676
  opportunityBannerLight: string | null;
669
677
  opportunityBannerDark: string | null;
670
- }[];
678
+ } | null;
671
679
  Tokens: {
672
680
  id: string;
673
681
  name: string | null;
@@ -731,18 +739,16 @@ export declare abstract class CarouselService {
731
739
  endOfDisputePeriod: number;
732
740
  lastClaimsOnchainFetchTimestamp: string | null;
733
741
  };
734
- MainProtocol: {
742
+ DepositUrls: {
735
743
  id: string;
736
- tags: string[];
737
- name: string;
738
- description: string;
744
+ title: string;
739
745
  url: string;
740
- icon: string;
741
- banner: string | null;
742
- opportunityBannerLight: string | null;
743
- opportunityBannerDark: string | null;
744
- } | null;
745
- Protocols: {
746
+ subtitle: string | null;
747
+ icon: string | null;
748
+ priority: number;
749
+ opportunityId: string;
750
+ }[];
751
+ MainProtocol: {
746
752
  id: string;
747
753
  tags: string[];
748
754
  name: string;
@@ -752,7 +758,7 @@ export declare abstract class CarouselService {
752
758
  banner: string | null;
753
759
  opportunityBannerLight: string | null;
754
760
  opportunityBannerDark: string | null;
755
- }[];
761
+ } | null;
756
762
  Tokens: {
757
763
  id: string;
758
764
  name: string | null;
@@ -855,9 +861,16 @@ export declare abstract class CarouselService {
855
861
  status: "LIVE" | "NONE" | "PAST" | "SOON";
856
862
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
857
863
  tags: string[];
858
- protocols?: string[] | undefined;
859
864
  mainProtocol?: string | undefined;
860
865
  depositUrl?: string | undefined;
866
+ depositUrls?: {
867
+ id: string;
868
+ title: string;
869
+ url: string;
870
+ subtitle?: string | undefined;
871
+ icon?: string | undefined;
872
+ priority: number;
873
+ }[] | undefined;
861
874
  explorerAddress?: string | undefined;
862
875
  hidden?: boolean | undefined;
863
876
  tvl: number;
@@ -1024,9 +1037,16 @@ export declare abstract class CarouselService {
1024
1037
  status: "LIVE" | "NONE" | "PAST" | "SOON";
1025
1038
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
1026
1039
  tags: string[];
1027
- protocols?: string[] | undefined;
1028
1040
  mainProtocol?: string | undefined;
1029
1041
  depositUrl?: string | undefined;
1042
+ depositUrls?: {
1043
+ id: string;
1044
+ title: string;
1045
+ url: string;
1046
+ subtitle?: string | undefined;
1047
+ icon?: string | undefined;
1048
+ priority: number;
1049
+ }[] | undefined;
1030
1050
  explorerAddress?: string | undefined;
1031
1051
  hidden?: boolean | undefined;
1032
1052
  tvl: number;
@@ -1292,18 +1312,16 @@ export declare abstract class CarouselService {
1292
1312
  endOfDisputePeriod: number;
1293
1313
  lastClaimsOnchainFetchTimestamp: string | null;
1294
1314
  };
1295
- MainProtocol: {
1315
+ DepositUrls: {
1296
1316
  id: string;
1297
- tags: string[];
1298
- name: string;
1299
- description: string;
1317
+ title: string;
1300
1318
  url: string;
1301
- icon: string;
1302
- banner: string | null;
1303
- opportunityBannerLight: string | null;
1304
- opportunityBannerDark: string | null;
1305
- } | null;
1306
- Protocols: {
1319
+ subtitle: string | null;
1320
+ icon: string | null;
1321
+ priority: number;
1322
+ opportunityId: string;
1323
+ }[];
1324
+ MainProtocol: {
1307
1325
  id: string;
1308
1326
  tags: string[];
1309
1327
  name: string;
@@ -1313,7 +1331,7 @@ export declare abstract class CarouselService {
1313
1331
  banner: string | null;
1314
1332
  opportunityBannerLight: string | null;
1315
1333
  opportunityBannerDark: string | null;
1316
- }[];
1334
+ } | null;
1317
1335
  Tokens: {
1318
1336
  id: string;
1319
1337
  name: string | null;
@@ -1377,18 +1395,16 @@ export declare abstract class CarouselService {
1377
1395
  endOfDisputePeriod: number;
1378
1396
  lastClaimsOnchainFetchTimestamp: string | null;
1379
1397
  };
1380
- MainProtocol: {
1398
+ DepositUrls: {
1381
1399
  id: string;
1382
- tags: string[];
1383
- name: string;
1384
- description: string;
1400
+ title: string;
1385
1401
  url: string;
1386
- icon: string;
1387
- banner: string | null;
1388
- opportunityBannerLight: string | null;
1389
- opportunityBannerDark: string | null;
1390
- } | null;
1391
- Protocols: {
1402
+ subtitle: string | null;
1403
+ icon: string | null;
1404
+ priority: number;
1405
+ opportunityId: string;
1406
+ }[];
1407
+ MainProtocol: {
1392
1408
  id: string;
1393
1409
  tags: string[];
1394
1410
  name: string;
@@ -1398,7 +1414,7 @@ export declare abstract class CarouselService {
1398
1414
  banner: string | null;
1399
1415
  opportunityBannerLight: string | null;
1400
1416
  opportunityBannerDark: string | null;
1401
- }[];
1417
+ } | null;
1402
1418
  Tokens: {
1403
1419
  id: string;
1404
1420
  name: string | null;
@@ -191,7 +191,6 @@ export declare const ConfigController: Elysia<"/config", {
191
191
  address: string;
192
192
  chainId: number;
193
193
  }[];
194
- protocols?: string[] | undefined;
195
194
  mainProtocol?: string | undefined;
196
195
  depositUrl?: string | undefined;
197
196
  explorerAddress?: string | undefined;
@@ -302,6 +301,15 @@ export declare const ConfigController: Elysia<"/config", {
302
301
  total: number;
303
302
  opportunityId: string;
304
303
  })[];
304
+ DepositUrls: {
305
+ id: string;
306
+ title: string;
307
+ url: string;
308
+ subtitle: string | null;
309
+ icon: string | null;
310
+ priority: number;
311
+ opportunityId: string;
312
+ }[];
305
313
  MainProtocol: {
306
314
  id: string;
307
315
  tags: string[];
@@ -342,17 +350,6 @@ export declare const ConfigController: Elysia<"/config", {
342
350
  rewardTokenId: string | null;
343
351
  opportunityId: string;
344
352
  })[];
345
- Protocols: {
346
- id: string;
347
- tags: string[];
348
- name: string;
349
- description: string;
350
- url: string;
351
- icon: string;
352
- banner: string | null;
353
- opportunityBannerLight: string | null;
354
- opportunityBannerDark: string | null;
355
- }[];
356
353
  Tokens: {
357
354
  id: string;
358
355
  name: string | null;
@@ -47,7 +47,6 @@ export declare abstract class ConfigService {
47
47
  address: string;
48
48
  chainId: number;
49
49
  }[];
50
- protocols?: string[] | undefined;
51
50
  mainProtocol?: string | undefined;
52
51
  depositUrl?: string | undefined;
53
52
  explorerAddress?: string | undefined;
@@ -158,6 +157,15 @@ export declare abstract class ConfigService {
158
157
  total: number;
159
158
  opportunityId: string;
160
159
  })[];
160
+ DepositUrls: {
161
+ id: string;
162
+ title: string;
163
+ url: string;
164
+ subtitle: string | null;
165
+ icon: string | null;
166
+ priority: number;
167
+ opportunityId: string;
168
+ }[];
161
169
  MainProtocol: {
162
170
  id: string;
163
171
  tags: string[];
@@ -198,17 +206,6 @@ export declare abstract class ConfigService {
198
206
  rewardTokenId: string | null;
199
207
  opportunityId: string;
200
208
  })[];
201
- Protocols: {
202
- id: string;
203
- tags: string[];
204
- name: string;
205
- description: string;
206
- url: string;
207
- icon: string;
208
- banner: string | null;
209
- opportunityBannerLight: string | null;
210
- opportunityBannerDark: string | null;
211
- }[];
212
209
  Tokens: {
213
210
  id: string;
214
211
  name: string | null;
@@ -432,9 +432,16 @@ export declare const CreatorController: Elysia<"/creators", {
432
432
  status: "LIVE" | "NONE" | "PAST" | "SOON";
433
433
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
434
434
  tags: string[];
435
- protocols?: string[] | undefined;
436
435
  mainProtocol?: string | undefined;
437
436
  depositUrl?: string | undefined;
437
+ depositUrls?: {
438
+ id: string;
439
+ title: string;
440
+ url: string;
441
+ subtitle?: string | undefined;
442
+ icon?: string | undefined;
443
+ priority: number;
444
+ }[] | undefined;
438
445
  explorerAddress?: string | undefined;
439
446
  hidden?: boolean | undefined;
440
447
  tvl: number;
@@ -36,18 +36,16 @@ export declare abstract class LeafRepository {
36
36
  endOfDisputePeriod: number;
37
37
  lastClaimsOnchainFetchTimestamp: string | null;
38
38
  };
39
- MainProtocol: {
39
+ DepositUrls: {
40
40
  id: string;
41
- tags: string[];
42
- name: string;
43
- description: string;
41
+ title: string;
44
42
  url: string;
45
- icon: string;
46
- banner: string | null;
47
- opportunityBannerLight: string | null;
48
- opportunityBannerDark: string | null;
49
- } | null;
50
- Protocols: {
43
+ subtitle: string | null;
44
+ icon: string | null;
45
+ priority: number;
46
+ opportunityId: string;
47
+ }[];
48
+ MainProtocol: {
51
49
  id: string;
52
50
  tags: string[];
53
51
  name: string;
@@ -57,7 +55,7 @@ export declare abstract class LeafRepository {
57
55
  banner: string | null;
58
56
  opportunityBannerLight: string | null;
59
57
  opportunityBannerDark: string | null;
60
- }[];
58
+ } | null;
61
59
  Tokens: {
62
60
  id: string;
63
61
  name: string | null;
@@ -170,18 +168,16 @@ export declare abstract class LeafRepository {
170
168
  endOfDisputePeriod: number;
171
169
  lastClaimsOnchainFetchTimestamp: string | null;
172
170
  };
173
- MainProtocol: {
171
+ DepositUrls: {
174
172
  id: string;
175
- tags: string[];
176
- name: string;
177
- description: string;
173
+ title: string;
178
174
  url: string;
179
- icon: string;
180
- banner: string | null;
181
- opportunityBannerLight: string | null;
182
- opportunityBannerDark: string | null;
183
- } | null;
184
- Protocols: {
175
+ subtitle: string | null;
176
+ icon: string | null;
177
+ priority: number;
178
+ opportunityId: string;
179
+ }[];
180
+ MainProtocol: {
185
181
  id: string;
186
182
  tags: string[];
187
183
  name: string;
@@ -191,7 +187,7 @@ export declare abstract class LeafRepository {
191
187
  banner: string | null;
192
188
  opportunityBannerLight: string | null;
193
189
  opportunityBannerDark: string | null;
194
- }[];
190
+ } | null;
195
191
  Tokens: {
196
192
  id: string;
197
193
  name: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"leaf.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/leaf/leaf.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,OAAgB,cAAc;IAClC,8EAA8E;IAC9E,MAAM,CAAC,KAAK,CAAC,cAAc,CACzB,SAAiB,EACjB,oBAA8B,EAC9B,IAAc,EACd,OAOC,EACD;QAC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,CACJ;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAA4E,EAAE;QAClH,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;YACvC,KAAK,EAAE;gBACL,0CAA0C,EAAE,EAAE;aAC/C;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;IAAA,CACJ;CACF"}
1
+ {"version":3,"file":"leaf.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/leaf/leaf.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,OAAgB,cAAc;IAClC,8EAA8E;IAC9E,MAAM,CAAC,KAAK,CAAC,cAAc,CACzB,SAAiB,EACjB,oBAA8B,EAC9B,IAAc,EACd,OAOC,EACD;QACA,MAAM,aAAa,GAAG,KAAK,CAAC;QAE5B,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;YACrC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC3B,KAAK,EAAE;gBACL,SAAS;gBACT,mBAAmB,EAAE,CAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,SAAS;gBAC9F,KAAK,EAAE,CAAC,OAAO,CAAC,cAAc;oBAC5B,CAAC,CAAC;wBACE,IAAI,EAAE,OAAO,CAAC,IAAI;wBAClB,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK;qBACnD;oBACH,CAAC,CAAC,SAAS;gBACb,UAAU,EACR,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;oBACrC,CAAC,CAAC;wBACE,IAAI,EAAE;4BACJ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K,EAAE,EAAE;qCAC9C;iCACF;6BACF;yBACF;wBACD,WAAW,EAAE;4BACX,OAAO,EAAE;gCACP,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,gDAAgD;gCAC5I,WAAW,EAAE;oCACX,OAAO,EAAE;wCACP,YAAY,EAAE,IAAI;wCAClB,KAAK,EAAE,IAAI;wCACX,MAAM,EAAE,IAAI;wCACZ,cAAc,EAAE,IAAI;wCACpB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;qCAC9C;iCACF;6BACF;yBACF;qBACF;iBACF;gBACD,KAAK,EAAE,OAAO,CAAC,SAAS;oBACtB,CAAC,CAAC,IAAI;oBACN,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;aAC5F;SACF,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAA4E,EAAE;QAClH,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;YACvC,KAAK,EAAE;gBACL,0CAA0C,EAAE,EAAE;aAC/C;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -74,18 +74,16 @@ export declare abstract class LeafService {
74
74
  endOfDisputePeriod: number;
75
75
  lastClaimsOnchainFetchTimestamp: string | null;
76
76
  };
77
- MainProtocol: {
77
+ DepositUrls: {
78
78
  id: string;
79
- tags: string[];
80
- name: string;
81
- description: string;
79
+ title: string;
82
80
  url: string;
83
- icon: string;
84
- banner: string | null;
85
- opportunityBannerLight: string | null;
86
- opportunityBannerDark: string | null;
87
- } | null;
88
- Protocols: {
81
+ subtitle: string | null;
82
+ icon: string | null;
83
+ priority: number;
84
+ opportunityId: string;
85
+ }[];
86
+ MainProtocol: {
89
87
  id: string;
90
88
  tags: string[];
91
89
  name: string;
@@ -95,7 +93,7 @@ export declare abstract class LeafService {
95
93
  banner: string | null;
96
94
  opportunityBannerLight: string | null;
97
95
  opportunityBannerDark: string | null;
98
- }[];
96
+ } | null;
99
97
  Tokens: {
100
98
  id: string;
101
99
  name: string | null;
@@ -196,18 +194,16 @@ export declare abstract class LeafService {
196
194
  endOfDisputePeriod: number;
197
195
  lastClaimsOnchainFetchTimestamp: string | null;
198
196
  };
199
- MainProtocol: {
197
+ DepositUrls: {
200
198
  id: string;
201
- tags: string[];
202
- name: string;
203
- description: string;
199
+ title: string;
204
200
  url: string;
205
- icon: string;
206
- banner: string | null;
207
- opportunityBannerLight: string | null;
208
- opportunityBannerDark: string | null;
209
- } | null;
210
- Protocols: {
201
+ subtitle: string | null;
202
+ icon: string | null;
203
+ priority: number;
204
+ opportunityId: string;
205
+ }[];
206
+ MainProtocol: {
211
207
  id: string;
212
208
  tags: string[];
213
209
  name: string;
@@ -217,7 +213,7 @@ export declare abstract class LeafService {
217
213
  banner: string | null;
218
214
  opportunityBannerLight: string | null;
219
215
  opportunityBannerDark: string | null;
220
- }[];
216
+ } | null;
221
217
  Tokens: {
222
218
  id: string;
223
219
  name: string | null;
@@ -0,0 +1,20 @@
1
+ import type { DepositUrl as PrismaDepositUrl } from "@package/databases/api";
2
+ import type { DepositUrl } from "@package/resources/schemas";
3
+ /**
4
+ * DepositUrlFormatter
5
+ * @description Transforms Prisma DepositUrl types to Resource DepositUrl types
6
+ */
7
+ export declare abstract class DepositUrlFormatter {
8
+ /**
9
+ * Format a Prisma DepositUrl to a Resource DepositUrl
10
+ * @param prismaDepositUrl Raw Prisma DepositUrl from repository
11
+ * @returns Formatted DepositUrl Resource
12
+ */
13
+ static format(prismaDepositUrl: PrismaDepositUrl): DepositUrl;
14
+ /**
15
+ * Format multiple Prisma DepositUrls to Resource DepositUrls
16
+ * @param prismaDepositUrls Array of raw Prisma DepositUrls
17
+ * @returns Array of formatted DepositUrl Resources
18
+ */
19
+ static formatMany(prismaDepositUrls: PrismaDepositUrl[]): DepositUrl[];
20
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depositUrl.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/opportunity/depositUrl.formatter.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,OAAgB,mBAAmB;IACvC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,gBAAkC,EAAc;QAC5D,OAAO;YACL,EAAE,EAAE,gBAAgB,CAAC,EAAE;YACvB,KAAK,EAAE,gBAAgB,CAAC,KAAK;YAC7B,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,IAAI,SAAS;YAChD,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAI,SAAS;YACxC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;SACpC,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,iBAAqC,EAAgB;QACrE,OAAO,iBAAiB,CAAC,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAAA,CAC1D;CACF"}