@merkl/api 1.6.74 → 1.6.75

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 (39) hide show
  1. package/dist/src/eden/index.d.ts +3 -276
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +30 -0
  3. package/dist/src/index.d.ts +3 -335
  4. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
  5. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  7. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -24
  8. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -3
  9. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  10. package/dist/src/modules/v4/config/config.controller.d.ts +2 -2
  11. package/dist/src/modules/v4/config/config.model.d.ts +1 -1
  12. package/dist/src/modules/v4/config/config.service.js.map +1 -1
  13. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -4
  14. package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
  15. package/dist/src/modules/v4/router.d.ts +3 -335
  16. package/dist/src/modules/v4/router.js.map +1 -1
  17. package/dist/src/modules/v4/{campaignBatch/campaignBatch.model.d.ts → safePayload/safePayload.model.d.ts} +0 -12
  18. package/dist/src/modules/v4/safePayload/safePayload.model.js.map +1 -0
  19. package/dist/src/modules/v4/safePayload/safePayload.service.d.ts +9 -0
  20. package/dist/src/modules/v4/safePayload/safePayload.service.js.map +1 -0
  21. package/dist/src/scripts/exportOpportunities.js.map +1 -1
  22. package/dist/src/scripts/importOpportunities.js.map +1 -1
  23. package/dist/src/utils/getAPR.d.ts +835 -805
  24. package/dist/src/utils/parseDistributionType.d.ts +30 -0
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
  27. package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +0 -361
  28. package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.js.map +0 -1
  29. package/dist/src/modules/v4/campaignBatch/campaignBatch.model.js.map +0 -1
  30. package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +0 -96
  31. package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.js.map +0 -1
  32. package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -121
  33. package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +0 -1
  34. package/dist/src/modules/v4/campaignGroup/campaignGroup.model.d.ts +0 -16
  35. package/dist/src/modules/v4/campaignGroup/campaignGroup.model.js.map +0 -1
  36. package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +0 -127
  37. package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.js.map +0 -1
  38. package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +0 -127
  39. package/dist/src/modules/v4/campaignGroup/campaignGroup.service.js.map +0 -1
@@ -1331,279 +1331,6 @@ declare const eden: {
1331
1331
  };
1332
1332
  };
1333
1333
  };
1334
- "campaign-batch": ((params: {
1335
- id: string | number;
1336
- }) => {
1337
- get: (options?: {
1338
- fetch?: RequestInit | undefined;
1339
- headers?: Record<string, unknown> | undefined;
1340
- query?: Record<string, unknown> | undefined;
1341
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1342
- 200: {
1343
- TemplateCampaigns: {
1344
- campaigns: {
1345
- id: string;
1346
- computeChainId: number;
1347
- distributionChainId: number;
1348
- campaignId: string;
1349
- type: string;
1350
- distributionType: import("@package/databases").DistributionType;
1351
- subType: number | null;
1352
- rewardTokenId: string;
1353
- amount: string;
1354
- opportunityId: string;
1355
- startTimestamp: bigint;
1356
- endTimestamp: bigint;
1357
- params: import("@prisma/client/runtime/client").JsonValue;
1358
- description: string | null;
1359
- pauseCompute: string | null;
1360
- dailyRewards: number;
1361
- apr: number;
1362
- creatorAddress: string;
1363
- manualOverrides: import("@package/databases").CampaignManualOverride[];
1364
- createdAt: Date;
1365
- rootCampaignId: string | null;
1366
- parentCampaignId: string | null;
1367
- }[];
1368
- } & {
1369
- id: string;
1370
- slug: string | null;
1371
- };
1372
- } & {
1373
- id: string;
1374
- slug: string | null;
1375
- groupId: string;
1376
- creatorId: string;
1377
- };
1378
- 422: {
1379
- type: "validation";
1380
- on: string;
1381
- summary?: string | undefined;
1382
- message?: string | undefined;
1383
- found?: unknown;
1384
- property?: string | undefined;
1385
- expected?: string | undefined;
1386
- };
1387
- }>>;
1388
- patch: (body: {
1389
- slug?: string | undefined;
1390
- campaignsToAdd?: string[] | undefined;
1391
- campaignsToRemove?: string[] | undefined;
1392
- }, options: {
1393
- fetch?: RequestInit | undefined;
1394
- headers: {
1395
- authorization: string;
1396
- };
1397
- query?: Record<string, unknown> | undefined;
1398
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1399
- 200: {
1400
- TemplateCampaigns: {
1401
- campaigns: {
1402
- id: string;
1403
- computeChainId: number;
1404
- distributionChainId: number;
1405
- campaignId: string;
1406
- type: string;
1407
- distributionType: import("@package/databases").DistributionType;
1408
- subType: number | null;
1409
- rewardTokenId: string;
1410
- amount: string;
1411
- opportunityId: string;
1412
- startTimestamp: bigint;
1413
- endTimestamp: bigint;
1414
- params: import("@prisma/client/runtime/client").JsonValue;
1415
- description: string | null;
1416
- pauseCompute: string | null;
1417
- dailyRewards: number;
1418
- apr: number;
1419
- creatorAddress: string;
1420
- manualOverrides: import("@package/databases").CampaignManualOverride[];
1421
- createdAt: Date;
1422
- rootCampaignId: string | null;
1423
- parentCampaignId: string | null;
1424
- }[];
1425
- } & {
1426
- id: string;
1427
- slug: string | null;
1428
- };
1429
- } & {
1430
- id: string;
1431
- slug: string | null;
1432
- groupId: string;
1433
- creatorId: string;
1434
- };
1435
- 422: {
1436
- type: "validation";
1437
- on: string;
1438
- summary?: string | undefined;
1439
- message?: string | undefined;
1440
- found?: unknown;
1441
- property?: string | undefined;
1442
- expected?: string | undefined;
1443
- };
1444
- }>>;
1445
- delete: (body: unknown, options: {
1446
- fetch?: RequestInit | undefined;
1447
- headers: {
1448
- authorization: string;
1449
- };
1450
- query?: Record<string, unknown> | undefined;
1451
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1452
- 200: {
1453
- id: string;
1454
- slug: string | null;
1455
- groupId: string;
1456
- creatorId: string;
1457
- };
1458
- 422: {
1459
- type: "validation";
1460
- on: string;
1461
- summary?: string | undefined;
1462
- message?: string | undefined;
1463
- found?: unknown;
1464
- property?: string | undefined;
1465
- expected?: string | undefined;
1466
- };
1467
- }>>;
1468
- "generate-payload": {
1469
- post: (body: {
1470
- creatorAddress: string;
1471
- rewardToken: string;
1472
- distributionChainId: number;
1473
- startTimestamp: number;
1474
- endTimestamp: number;
1475
- campaignsParams: {
1476
- [x: string]: {
1477
- amount: string;
1478
- }[];
1479
- };
1480
- }, options?: {
1481
- fetch?: RequestInit | undefined;
1482
- headers?: Record<string, unknown> | undefined;
1483
- query?: Record<string, unknown> | undefined;
1484
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1485
- 200: import("../modules/v4/campaignBatch/campaignBatch.model").SafePayload | null;
1486
- 422: {
1487
- type: "validation";
1488
- on: string;
1489
- summary?: string | undefined;
1490
- message?: string | undefined;
1491
- found?: unknown;
1492
- property?: string | undefined;
1493
- expected?: string | undefined;
1494
- };
1495
- }>>;
1496
- };
1497
- model: {
1498
- get: (options?: {
1499
- fetch?: RequestInit | undefined;
1500
- headers?: Record<string, unknown> | undefined;
1501
- query?: Record<string, unknown> | undefined;
1502
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1503
- 200: {
1504
- creatorAddress: string;
1505
- rewardToken: string;
1506
- distributionChainId: number;
1507
- startTimestamp: number;
1508
- endTimestamp: number;
1509
- campaignsParams: {
1510
- [x: string]: {
1511
- amount: string;
1512
- }[];
1513
- };
1514
- };
1515
- 422: {
1516
- type: "validation";
1517
- on: string;
1518
- summary?: string | undefined;
1519
- message?: string | undefined;
1520
- found?: unknown;
1521
- property?: string | undefined;
1522
- expected?: string | undefined;
1523
- };
1524
- }>>;
1525
- };
1526
- "simulate-payload": {
1527
- post: (body: {
1528
- creatorAddress: string;
1529
- rewardToken: string;
1530
- distributionChainId: number;
1531
- startTimestamp: number;
1532
- endTimestamp: number;
1533
- campaignsParams: {
1534
- [x: string]: {
1535
- amount: string;
1536
- }[];
1537
- };
1538
- }, options?: {
1539
- fetch?: RequestInit | undefined;
1540
- headers?: Record<string, unknown> | undefined;
1541
- query?: Record<string, unknown> | undefined;
1542
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1543
- 200: unknown[];
1544
- 422: {
1545
- type: "validation";
1546
- on: string;
1547
- summary?: string | undefined;
1548
- message?: string | undefined;
1549
- found?: unknown;
1550
- property?: string | undefined;
1551
- expected?: string | undefined;
1552
- };
1553
- }>>;
1554
- };
1555
- }) & {
1556
- get: (options: {
1557
- fetch?: RequestInit | undefined;
1558
- headers?: Record<string, unknown> | undefined;
1559
- query: {
1560
- creatorId: string;
1561
- };
1562
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1563
- 200: {
1564
- id: string;
1565
- slug: string | null;
1566
- groupId: string;
1567
- creatorId: string;
1568
- }[];
1569
- 422: {
1570
- type: "validation";
1571
- on: string;
1572
- summary?: string | undefined;
1573
- message?: string | undefined;
1574
- found?: unknown;
1575
- property?: string | undefined;
1576
- expected?: string | undefined;
1577
- };
1578
- }>>;
1579
- post: (body: {
1580
- slug?: string | undefined;
1581
- templateCampaigns: string[];
1582
- creatorId: string;
1583
- }, options: {
1584
- fetch?: RequestInit | undefined;
1585
- headers: {
1586
- authorization: string;
1587
- };
1588
- query?: Record<string, unknown> | undefined;
1589
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1590
- 200: {
1591
- id: string;
1592
- slug: string | null;
1593
- groupId: string;
1594
- creatorId: string;
1595
- };
1596
- 422: {
1597
- type: "validation";
1598
- on: string;
1599
- summary?: string | undefined;
1600
- message?: string | undefined;
1601
- found?: unknown;
1602
- property?: string | undefined;
1603
- expected?: string | undefined;
1604
- };
1605
- }>>;
1606
- };
1607
1334
  "campaign-status": ((params: {
1608
1335
  campaignId: string | number;
1609
1336
  }) => {
@@ -5172,7 +4899,7 @@ declare const eden: {
5172
4899
  headers?: Record<string, unknown> | undefined;
5173
4900
  query?: Record<string, unknown> | undefined;
5174
4901
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5175
- 200: import("../modules/v4/campaignBatch/campaignBatch.model").SafePayload | null;
4902
+ 200: import("../modules/v4/safePayload/safePayload.model").SafePayload | null;
5176
4903
  422: {
5177
4904
  type: "validation";
5178
4905
  on: string;
@@ -7209,7 +6936,7 @@ declare const eden: {
7209
6936
  extend?: boolean | undefined;
7210
6937
  };
7211
6938
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7212
- 200: import("../modules/v4/campaignBatch/campaignBatch.model").SafePayload | null;
6939
+ 200: import("../modules/v4/safePayload/safePayload.model").SafePayload | null;
7213
6940
  422: {
7214
6941
  type: "validation";
7215
6942
  on: string;
@@ -7230,7 +6957,7 @@ declare const eden: {
7230
6957
  extend?: boolean | undefined;
7231
6958
  };
7232
6959
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7233
- 200: import("../modules/v4/campaignBatch/campaignBatch.model").SafePayload | null;
6960
+ 200: import("../modules/v4/safePayload/safePayload.model").SafePayload | null;
7234
6961
  422: {
7235
6962
  type: "validation";
7236
6963
  on: string;
@@ -236,6 +236,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
236
236
  computeSettings: {
237
237
  maxRewards: string;
238
238
  };
239
+ } | {
240
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
241
+ computeSettings?: {
242
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
243
+ } | undefined;
239
244
  } | {
240
245
  computeMethod: import("@package/resources/enums").logarithmic;
241
246
  computeSettings?: {
@@ -522,6 +527,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
522
527
  computeSettings: {
523
528
  maxRewards: string;
524
529
  };
530
+ } | {
531
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
532
+ computeSettings?: {
533
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
534
+ } | undefined;
525
535
  } | {
526
536
  computeMethod: import("@package/resources/enums").logarithmic;
527
537
  computeSettings?: {
@@ -812,6 +822,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
812
822
  computeSettings: {
813
823
  maxRewards: string;
814
824
  };
825
+ } | {
826
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
827
+ computeSettings?: {
828
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
829
+ } | undefined;
815
830
  } | {
816
831
  computeMethod: import("@package/resources/enums").logarithmic;
817
832
  computeSettings?: {
@@ -1098,6 +1113,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
1098
1113
  computeSettings: {
1099
1114
  maxRewards: string;
1100
1115
  };
1116
+ } | {
1117
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
1118
+ computeSettings?: {
1119
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
1120
+ } | undefined;
1101
1121
  } | {
1102
1122
  computeMethod: import("@package/resources/enums").logarithmic;
1103
1123
  computeSettings?: {
@@ -1386,6 +1406,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
1386
1406
  computeSettings: {
1387
1407
  maxRewards: string;
1388
1408
  };
1409
+ } | {
1410
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
1411
+ computeSettings?: {
1412
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
1413
+ } | undefined;
1389
1414
  } | {
1390
1415
  computeMethod: import("@package/resources/enums").logarithmic;
1391
1416
  computeSettings?: {
@@ -1672,6 +1697,11 @@ export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCam
1672
1697
  computeSettings: {
1673
1698
  maxRewards: string;
1674
1699
  };
1700
+ } | {
1701
+ computeMethod: import("@package/resources/enums").earlyBirdBoost;
1702
+ computeSettings?: {
1703
+ decayType?: "exponential" | "linear" | "logarithmic" | undefined;
1704
+ } | undefined;
1675
1705
  } | {
1676
1706
  computeMethod: import("@package/resources/enums").logarithmic;
1677
1707
  computeSettings?: {