@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
@@ -605,7 +605,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
605
605
  };
606
606
  };
607
607
  } & {
608
- campaignsToProcess: {
608
+ "campaigns-to-process": {
609
609
  index: {
610
610
  get: {
611
611
  body: unknown;
@@ -627,7 +627,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
627
627
  };
628
628
  };
629
629
  } & {
630
- campaignsToProcess: {
630
+ "campaigns-to-process": {
631
631
  count: {
632
632
  get: {
633
633
  body: unknown;
@@ -643,7 +643,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
643
643
  };
644
644
  };
645
645
  } & {
646
- campaignsToProcess: {
646
+ "campaigns-to-process": {
647
647
  index: {
648
648
  post: {
649
649
  body: unknown;
@@ -942,35 +942,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
942
942
  };
943
943
  } & {
944
944
  rewards: {
945
- pendings: {
946
- post: {
947
- body: {
948
- distributionChainId: number;
949
- campaignId: string;
950
- root: string;
951
- rewardToken: string;
952
- toUpdate: {
953
- auxiliaryData1?: string | undefined;
954
- auxiliaryData2?: string | undefined;
955
- reason: string;
956
- pending: string;
957
- recipient: string;
958
- }[];
959
- toCreate: {
960
- auxiliaryData1?: string | undefined;
961
- auxiliaryData2?: string | undefined;
962
- reason: string;
963
- pending: string;
964
- recipient: string;
965
- }[];
966
- };
967
- params: {};
968
- query: unknown;
969
- headers: {
970
- authorization: string;
971
- };
972
- response: {
973
- 200: boolean;
945
+ engine: {
946
+ pendings: {
947
+ post: {
948
+ body: {
949
+ distributionChainId: number;
950
+ campaignId: string;
951
+ root: string;
952
+ rewardToken: string;
953
+ toUpdate: {
954
+ auxiliaryData1?: string | undefined;
955
+ auxiliaryData2?: string | undefined;
956
+ reason: string;
957
+ pending: string;
958
+ recipient: string;
959
+ }[];
960
+ toCreate: {
961
+ auxiliaryData1?: string | undefined;
962
+ auxiliaryData2?: string | undefined;
963
+ reason: string;
964
+ pending: string;
965
+ recipient: string;
966
+ }[];
967
+ };
968
+ params: {};
969
+ query: unknown;
970
+ headers: {
971
+ authorization: string;
972
+ };
973
+ response: {
974
+ 200: boolean;
975
+ };
974
976
  };
975
977
  };
976
978
  };
@@ -1278,27 +1280,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1278
1280
  v4: {
1279
1281
  blacklists: {
1280
1282
  index: {
1281
- get: {
1282
- body: unknown;
1283
- params: {};
1284
- query: unknown;
1285
- headers: unknown;
1286
- response: {
1287
- 200: {
1288
- id: string;
1289
- chainId: number;
1290
- poolAddress: string;
1291
- userAddress: string;
1292
- arrestTimestamp: bigint;
1293
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1294
- }[];
1295
- };
1296
- };
1297
- };
1298
- };
1299
- } & {
1300
- blacklists: {
1301
- all: {
1302
1283
  get: {
1303
1284
  body: unknown;
1304
1285
  params: {};
@@ -1725,7 +1706,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1725
1706
  } & {
1726
1707
  v4: {
1727
1708
  roots: {
1728
- timestamps: {
1709
+ index: {
1729
1710
  get: {
1730
1711
  body: unknown;
1731
1712
  params: {};
@@ -1748,7 +1729,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1748
1729
  };
1749
1730
  } & {
1750
1731
  roots: {
1751
- index: {
1732
+ live: {
1752
1733
  get: {
1753
1734
  body: unknown;
1754
1735
  params: {};
@@ -1767,7 +1748,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1767
1748
  };
1768
1749
  } & {
1769
1750
  v4: {
1770
- participate: {
1751
+ interaction: {
1771
1752
  targets: {
1772
1753
  get: {
1773
1754
  body: unknown;
@@ -1779,13 +1760,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1779
1760
  };
1780
1761
  headers: unknown;
1781
1762
  response: {
1782
- 200: import("../../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1763
+ 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1783
1764
  };
1784
1765
  };
1785
1766
  };
1786
1767
  };
1787
1768
  } & {
1788
- participate: {
1769
+ interaction: {
1789
1770
  protocols: {
1790
1771
  get: {
1791
1772
  body: unknown;
@@ -1808,7 +1789,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1808
1789
  };
1809
1790
  };
1810
1791
  } & {
1811
- participate: {
1792
+ interaction: {
1812
1793
  quote: {
1813
1794
  get: {
1814
1795
  body: unknown;
@@ -1834,7 +1815,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1834
1815
  };
1835
1816
  };
1836
1817
  } & {
1837
- participate: {
1818
+ interaction: {
1838
1819
  transaction: {
1839
1820
  get: {
1840
1821
  body: unknown;
@@ -2056,31 +2037,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2056
2037
  };
2057
2038
  } & {
2058
2039
  v4: {
2059
- dynamicData: {
2060
- chainId: {
2061
- ":chainId": {
2062
- token: {
2063
- ":tokenAddress": {
2064
- get: {
2065
- body: unknown;
2066
- params: {
2067
- chainId: number;
2068
- tokenAddress: string;
2069
- };
2070
- query: unknown;
2071
- headers: {
2072
- authorization: string;
2073
- };
2074
- response: {
2075
- 200: {
2076
- tvl: number;
2077
- totalSupply: number;
2078
- cardName: string;
2079
- blacklistedSupply: number;
2080
- priceTargetToken: number;
2081
- };
2082
- };
2083
- };
2040
+ "dynamic-data": {
2041
+ index: {
2042
+ get: {
2043
+ body: unknown;
2044
+ params: {};
2045
+ query: {
2046
+ chainId: number;
2047
+ tokenAddress: string;
2048
+ };
2049
+ headers: {
2050
+ authorization: string;
2051
+ };
2052
+ response: {
2053
+ 200: {
2054
+ tvl: number;
2055
+ totalSupply: number;
2056
+ cardName: string;
2057
+ blacklistedSupply: number;
2058
+ priceTargetToken: number;
2084
2059
  };
2085
2060
  };
2086
2061
  };
@@ -2089,11 +2064,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2089
2064
  };
2090
2065
  } & {
2091
2066
  v4: {
2092
- campaignStatus: {
2067
+ "campaign-status": {
2093
2068
  engine: {
2094
- post: {
2095
- body: {
2096
- status: {
2069
+ ":campaignId": {
2070
+ put: {
2071
+ body: {
2097
2072
  value: "SUCCESS";
2098
2073
  computedUntil: number;
2099
2074
  } | {
@@ -2107,90 +2082,74 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2107
2082
  details: string;
2108
2083
  value: "FAILED";
2109
2084
  };
2110
- campaignId: string;
2111
- distributionChain: number;
2112
- };
2113
- params: {};
2114
- query: unknown;
2115
- headers: {
2116
- authorization: string;
2117
- };
2118
- response: {
2119
- 200: void;
2085
+ params: {
2086
+ campaignId: string;
2087
+ };
2088
+ query: unknown;
2089
+ headers: {
2090
+ authorization: string;
2091
+ };
2092
+ response: {
2093
+ 200: void;
2094
+ };
2120
2095
  };
2121
2096
  };
2122
2097
  };
2123
2098
  };
2124
2099
  } & {
2125
- campaignStatus: {
2126
- index: {
2127
- get: {
2128
- body: unknown;
2129
- params: {};
2130
- query: unknown;
2131
- headers: unknown;
2132
- response: {
2133
- 200: {
2134
- error: string;
2135
- details: import("database/api/.generated/runtime/library").JsonValue;
2136
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2100
+ "campaign-status": {
2101
+ engine: {
2102
+ overlaps: {
2103
+ get: {
2104
+ body: unknown;
2105
+ params: {};
2106
+ query: {
2137
2107
  campaignId: string;
2138
- computedUntil: bigint;
2139
- processingStarted: bigint;
2140
- }[];
2108
+ distributionChain: number;
2109
+ };
2110
+ headers: {
2111
+ authorization: string;
2112
+ };
2113
+ response: {
2114
+ 200: boolean;
2115
+ };
2141
2116
  };
2142
2117
  };
2143
2118
  };
2144
2119
  };
2145
2120
  } & {
2146
- campaignStatus: {
2147
- status: {
2121
+ "campaign-status": {
2122
+ index: {
2148
2123
  get: {
2149
2124
  body: unknown;
2150
2125
  params: {};
2151
2126
  query: {
2152
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
2127
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2128
+ computeChainId?: number | undefined;
2153
2129
  };
2154
2130
  headers: unknown;
2155
2131
  response: {
2156
- 200: ({
2157
- Campaign: {
2158
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2159
- id: string;
2160
- params: import("database/api/.generated/runtime/library").JsonValue;
2161
- subType: number | null;
2162
- startTimestamp: bigint;
2163
- endTimestamp: bigint;
2164
- computeChainId: number;
2165
- distributionChainId: number;
2166
- campaignId: string;
2167
- rewardTokenId: string;
2168
- amount: string;
2169
- opportunityId: string;
2170
- creatorAddress: string;
2171
- };
2172
- } & {
2132
+ 200: {
2173
2133
  error: string;
2174
2134
  details: import("database/api/.generated/runtime/library").JsonValue;
2175
2135
  status: import("../../../database/api/.generated").$Enums.RunStatus;
2176
2136
  campaignId: string;
2177
2137
  computedUntil: bigint;
2178
2138
  processingStarted: bigint;
2179
- })[];
2139
+ }[];
2180
2140
  };
2181
2141
  };
2182
2142
  };
2183
2143
  };
2184
2144
  } & {
2185
- campaignStatus: {
2186
- unique: {
2145
+ "campaign-status": {
2146
+ ":campaignId": {
2187
2147
  get: {
2188
2148
  body: unknown;
2189
- params: {};
2190
- query: {
2149
+ params: {
2191
2150
  campaignId: string;
2192
- distributionChain: number;
2193
2151
  };
2152
+ query: unknown;
2194
2153
  headers: unknown;
2195
2154
  response: {
2196
2155
  200: {
@@ -2205,52 +2164,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2205
2164
  };
2206
2165
  };
2207
2166
  };
2208
- } & {
2209
- campaignStatus: {
2210
- computeChain: {
2211
- ":chainId": {
2212
- get: {
2213
- body: unknown;
2214
- params: {
2215
- chainId: number;
2216
- };
2217
- query: unknown;
2218
- headers: unknown;
2219
- response: {
2220
- 200: {
2221
- error: string;
2222
- details: import("database/api/.generated/runtime/library").JsonValue;
2223
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2224
- campaignId: string;
2225
- computedUntil: bigint;
2226
- processingStarted: bigint;
2227
- }[];
2228
- };
2229
- };
2230
- };
2231
- };
2232
- };
2233
- } & {
2234
- campaignStatus: {
2235
- engine: {
2236
- overlaps: {
2237
- get: {
2238
- body: unknown;
2239
- params: {};
2240
- query: {
2241
- campaignId: string;
2242
- distributionChain: number;
2243
- };
2244
- headers: {
2245
- authorization: string;
2246
- };
2247
- response: {
2248
- 200: boolean;
2249
- };
2250
- };
2251
- };
2252
- };
2253
- };
2254
2167
  };
2255
2168
  } & {
2256
2169
  index: {