@merkl/api 0.10.137 → 0.10.139

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 (65) hide show
  1. package/dist/src/eden/index.d.ts +291 -520
  2. package/dist/src/index.d.ts +99 -186
  3. package/dist/src/index.js +1 -1
  4. package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.js +21 -7
  5. package/dist/src/libs/deprecated-merklv3/index.js +1 -1
  6. package/dist/src/libs/positions/compound/index.d.ts +0 -2
  7. package/dist/src/libs/positions/compound/index.js +3 -6
  8. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +0 -21
  9. package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -2
  10. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +0 -8
  11. package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -4
  12. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +1 -9
  13. package/dist/src/modules/v4/blacklist/blacklist.service.js +1 -4
  14. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -3
  15. package/dist/src/modules/v4/campaign/campaign.controller.js +8 -6
  16. package/dist/src/modules/v4/campaign/campaign.service.js +1 -2
  17. package/dist/src/modules/v4/chain/chain.controller.js +2 -1
  18. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +20 -26
  19. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +5 -5
  20. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  21. package/dist/src/modules/v4/{participate/participate.controller.d.ts → interaction/interaction.controller.d.ts} +6 -6
  22. package/dist/src/modules/v4/{participate/participate.controller.js → interaction/interaction.controller.js} +12 -13
  23. package/dist/src/modules/v4/{participate/participate.model.d.ts → interaction/interaction.model.d.ts} +12 -12
  24. package/dist/src/modules/v4/{participate/participate.model.js → interaction/interaction.model.js} +3 -3
  25. package/dist/src/modules/v4/{participate/participate.service.d.ts → interaction/interaction.service.d.ts} +5 -5
  26. package/dist/src/modules/v4/{participate/participate.service.js → interaction/interaction.service.js} +3 -3
  27. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +2 -2
  28. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -2
  29. package/dist/src/modules/v4/opportunity/opportunity.controller.js +5 -1
  30. package/dist/src/modules/v4/price/price.controller.js +3 -0
  31. package/dist/src/modules/v4/reward/reward.controller.d.ts +31 -29
  32. package/dist/src/modules/v4/reward/reward.controller.js +3 -3
  33. package/dist/src/modules/v4/reward/{rewardConvertor.service.d.ts → subservices/converter.d.ts} +2 -2
  34. package/dist/src/modules/v4/reward/{rewardConvertor.service.js → subservices/converter.js} +1 -1
  35. package/dist/src/modules/v4/router.d.ts +99 -186
  36. package/dist/src/modules/v4/router.js +2 -2
  37. package/dist/src/modules/v4/status/status.controller.d.ts +40 -102
  38. package/dist/src/modules/v4/status/status.controller.js +16 -22
  39. package/dist/src/modules/v4/status/status.model.d.ts +33 -26
  40. package/dist/src/modules/v4/status/status.model.js +9 -20
  41. package/dist/src/modules/v4/status/status.repository.d.ts +12 -42
  42. package/dist/src/modules/v4/status/status.repository.js +10 -22
  43. package/dist/src/modules/v4/status/status.service.d.ts +4 -36
  44. package/dist/src/modules/v4/status/status.service.js +9 -18
  45. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  46. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +1 -1
  47. package/dist/src/modules/v4/user/user.controller.js +3 -2
  48. package/dist/src/routes/v3/ERC20Campaigns.d.ts +99 -186
  49. package/dist/src/routes/v3/blacklist.d.ts +99 -186
  50. package/dist/src/routes/v3/campaigns.d.ts +99 -186
  51. package/dist/src/routes/v3/campaignsInfo.d.ts +99 -186
  52. package/dist/src/routes/v3/multiChainPositions.d.ts +99 -186
  53. package/dist/src/routes/v3/opportunity.d.ts +99 -186
  54. package/dist/src/routes/v3/positions.d.ts +99 -186
  55. package/dist/src/routes/v3/rewards.d.ts +99 -186
  56. package/dist/src/routes/v3/rewards.js +1 -1
  57. package/dist/src/routes/v3/updates.d.ts +99 -186
  58. package/dist/src/routes/v3/userRewards.d.ts +99 -186
  59. package/dist/src/routes/v3/userRewards.js +1 -1
  60. package/dist/tsconfig.package.tsbuildinfo +1 -1
  61. package/package.json +4 -5
  62. package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
  63. package/dist/src/modules/v4/apr/apr.repository.js +0 -1
  64. package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
  65. package/dist/src/modules/v4/tvl/tvl.repository.js +0 -1
@@ -521,7 +521,7 @@ declare const eden: {
521
521
  200: number;
522
522
  }>>;
523
523
  };
524
- campaignsToProcess: {
524
+ "campaigns-to-process": {
525
525
  index: {
526
526
  get: (options: {
527
527
  headers?: Record<string, unknown> | undefined;
@@ -781,36 +781,36 @@ declare const eden: {
781
781
  } | undefined;
782
782
  }>>;
783
783
  };
784
- };
785
- pendings: {
786
- post: (body: {
787
- distributionChainId: number;
788
- campaignId: string;
789
- root: string;
790
- rewardToken: string;
791
- toUpdate: {
792
- auxiliaryData1?: string | undefined;
793
- auxiliaryData2?: string | undefined;
794
- reason: string;
795
- pending: string;
796
- recipient: string;
797
- }[];
798
- toCreate: {
799
- auxiliaryData1?: string | undefined;
800
- auxiliaryData2?: string | undefined;
801
- reason: string;
802
- pending: string;
803
- recipient: string;
804
- }[];
805
- }, options: {
806
- headers: {
807
- authorization: string;
808
- };
809
- query?: Record<string, unknown> | undefined;
810
- fetch?: RequestInit | undefined;
811
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
812
- 200: boolean;
813
- }>>;
784
+ pendings: {
785
+ post: (body: {
786
+ distributionChainId: number;
787
+ campaignId: string;
788
+ root: string;
789
+ rewardToken: string;
790
+ toUpdate: {
791
+ auxiliaryData1?: string | undefined;
792
+ auxiliaryData2?: string | undefined;
793
+ reason: string;
794
+ pending: string;
795
+ recipient: string;
796
+ }[];
797
+ toCreate: {
798
+ auxiliaryData1?: string | undefined;
799
+ auxiliaryData2?: string | undefined;
800
+ reason: string;
801
+ pending: string;
802
+ recipient: string;
803
+ }[];
804
+ }, options: {
805
+ headers: {
806
+ authorization: string;
807
+ };
808
+ query?: Record<string, unknown> | undefined;
809
+ fetch?: RequestInit | undefined;
810
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
811
+ 200: boolean;
812
+ }>>;
813
+ };
814
814
  };
815
815
  count: {
816
816
  get: (options: {
@@ -1040,13 +1040,8 @@ declare const eden: {
1040
1040
  fetch?: RequestInit | undefined;
1041
1041
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1042
1042
  200: {
1043
- id: string;
1044
- chainId: number;
1045
- poolAddress: string;
1046
- userAddress: string;
1047
- arrestTimestamp: bigint;
1048
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1049
- }[];
1043
+ [x: string]: boolean;
1044
+ };
1050
1045
  }>>;
1051
1046
  post: (body: {
1052
1047
  reason?: string | undefined;
@@ -1070,17 +1065,6 @@ declare const eden: {
1070
1065
  };
1071
1066
  }>>;
1072
1067
  };
1073
- all: {
1074
- get: (options?: {
1075
- headers?: Record<string, unknown> | undefined;
1076
- query?: Record<string, unknown> | undefined;
1077
- fetch?: RequestInit | undefined;
1078
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1079
- 200: {
1080
- [x: string]: boolean;
1081
- };
1082
- }>>;
1083
- };
1084
1068
  check: ((params: {
1085
1069
  address: string | number;
1086
1070
  }) => {
@@ -1393,7 +1377,7 @@ declare const eden: {
1393
1377
  };
1394
1378
  };
1395
1379
  roots: {
1396
- timestamps: {
1380
+ index: {
1397
1381
  get: (options: {
1398
1382
  headers?: Record<string, unknown> | undefined;
1399
1383
  query: {
@@ -1411,7 +1395,7 @@ declare const eden: {
1411
1395
  }[];
1412
1396
  }>>;
1413
1397
  };
1414
- index: {
1398
+ live: {
1415
1399
  get: (options?: {
1416
1400
  headers?: Record<string, unknown> | undefined;
1417
1401
  query?: Record<string, unknown> | undefined;
@@ -1425,7 +1409,7 @@ declare const eden: {
1425
1409
  }>>;
1426
1410
  };
1427
1411
  };
1428
- participate: {
1412
+ interaction: {
1429
1413
  targets: {
1430
1414
  get: (options: {
1431
1415
  headers?: Record<string, unknown> | undefined;
@@ -1436,7 +1420,7 @@ declare const eden: {
1436
1420
  };
1437
1421
  fetch?: RequestInit | undefined;
1438
1422
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1439
- 200: import("../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1423
+ 200: import("../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1440
1424
  }>>;
1441
1425
  };
1442
1426
  protocols: {
@@ -1638,50 +1622,62 @@ declare const eden: {
1638
1622
  })) & {};
1639
1623
  })) & {};
1640
1624
  };
1641
- dynamicData: {
1642
- chainId: ((params: {
1643
- chainId: string | number;
1644
- }) => {
1645
- token: ((params: {
1646
- tokenAddress: string | number;
1647
- }) => {
1648
- get: (options: {
1649
- headers: {
1650
- authorization: string;
1651
- };
1652
- query?: Record<string, unknown> | undefined;
1653
- fetch?: RequestInit | undefined;
1654
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1655
- 200: {
1656
- tvl: number;
1657
- totalSupply: number;
1658
- cardName: string;
1659
- blacklistedSupply: number;
1660
- priceTargetToken: number;
1661
- };
1662
- }>>;
1663
- }) & {};
1664
- }) & {};
1665
- };
1666
- campaignStatus: {
1667
- engine: {
1668
- post: (body: {
1669
- status: {
1670
- value: "SUCCESS";
1671
- computedUntil: number;
1672
- } | {
1673
- value: "PROCESSING";
1674
- } | {
1675
- error: string;
1676
- details: string;
1677
- value: "SKIPPED";
1678
- } | {
1679
- error: string;
1680
- details: string;
1681
- value: "FAILED";
1625
+ "dynamic-data": {
1626
+ index: {
1627
+ get: (options: {
1628
+ headers: {
1629
+ authorization: string;
1630
+ };
1631
+ query: {
1632
+ chainId: number;
1633
+ tokenAddress: string;
1634
+ };
1635
+ fetch?: RequestInit | undefined;
1636
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1637
+ 200: {
1638
+ tvl: number;
1639
+ totalSupply: number;
1640
+ cardName: string;
1641
+ blacklistedSupply: number;
1642
+ priceTargetToken: number;
1682
1643
  };
1644
+ }>>;
1645
+ };
1646
+ };
1647
+ "campaign-status": ((params: {
1648
+ campaignId: string | number;
1649
+ }) => {
1650
+ get: (options?: {
1651
+ headers?: Record<string, unknown> | undefined;
1652
+ query?: Record<string, unknown> | undefined;
1653
+ fetch?: RequestInit | undefined;
1654
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1655
+ 200: {
1656
+ error: string;
1657
+ details: import("database/api/.generated/runtime/library").JsonValue;
1658
+ status: import("../../database/api/.generated").$Enums.RunStatus;
1683
1659
  campaignId: string;
1684
- distributionChain: number;
1660
+ computedUntil: bigint;
1661
+ processingStarted: bigint;
1662
+ };
1663
+ }>>;
1664
+ }) & {
1665
+ engine: ((params: {
1666
+ campaignId: string | number;
1667
+ }) => {
1668
+ put: (body: {
1669
+ value: "SUCCESS";
1670
+ computedUntil: number;
1671
+ } | {
1672
+ value: "PROCESSING";
1673
+ } | {
1674
+ error: string;
1675
+ details: string;
1676
+ value: "SKIPPED";
1677
+ } | {
1678
+ error: string;
1679
+ details: string;
1680
+ value: "FAILED";
1685
1681
  }, options: {
1686
1682
  headers: {
1687
1683
  authorization: string;
@@ -1691,6 +1687,7 @@ declare const eden: {
1691
1687
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1692
1688
  200: void;
1693
1689
  }>>;
1690
+ }) & {
1694
1691
  overlaps: {
1695
1692
  get: (options: {
1696
1693
  headers: {
@@ -1707,82 +1704,14 @@ declare const eden: {
1707
1704
  };
1708
1705
  };
1709
1706
  index: {
1710
- get: (options?: {
1711
- headers?: Record<string, unknown> | undefined;
1712
- query?: Record<string, unknown> | undefined;
1713
- fetch?: RequestInit | undefined;
1714
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1715
- 200: {
1716
- error: string;
1717
- details: import("database/api/.generated/runtime/library").JsonValue;
1718
- status: import("../../database/api/.generated").$Enums.RunStatus;
1719
- campaignId: string;
1720
- computedUntil: bigint;
1721
- processingStarted: bigint;
1722
- }[];
1723
- }>>;
1724
- };
1725
- status: {
1726
- get: (options: {
1727
- headers?: Record<string, unknown> | undefined;
1728
- query: {
1729
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
1730
- };
1731
- fetch?: RequestInit | undefined;
1732
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1733
- 200: ({
1734
- Campaign: {
1735
- type: import("../../database/api/.generated").$Enums.CampaignType;
1736
- id: string;
1737
- params: import("database/api/.generated/runtime/library").JsonValue;
1738
- subType: number | null;
1739
- startTimestamp: bigint;
1740
- endTimestamp: bigint;
1741
- computeChainId: number;
1742
- distributionChainId: number;
1743
- campaignId: string;
1744
- rewardTokenId: string;
1745
- amount: string;
1746
- opportunityId: string;
1747
- creatorAddress: string;
1748
- };
1749
- } & {
1750
- error: string;
1751
- details: import("database/api/.generated/runtime/library").JsonValue;
1752
- status: import("../../database/api/.generated").$Enums.RunStatus;
1753
- campaignId: string;
1754
- computedUntil: bigint;
1755
- processingStarted: bigint;
1756
- })[];
1757
- }>>;
1758
- };
1759
- unique: {
1760
1707
  get: (options: {
1761
1708
  headers?: Record<string, unknown> | undefined;
1762
1709
  query: {
1763
- campaignId: string;
1764
- distributionChain: number;
1710
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
1711
+ computeChainId?: number | undefined;
1765
1712
  };
1766
1713
  fetch?: RequestInit | undefined;
1767
1714
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1768
- 200: {
1769
- error: string;
1770
- details: import("database/api/.generated/runtime/library").JsonValue;
1771
- status: import("../../database/api/.generated").$Enums.RunStatus;
1772
- campaignId: string;
1773
- computedUntil: bigint;
1774
- processingStarted: bigint;
1775
- };
1776
- }>>;
1777
- };
1778
- computeChain: ((params: {
1779
- chainId: string | number;
1780
- }) => {
1781
- get: (options?: {
1782
- headers?: Record<string, unknown> | undefined;
1783
- query?: Record<string, unknown> | undefined;
1784
- fetch?: RequestInit | undefined;
1785
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1786
1715
  200: {
1787
1716
  error: string;
1788
1717
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -1792,7 +1721,7 @@ declare const eden: {
1792
1721
  processingStarted: bigint;
1793
1722
  }[];
1794
1723
  }>>;
1795
- }) & {};
1724
+ };
1796
1725
  };
1797
1726
  };
1798
1727
  };
@@ -2403,7 +2332,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2403
2332
  };
2404
2333
  };
2405
2334
  } & {
2406
- campaignsToProcess: {
2335
+ "campaigns-to-process": {
2407
2336
  index: {
2408
2337
  get: {
2409
2338
  body: unknown;
@@ -2425,7 +2354,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2425
2354
  };
2426
2355
  };
2427
2356
  } & {
2428
- campaignsToProcess: {
2357
+ "campaigns-to-process": {
2429
2358
  count: {
2430
2359
  get: {
2431
2360
  body: unknown;
@@ -2441,7 +2370,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2441
2370
  };
2442
2371
  };
2443
2372
  } & {
2444
- campaignsToProcess: {
2373
+ "campaigns-to-process": {
2445
2374
  index: {
2446
2375
  post: {
2447
2376
  body: unknown;
@@ -2740,35 +2669,37 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2740
2669
  };
2741
2670
  } & {
2742
2671
  rewards: {
2743
- pendings: {
2744
- post: {
2745
- body: {
2746
- distributionChainId: number;
2747
- campaignId: string;
2748
- root: string;
2749
- rewardToken: string;
2750
- toUpdate: {
2751
- auxiliaryData1?: string | undefined;
2752
- auxiliaryData2?: string | undefined;
2753
- reason: string;
2754
- pending: string;
2755
- recipient: string;
2756
- }[];
2757
- toCreate: {
2758
- auxiliaryData1?: string | undefined;
2759
- auxiliaryData2?: string | undefined;
2760
- reason: string;
2761
- pending: string;
2762
- recipient: string;
2763
- }[];
2764
- };
2765
- params: {};
2766
- query: unknown;
2767
- headers: {
2768
- authorization: string;
2769
- };
2770
- response: {
2771
- 200: boolean;
2672
+ engine: {
2673
+ pendings: {
2674
+ post: {
2675
+ body: {
2676
+ distributionChainId: number;
2677
+ campaignId: string;
2678
+ root: string;
2679
+ rewardToken: string;
2680
+ toUpdate: {
2681
+ auxiliaryData1?: string | undefined;
2682
+ auxiliaryData2?: string | undefined;
2683
+ reason: string;
2684
+ pending: string;
2685
+ recipient: string;
2686
+ }[];
2687
+ toCreate: {
2688
+ auxiliaryData1?: string | undefined;
2689
+ auxiliaryData2?: string | undefined;
2690
+ reason: string;
2691
+ pending: string;
2692
+ recipient: string;
2693
+ }[];
2694
+ };
2695
+ params: {};
2696
+ query: unknown;
2697
+ headers: {
2698
+ authorization: string;
2699
+ };
2700
+ response: {
2701
+ 200: boolean;
2702
+ };
2772
2703
  };
2773
2704
  };
2774
2705
  };
@@ -3083,29 +3014,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3083
3014
  headers: unknown;
3084
3015
  response: {
3085
3016
  200: {
3086
- id: string;
3087
- chainId: number;
3088
- poolAddress: string;
3089
- userAddress: string;
3090
- arrestTimestamp: bigint;
3091
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
3092
- }[];
3093
- };
3094
- };
3095
- };
3096
- };
3097
- } & {
3098
- blacklists: {
3099
- all: {
3100
- get: {
3101
- body: unknown;
3102
- params: {};
3103
- query: unknown;
3104
- headers: unknown;
3105
- response: {
3106
- 200: {
3107
- [x: string]: boolean;
3108
- };
3017
+ [x: string]: boolean;
3018
+ };
3109
3019
  };
3110
3020
  };
3111
3021
  };
@@ -3523,7 +3433,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3523
3433
  } & {
3524
3434
  v4: {
3525
3435
  roots: {
3526
- timestamps: {
3436
+ index: {
3527
3437
  get: {
3528
3438
  body: unknown;
3529
3439
  params: {};
@@ -3546,7 +3456,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3546
3456
  };
3547
3457
  } & {
3548
3458
  roots: {
3549
- index: {
3459
+ live: {
3550
3460
  get: {
3551
3461
  body: unknown;
3552
3462
  params: {};
@@ -3565,7 +3475,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3565
3475
  };
3566
3476
  } & {
3567
3477
  v4: {
3568
- participate: {
3478
+ interaction: {
3569
3479
  targets: {
3570
3480
  get: {
3571
3481
  body: unknown;
@@ -3577,13 +3487,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3577
3487
  };
3578
3488
  headers: unknown;
3579
3489
  response: {
3580
- 200: import("../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
3490
+ 200: import("../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
3581
3491
  };
3582
3492
  };
3583
3493
  };
3584
3494
  };
3585
3495
  } & {
3586
- participate: {
3496
+ interaction: {
3587
3497
  protocols: {
3588
3498
  get: {
3589
3499
  body: unknown;
@@ -3606,7 +3516,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3606
3516
  };
3607
3517
  };
3608
3518
  } & {
3609
- participate: {
3519
+ interaction: {
3610
3520
  quote: {
3611
3521
  get: {
3612
3522
  body: unknown;
@@ -3632,7 +3542,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3632
3542
  };
3633
3543
  };
3634
3544
  } & {
3635
- participate: {
3545
+ interaction: {
3636
3546
  transaction: {
3637
3547
  get: {
3638
3548
  body: unknown;
@@ -3854,31 +3764,25 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3854
3764
  };
3855
3765
  } & {
3856
3766
  v4: {
3857
- dynamicData: {
3858
- chainId: {
3859
- ":chainId": {
3860
- token: {
3861
- ":tokenAddress": {
3862
- get: {
3863
- body: unknown;
3864
- params: {
3865
- chainId: number;
3866
- tokenAddress: string;
3867
- };
3868
- query: unknown;
3869
- headers: {
3870
- authorization: string;
3871
- };
3872
- response: {
3873
- 200: {
3874
- tvl: number;
3875
- totalSupply: number;
3876
- cardName: string;
3877
- blacklistedSupply: number;
3878
- priceTargetToken: number;
3879
- };
3880
- };
3881
- };
3767
+ "dynamic-data": {
3768
+ index: {
3769
+ get: {
3770
+ body: unknown;
3771
+ params: {};
3772
+ query: {
3773
+ chainId: number;
3774
+ tokenAddress: string;
3775
+ };
3776
+ headers: {
3777
+ authorization: string;
3778
+ };
3779
+ response: {
3780
+ 200: {
3781
+ tvl: number;
3782
+ totalSupply: number;
3783
+ cardName: string;
3784
+ blacklistedSupply: number;
3785
+ priceTargetToken: number;
3882
3786
  };
3883
3787
  };
3884
3788
  };
@@ -3887,11 +3791,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3887
3791
  };
3888
3792
  } & {
3889
3793
  v4: {
3890
- campaignStatus: {
3794
+ "campaign-status": {
3891
3795
  engine: {
3892
- post: {
3893
- body: {
3894
- status: {
3796
+ ":campaignId": {
3797
+ put: {
3798
+ body: {
3895
3799
  value: "SUCCESS";
3896
3800
  computedUntil: number;
3897
3801
  } | {
@@ -3905,90 +3809,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3905
3809
  details: string;
3906
3810
  value: "FAILED";
3907
3811
  };
3908
- campaignId: string;
3909
- distributionChain: number;
3910
- };
3911
- params: {};
3912
- query: unknown;
3913
- headers: {
3914
- authorization: string;
3915
- };
3916
- response: {
3917
- 200: void;
3812
+ params: {
3813
+ campaignId: string;
3814
+ };
3815
+ query: unknown;
3816
+ headers: {
3817
+ authorization: string;
3818
+ };
3819
+ response: {
3820
+ 200: void;
3821
+ };
3918
3822
  };
3919
3823
  };
3920
3824
  };
3921
3825
  };
3922
3826
  } & {
3923
- campaignStatus: {
3924
- index: {
3925
- get: {
3926
- body: unknown;
3927
- params: {};
3928
- query: unknown;
3929
- headers: unknown;
3930
- response: {
3931
- 200: {
3932
- error: string;
3933
- details: import("database/api/.generated/runtime/library").JsonValue;
3934
- status: import("../../database/api/.generated").$Enums.RunStatus;
3827
+ "campaign-status": {
3828
+ engine: {
3829
+ overlaps: {
3830
+ get: {
3831
+ body: unknown;
3832
+ params: {};
3833
+ query: {
3935
3834
  campaignId: string;
3936
- computedUntil: bigint;
3937
- processingStarted: bigint;
3938
- }[];
3835
+ distributionChain: number;
3836
+ };
3837
+ headers: {
3838
+ authorization: string;
3839
+ };
3840
+ response: {
3841
+ 200: boolean;
3842
+ };
3939
3843
  };
3940
3844
  };
3941
3845
  };
3942
3846
  };
3943
3847
  } & {
3944
- campaignStatus: {
3945
- status: {
3848
+ "campaign-status": {
3849
+ index: {
3946
3850
  get: {
3947
3851
  body: unknown;
3948
3852
  params: {};
3949
3853
  query: {
3950
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
3854
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
3855
+ computeChainId?: number | undefined;
3951
3856
  };
3952
3857
  headers: unknown;
3953
3858
  response: {
3954
- 200: ({
3955
- Campaign: {
3956
- type: import("../../database/api/.generated").$Enums.CampaignType;
3957
- id: string;
3958
- params: import("database/api/.generated/runtime/library").JsonValue;
3959
- subType: number | null;
3960
- startTimestamp: bigint;
3961
- endTimestamp: bigint;
3962
- computeChainId: number;
3963
- distributionChainId: number;
3964
- campaignId: string;
3965
- rewardTokenId: string;
3966
- amount: string;
3967
- opportunityId: string;
3968
- creatorAddress: string;
3969
- };
3970
- } & {
3859
+ 200: {
3971
3860
  error: string;
3972
3861
  details: import("database/api/.generated/runtime/library").JsonValue;
3973
3862
  status: import("../../database/api/.generated").$Enums.RunStatus;
3974
3863
  campaignId: string;
3975
3864
  computedUntil: bigint;
3976
3865
  processingStarted: bigint;
3977
- })[];
3866
+ }[];
3978
3867
  };
3979
3868
  };
3980
3869
  };
3981
3870
  };
3982
3871
  } & {
3983
- campaignStatus: {
3984
- unique: {
3872
+ "campaign-status": {
3873
+ ":campaignId": {
3985
3874
  get: {
3986
3875
  body: unknown;
3987
- params: {};
3988
- query: {
3876
+ params: {
3989
3877
  campaignId: string;
3990
- distributionChain: number;
3991
3878
  };
3879
+ query: unknown;
3992
3880
  headers: unknown;
3993
3881
  response: {
3994
3882
  200: {
@@ -4003,52 +3891,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4003
3891
  };
4004
3892
  };
4005
3893
  };
4006
- } & {
4007
- campaignStatus: {
4008
- computeChain: {
4009
- ":chainId": {
4010
- get: {
4011
- body: unknown;
4012
- params: {
4013
- chainId: number;
4014
- };
4015
- query: unknown;
4016
- headers: unknown;
4017
- response: {
4018
- 200: {
4019
- error: string;
4020
- details: import("database/api/.generated/runtime/library").JsonValue;
4021
- status: import("../../database/api/.generated").$Enums.RunStatus;
4022
- campaignId: string;
4023
- computedUntil: bigint;
4024
- processingStarted: bigint;
4025
- }[];
4026
- };
4027
- };
4028
- };
4029
- };
4030
- };
4031
- } & {
4032
- campaignStatus: {
4033
- engine: {
4034
- overlaps: {
4035
- get: {
4036
- body: unknown;
4037
- params: {};
4038
- query: {
4039
- campaignId: string;
4040
- distributionChain: number;
4041
- };
4042
- headers: {
4043
- authorization: string;
4044
- };
4045
- response: {
4046
- 200: boolean;
4047
- };
4048
- };
4049
- };
4050
- };
4051
- };
4052
3894
  };
4053
3895
  }, {
4054
3896
  derive: {};
@@ -4579,7 +4421,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4579
4421
  200: number;
4580
4422
  }>>;
4581
4423
  };
4582
- campaignsToProcess: {
4424
+ "campaigns-to-process": {
4583
4425
  index: {
4584
4426
  get: (options: {
4585
4427
  headers?: Record<string, unknown> | undefined;
@@ -4839,36 +4681,36 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4839
4681
  } | undefined;
4840
4682
  }>>;
4841
4683
  };
4842
- };
4843
- pendings: {
4844
- post: (body: {
4845
- distributionChainId: number;
4846
- campaignId: string;
4847
- root: string;
4848
- rewardToken: string;
4849
- toUpdate: {
4850
- auxiliaryData1?: string | undefined;
4851
- auxiliaryData2?: string | undefined;
4852
- reason: string;
4853
- pending: string;
4854
- recipient: string;
4855
- }[];
4856
- toCreate: {
4857
- auxiliaryData1?: string | undefined;
4858
- auxiliaryData2?: string | undefined;
4859
- reason: string;
4860
- pending: string;
4861
- recipient: string;
4862
- }[];
4863
- }, options: {
4864
- headers: {
4865
- authorization: string;
4866
- };
4867
- query?: Record<string, unknown> | undefined;
4868
- fetch?: RequestInit | undefined;
4869
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4870
- 200: boolean;
4871
- }>>;
4684
+ pendings: {
4685
+ post: (body: {
4686
+ distributionChainId: number;
4687
+ campaignId: string;
4688
+ root: string;
4689
+ rewardToken: string;
4690
+ toUpdate: {
4691
+ auxiliaryData1?: string | undefined;
4692
+ auxiliaryData2?: string | undefined;
4693
+ reason: string;
4694
+ pending: string;
4695
+ recipient: string;
4696
+ }[];
4697
+ toCreate: {
4698
+ auxiliaryData1?: string | undefined;
4699
+ auxiliaryData2?: string | undefined;
4700
+ reason: string;
4701
+ pending: string;
4702
+ recipient: string;
4703
+ }[];
4704
+ }, options: {
4705
+ headers: {
4706
+ authorization: string;
4707
+ };
4708
+ query?: Record<string, unknown> | undefined;
4709
+ fetch?: RequestInit | undefined;
4710
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4711
+ 200: boolean;
4712
+ }>>;
4713
+ };
4872
4714
  };
4873
4715
  count: {
4874
4716
  get: (options: {
@@ -5098,13 +4940,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5098
4940
  fetch?: RequestInit | undefined;
5099
4941
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5100
4942
  200: {
5101
- id: string;
5102
- chainId: number;
5103
- poolAddress: string;
5104
- userAddress: string;
5105
- arrestTimestamp: bigint;
5106
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
5107
- }[];
4943
+ [x: string]: boolean;
4944
+ };
5108
4945
  }>>;
5109
4946
  post: (body: {
5110
4947
  reason?: string | undefined;
@@ -5128,17 +4965,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5128
4965
  };
5129
4966
  }>>;
5130
4967
  };
5131
- all: {
5132
- get: (options?: {
5133
- headers?: Record<string, unknown> | undefined;
5134
- query?: Record<string, unknown> | undefined;
5135
- fetch?: RequestInit | undefined;
5136
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5137
- 200: {
5138
- [x: string]: boolean;
5139
- };
5140
- }>>;
5141
- };
5142
4968
  check: ((params: {
5143
4969
  address: string | number;
5144
4970
  }) => {
@@ -5451,7 +5277,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5451
5277
  };
5452
5278
  };
5453
5279
  roots: {
5454
- timestamps: {
5280
+ index: {
5455
5281
  get: (options: {
5456
5282
  headers?: Record<string, unknown> | undefined;
5457
5283
  query: {
@@ -5469,7 +5295,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5469
5295
  }[];
5470
5296
  }>>;
5471
5297
  };
5472
- index: {
5298
+ live: {
5473
5299
  get: (options?: {
5474
5300
  headers?: Record<string, unknown> | undefined;
5475
5301
  query?: Record<string, unknown> | undefined;
@@ -5483,7 +5309,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5483
5309
  }>>;
5484
5310
  };
5485
5311
  };
5486
- participate: {
5312
+ interaction: {
5487
5313
  targets: {
5488
5314
  get: (options: {
5489
5315
  headers?: Record<string, unknown> | undefined;
@@ -5494,7 +5320,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5494
5320
  };
5495
5321
  fetch?: RequestInit | undefined;
5496
5322
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5497
- 200: import("../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
5323
+ 200: import("../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
5498
5324
  }>>;
5499
5325
  };
5500
5326
  protocols: {
@@ -5696,50 +5522,62 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5696
5522
  })) & {};
5697
5523
  })) & {};
5698
5524
  };
5699
- dynamicData: {
5700
- chainId: ((params: {
5701
- chainId: string | number;
5702
- }) => {
5703
- token: ((params: {
5704
- tokenAddress: string | number;
5705
- }) => {
5706
- get: (options: {
5707
- headers: {
5708
- authorization: string;
5709
- };
5710
- query?: Record<string, unknown> | undefined;
5711
- fetch?: RequestInit | undefined;
5712
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5713
- 200: {
5714
- tvl: number;
5715
- totalSupply: number;
5716
- cardName: string;
5717
- blacklistedSupply: number;
5718
- priceTargetToken: number;
5719
- };
5720
- }>>;
5721
- }) & {};
5722
- }) & {};
5723
- };
5724
- campaignStatus: {
5725
- engine: {
5726
- post: (body: {
5727
- status: {
5728
- value: "SUCCESS";
5729
- computedUntil: number;
5730
- } | {
5731
- value: "PROCESSING";
5732
- } | {
5733
- error: string;
5734
- details: string;
5735
- value: "SKIPPED";
5736
- } | {
5737
- error: string;
5738
- details: string;
5739
- value: "FAILED";
5525
+ "dynamic-data": {
5526
+ index: {
5527
+ get: (options: {
5528
+ headers: {
5529
+ authorization: string;
5740
5530
  };
5531
+ query: {
5532
+ chainId: number;
5533
+ tokenAddress: string;
5534
+ };
5535
+ fetch?: RequestInit | undefined;
5536
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5537
+ 200: {
5538
+ tvl: number;
5539
+ totalSupply: number;
5540
+ cardName: string;
5541
+ blacklistedSupply: number;
5542
+ priceTargetToken: number;
5543
+ };
5544
+ }>>;
5545
+ };
5546
+ };
5547
+ "campaign-status": ((params: {
5548
+ campaignId: string | number;
5549
+ }) => {
5550
+ get: (options?: {
5551
+ headers?: Record<string, unknown> | undefined;
5552
+ query?: Record<string, unknown> | undefined;
5553
+ fetch?: RequestInit | undefined;
5554
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5555
+ 200: {
5556
+ error: string;
5557
+ details: import("database/api/.generated/runtime/library").JsonValue;
5558
+ status: import("../../database/api/.generated").$Enums.RunStatus;
5741
5559
  campaignId: string;
5742
- distributionChain: number;
5560
+ computedUntil: bigint;
5561
+ processingStarted: bigint;
5562
+ };
5563
+ }>>;
5564
+ }) & {
5565
+ engine: ((params: {
5566
+ campaignId: string | number;
5567
+ }) => {
5568
+ put: (body: {
5569
+ value: "SUCCESS";
5570
+ computedUntil: number;
5571
+ } | {
5572
+ value: "PROCESSING";
5573
+ } | {
5574
+ error: string;
5575
+ details: string;
5576
+ value: "SKIPPED";
5577
+ } | {
5578
+ error: string;
5579
+ details: string;
5580
+ value: "FAILED";
5743
5581
  }, options: {
5744
5582
  headers: {
5745
5583
  authorization: string;
@@ -5749,6 +5587,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5749
5587
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5750
5588
  200: void;
5751
5589
  }>>;
5590
+ }) & {
5752
5591
  overlaps: {
5753
5592
  get: (options: {
5754
5593
  headers: {
@@ -5765,82 +5604,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5765
5604
  };
5766
5605
  };
5767
5606
  index: {
5768
- get: (options?: {
5769
- headers?: Record<string, unknown> | undefined;
5770
- query?: Record<string, unknown> | undefined;
5771
- fetch?: RequestInit | undefined;
5772
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5773
- 200: {
5774
- error: string;
5775
- details: import("database/api/.generated/runtime/library").JsonValue;
5776
- status: import("../../database/api/.generated").$Enums.RunStatus;
5777
- campaignId: string;
5778
- computedUntil: bigint;
5779
- processingStarted: bigint;
5780
- }[];
5781
- }>>;
5782
- };
5783
- status: {
5784
5607
  get: (options: {
5785
5608
  headers?: Record<string, unknown> | undefined;
5786
5609
  query: {
5787
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
5610
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
5611
+ computeChainId?: number | undefined;
5788
5612
  };
5789
5613
  fetch?: RequestInit | undefined;
5790
5614
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5791
- 200: ({
5792
- Campaign: {
5793
- type: import("../../database/api/.generated").$Enums.CampaignType;
5794
- id: string;
5795
- params: import("database/api/.generated/runtime/library").JsonValue;
5796
- subType: number | null;
5797
- startTimestamp: bigint;
5798
- endTimestamp: bigint;
5799
- computeChainId: number;
5800
- distributionChainId: number;
5801
- campaignId: string;
5802
- rewardTokenId: string;
5803
- amount: string;
5804
- opportunityId: string;
5805
- creatorAddress: string;
5806
- };
5807
- } & {
5808
- error: string;
5809
- details: import("database/api/.generated/runtime/library").JsonValue;
5810
- status: import("../../database/api/.generated").$Enums.RunStatus;
5811
- campaignId: string;
5812
- computedUntil: bigint;
5813
- processingStarted: bigint;
5814
- })[];
5815
- }>>;
5816
- };
5817
- unique: {
5818
- get: (options: {
5819
- headers?: Record<string, unknown> | undefined;
5820
- query: {
5821
- campaignId: string;
5822
- distributionChain: number;
5823
- };
5824
- fetch?: RequestInit | undefined;
5825
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5826
- 200: {
5827
- error: string;
5828
- details: import("database/api/.generated/runtime/library").JsonValue;
5829
- status: import("../../database/api/.generated").$Enums.RunStatus;
5830
- campaignId: string;
5831
- computedUntil: bigint;
5832
- processingStarted: bigint;
5833
- };
5834
- }>>;
5835
- };
5836
- computeChain: ((params: {
5837
- chainId: string | number;
5838
- }) => {
5839
- get: (options?: {
5840
- headers?: Record<string, unknown> | undefined;
5841
- query?: Record<string, unknown> | undefined;
5842
- fetch?: RequestInit | undefined;
5843
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5844
5615
  200: {
5845
5616
  error: string;
5846
5617
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -5850,7 +5621,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5850
5621
  processingStarted: bigint;
5851
5622
  }[];
5852
5623
  }>>;
5853
- }) & {};
5624
+ };
5854
5625
  };
5855
5626
  };
5856
5627
  };