@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
@@ -93,18 +93,16 @@ export declare abstract class RewardService {
93
93
  endOfDisputePeriod: number;
94
94
  lastClaimsOnchainFetchTimestamp: string | null;
95
95
  };
96
- MainProtocol: {
96
+ DepositUrls: {
97
97
  id: string;
98
- tags: string[];
99
- name: string;
100
- description: string;
98
+ title: string;
101
99
  url: string;
102
- icon: string;
103
- banner: string | null;
104
- opportunityBannerLight: string | null;
105
- opportunityBannerDark: string | null;
106
- } | null;
107
- Protocols: {
100
+ subtitle: string | null;
101
+ icon: string | null;
102
+ priority: number;
103
+ opportunityId: string;
104
+ }[];
105
+ MainProtocol: {
108
106
  id: string;
109
107
  tags: string[];
110
108
  name: string;
@@ -114,7 +112,7 @@ export declare abstract class RewardService {
114
112
  banner: string | null;
115
113
  opportunityBannerLight: string | null;
116
114
  opportunityBannerDark: string | null;
117
- }[];
115
+ } | null;
118
116
  Tokens: {
119
117
  id: string;
120
118
  name: string | null;
@@ -228,18 +226,16 @@ export declare abstract class RewardService {
228
226
  endOfDisputePeriod: number;
229
227
  lastClaimsOnchainFetchTimestamp: string | null;
230
228
  };
231
- MainProtocol: {
229
+ DepositUrls: {
232
230
  id: string;
233
- tags: string[];
234
- name: string;
235
- description: string;
231
+ title: string;
236
232
  url: string;
237
- icon: string;
238
- banner: string | null;
239
- opportunityBannerLight: string | null;
240
- opportunityBannerDark: string | null;
241
- } | null;
242
- Protocols: {
233
+ subtitle: string | null;
234
+ icon: string | null;
235
+ priority: number;
236
+ opportunityId: string;
237
+ }[];
238
+ MainProtocol: {
243
239
  id: string;
244
240
  tags: string[];
245
241
  name: string;
@@ -249,7 +245,7 @@ export declare abstract class RewardService {
249
245
  banner: string | null;
250
246
  opportunityBannerLight: string | null;
251
247
  opportunityBannerDark: string | null;
252
- }[];
248
+ } | null;
253
249
  Tokens: {
254
250
  id: string;
255
251
  name: string | null;
@@ -339,18 +335,16 @@ export declare abstract class RewardService {
339
335
  endOfDisputePeriod: number;
340
336
  lastClaimsOnchainFetchTimestamp: string | null;
341
337
  };
342
- MainProtocol: {
338
+ DepositUrls: {
343
339
  id: string;
344
- tags: string[];
345
- name: string;
346
- description: string;
340
+ title: string;
347
341
  url: string;
348
- icon: string;
349
- banner: string | null;
350
- opportunityBannerLight: string | null;
351
- opportunityBannerDark: string | null;
352
- } | null;
353
- Protocols: {
342
+ subtitle: string | null;
343
+ icon: string | null;
344
+ priority: number;
345
+ opportunityId: string;
346
+ }[];
347
+ MainProtocol: {
354
348
  id: string;
355
349
  tags: string[];
356
350
  name: string;
@@ -360,7 +354,7 @@ export declare abstract class RewardService {
360
354
  banner: string | null;
361
355
  opportunityBannerLight: string | null;
362
356
  opportunityBannerDark: string | null;
363
- }[];
357
+ } | null;
364
358
  Tokens: {
365
359
  id: string;
366
360
  name: string | null;
@@ -460,18 +454,16 @@ export declare abstract class RewardService {
460
454
  endOfDisputePeriod: number;
461
455
  lastClaimsOnchainFetchTimestamp: string | null;
462
456
  };
463
- MainProtocol: {
457
+ DepositUrls: {
464
458
  id: string;
465
- tags: string[];
466
- name: string;
467
- description: string;
459
+ title: string;
468
460
  url: string;
469
- icon: string;
470
- banner: string | null;
471
- opportunityBannerLight: string | null;
472
- opportunityBannerDark: string | null;
473
- } | null;
474
- Protocols: {
461
+ subtitle: string | null;
462
+ icon: string | null;
463
+ priority: number;
464
+ opportunityId: string;
465
+ }[];
466
+ MainProtocol: {
475
467
  id: string;
476
468
  tags: string[];
477
469
  name: string;
@@ -481,7 +473,7 @@ export declare abstract class RewardService {
481
473
  banner: string | null;
482
474
  opportunityBannerLight: string | null;
483
475
  opportunityBannerDark: string | null;
484
- }[];
476
+ } | null;
485
477
  Tokens: {
486
478
  id: string;
487
479
  name: string | null;
@@ -689,18 +681,16 @@ export declare abstract class RewardService {
689
681
  endOfDisputePeriod: number;
690
682
  lastClaimsOnchainFetchTimestamp: string | null;
691
683
  };
692
- MainProtocol: {
684
+ DepositUrls: {
693
685
  id: string;
694
- tags: string[];
695
- name: string;
696
- description: string;
686
+ title: string;
697
687
  url: string;
698
- icon: string;
699
- banner: string | null;
700
- opportunityBannerLight: string | null;
701
- opportunityBannerDark: string | null;
702
- } | null;
703
- Protocols: {
688
+ subtitle: string | null;
689
+ icon: string | null;
690
+ priority: number;
691
+ opportunityId: string;
692
+ }[];
693
+ MainProtocol: {
704
694
  id: string;
705
695
  tags: string[];
706
696
  name: string;
@@ -710,7 +700,7 @@ export declare abstract class RewardService {
710
700
  banner: string | null;
711
701
  opportunityBannerLight: string | null;
712
702
  opportunityBannerDark: string | null;
713
- }[];
703
+ } | null;
714
704
  Tokens: {
715
705
  id: string;
716
706
  name: string | null;
@@ -823,18 +813,16 @@ export declare abstract class RewardService {
823
813
  endOfDisputePeriod: number;
824
814
  lastClaimsOnchainFetchTimestamp: string | null;
825
815
  };
826
- MainProtocol: {
816
+ DepositUrls: {
827
817
  id: string;
828
- tags: string[];
829
- name: string;
830
- description: string;
818
+ title: string;
831
819
  url: string;
832
- icon: string;
833
- banner: string | null;
834
- opportunityBannerLight: string | null;
835
- opportunityBannerDark: string | null;
836
- } | null;
837
- Protocols: {
820
+ subtitle: string | null;
821
+ icon: string | null;
822
+ priority: number;
823
+ opportunityId: string;
824
+ }[];
825
+ MainProtocol: {
838
826
  id: string;
839
827
  tags: string[];
840
828
  name: string;
@@ -844,7 +832,7 @@ export declare abstract class RewardService {
844
832
  banner: string | null;
845
833
  opportunityBannerLight: string | null;
846
834
  opportunityBannerDark: string | null;
847
- }[];
835
+ } | null;
848
836
  Tokens: {
849
837
  id: string;
850
838
  name: string | null;
@@ -908,9 +896,16 @@ export declare abstract class RewardService {
908
896
  status: "LIVE" | "NONE" | "PAST" | "SOON";
909
897
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
910
898
  tags: string[];
911
- protocols?: string[] | undefined;
912
899
  mainProtocol?: string | undefined;
913
900
  depositUrl?: string | undefined;
901
+ depositUrls?: {
902
+ id: string;
903
+ title: string;
904
+ url: string;
905
+ subtitle?: string | undefined;
906
+ icon?: string | undefined;
907
+ priority: number;
908
+ }[] | undefined;
914
909
  explorerAddress?: string | undefined;
915
910
  hidden?: boolean | undefined;
916
911
  tvl: number;
@@ -1150,18 +1145,16 @@ export declare abstract class RewardService {
1150
1145
  endOfDisputePeriod: number;
1151
1146
  lastClaimsOnchainFetchTimestamp: string | null;
1152
1147
  };
1153
- MainProtocol: {
1148
+ DepositUrls: {
1154
1149
  id: string;
1155
- tags: string[];
1156
- name: string;
1157
- description: string;
1150
+ title: string;
1158
1151
  url: string;
1159
- icon: string;
1160
- banner: string | null;
1161
- opportunityBannerLight: string | null;
1162
- opportunityBannerDark: string | null;
1163
- } | null;
1164
- Protocols: {
1152
+ subtitle: string | null;
1153
+ icon: string | null;
1154
+ priority: number;
1155
+ opportunityId: string;
1156
+ }[];
1157
+ MainProtocol: {
1165
1158
  id: string;
1166
1159
  tags: string[];
1167
1160
  name: string;
@@ -1171,7 +1164,7 @@ export declare abstract class RewardService {
1171
1164
  banner: string | null;
1172
1165
  opportunityBannerLight: string | null;
1173
1166
  opportunityBannerDark: string | null;
1174
- }[];
1167
+ } | null;
1175
1168
  Tokens: {
1176
1169
  id: string;
1177
1170
  name: string | null;
@@ -1284,18 +1277,16 @@ export declare abstract class RewardService {
1284
1277
  endOfDisputePeriod: number;
1285
1278
  lastClaimsOnchainFetchTimestamp: string | null;
1286
1279
  };
1287
- MainProtocol: {
1280
+ DepositUrls: {
1288
1281
  id: string;
1289
- tags: string[];
1290
- name: string;
1291
- description: string;
1282
+ title: string;
1292
1283
  url: string;
1293
- icon: string;
1294
- banner: string | null;
1295
- opportunityBannerLight: string | null;
1296
- opportunityBannerDark: string | null;
1297
- } | null;
1298
- Protocols: {
1284
+ subtitle: string | null;
1285
+ icon: string | null;
1286
+ priority: number;
1287
+ opportunityId: string;
1288
+ }[];
1289
+ MainProtocol: {
1299
1290
  id: string;
1300
1291
  tags: string[];
1301
1292
  name: string;
@@ -1305,7 +1296,7 @@ export declare abstract class RewardService {
1305
1296
  banner: string | null;
1306
1297
  opportunityBannerLight: string | null;
1307
1298
  opportunityBannerDark: string | null;
1308
- }[];
1299
+ } | null;
1309
1300
  Tokens: {
1310
1301
  id: string;
1311
1302
  name: string | null;
@@ -1411,18 +1402,16 @@ export declare abstract class RewardService {
1411
1402
  endOfDisputePeriod: number;
1412
1403
  lastClaimsOnchainFetchTimestamp: string | null;
1413
1404
  };
1414
- MainProtocol: {
1405
+ DepositUrls: {
1415
1406
  id: string;
1416
- tags: string[];
1417
- name: string;
1418
- description: string;
1407
+ title: string;
1419
1408
  url: string;
1420
- icon: string;
1421
- banner: string | null;
1422
- opportunityBannerLight: string | null;
1423
- opportunityBannerDark: string | null;
1424
- } | null;
1425
- Protocols: {
1409
+ subtitle: string | null;
1410
+ icon: string | null;
1411
+ priority: number;
1412
+ opportunityId: string;
1413
+ }[];
1414
+ MainProtocol: {
1426
1415
  id: string;
1427
1416
  tags: string[];
1428
1417
  name: string;
@@ -1432,7 +1421,7 @@ export declare abstract class RewardService {
1432
1421
  banner: string | null;
1433
1422
  opportunityBannerLight: string | null;
1434
1423
  opportunityBannerDark: string | null;
1435
- }[];
1424
+ } | null;
1436
1425
  Tokens: {
1437
1426
  id: string;
1438
1427
  name: string | null;
@@ -1532,18 +1521,16 @@ export declare abstract class RewardService {
1532
1521
  endOfDisputePeriod: number;
1533
1522
  lastClaimsOnchainFetchTimestamp: string | null;
1534
1523
  };
1535
- MainProtocol: {
1524
+ DepositUrls: {
1536
1525
  id: string;
1537
- tags: string[];
1538
- name: string;
1539
- description: string;
1526
+ title: string;
1540
1527
  url: string;
1541
- icon: string;
1542
- banner: string | null;
1543
- opportunityBannerLight: string | null;
1544
- opportunityBannerDark: string | null;
1545
- } | null;
1546
- Protocols: {
1528
+ subtitle: string | null;
1529
+ icon: string | null;
1530
+ priority: number;
1531
+ opportunityId: string;
1532
+ }[];
1533
+ MainProtocol: {
1547
1534
  id: string;
1548
1535
  tags: string[];
1549
1536
  name: string;
@@ -1553,7 +1540,7 @@ export declare abstract class RewardService {
1553
1540
  banner: string | null;
1554
1541
  opportunityBannerLight: string | null;
1555
1542
  opportunityBannerDark: string | null;
1556
- }[];
1543
+ } | null;
1557
1544
  Tokens: {
1558
1545
  id: string;
1559
1546
  name: string | null;
@@ -1742,18 +1729,16 @@ export declare abstract class RewardService {
1742
1729
  endOfDisputePeriod: number;
1743
1730
  lastClaimsOnchainFetchTimestamp: string | null;
1744
1731
  };
1745
- MainProtocol: {
1732
+ DepositUrls: {
1746
1733
  id: string;
1747
- tags: string[];
1748
- name: string;
1749
- description: string;
1734
+ title: string;
1750
1735
  url: string;
1751
- icon: string;
1752
- banner: string | null;
1753
- opportunityBannerLight: string | null;
1754
- opportunityBannerDark: string | null;
1755
- } | null;
1756
- Protocols: {
1736
+ subtitle: string | null;
1737
+ icon: string | null;
1738
+ priority: number;
1739
+ opportunityId: string;
1740
+ }[];
1741
+ MainProtocol: {
1757
1742
  id: string;
1758
1743
  tags: string[];
1759
1744
  name: string;
@@ -1763,7 +1748,7 @@ export declare abstract class RewardService {
1763
1748
  banner: string | null;
1764
1749
  opportunityBannerLight: string | null;
1765
1750
  opportunityBannerDark: string | null;
1766
- }[];
1751
+ } | null;
1767
1752
  Tokens: {
1768
1753
  id: string;
1769
1754
  name: string | null;