@merkl/api 0.10.138 → 0.10.140

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) 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/deprecated-merklv3/index.js +1 -1
  5. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +0 -21
  6. package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -2
  7. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +0 -8
  8. package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -4
  9. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +1 -9
  10. package/dist/src/modules/v4/blacklist/blacklist.service.js +1 -4
  11. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -3
  12. package/dist/src/modules/v4/campaign/campaign.controller.js +8 -6
  13. package/dist/src/modules/v4/campaign/campaign.service.js +1 -2
  14. package/dist/src/modules/v4/chain/chain.controller.js +2 -1
  15. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +20 -26
  16. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +5 -5
  17. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  18. package/dist/src/modules/v4/{participate/participate.controller.d.ts → interaction/interaction.controller.d.ts} +6 -6
  19. package/dist/src/modules/v4/{participate/participate.controller.js → interaction/interaction.controller.js} +12 -13
  20. package/dist/src/modules/v4/{participate/participate.model.d.ts → interaction/interaction.model.d.ts} +12 -12
  21. package/dist/src/modules/v4/{participate/participate.model.js → interaction/interaction.model.js} +3 -3
  22. package/dist/src/modules/v4/{participate/participate.service.d.ts → interaction/interaction.service.d.ts} +5 -5
  23. package/dist/src/modules/v4/{participate/participate.service.js → interaction/interaction.service.js} +3 -3
  24. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +2 -2
  25. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -2
  26. package/dist/src/modules/v4/opportunity/opportunity.controller.js +5 -1
  27. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +28 -2
  28. package/dist/src/modules/v4/opportunity/opportunity.repository.js +16 -1
  29. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +2 -1
  30. package/dist/src/modules/v4/opportunity/opportunity.service.js +30 -0
  31. package/dist/src/modules/v4/opportunity/subservices/getClammMetadata.service.js +1 -1
  32. package/dist/src/modules/v4/opportunity/subservices/getDolomiteMetadata.service.js +1 -1
  33. package/dist/src/modules/v4/opportunity/subservices/getErc20SnapshotMetadata.service.js +1 -1
  34. package/dist/src/modules/v4/opportunity/subservices/getJsonAirDropMetadata.service.js +3 -3
  35. package/dist/src/modules/v4/opportunity/subservices/getMorphoMetadata.service.js +2 -2
  36. package/dist/src/modules/v4/opportunity/subservices/getRadiantMetadata.service.js +1 -1
  37. package/dist/src/modules/v4/opportunity/subservices/getSiloMetadata.service.js +1 -1
  38. package/dist/src/modules/v4/price/price.controller.js +3 -0
  39. package/dist/src/modules/v4/reward/reward.controller.d.ts +31 -29
  40. package/dist/src/modules/v4/reward/reward.controller.js +3 -3
  41. package/dist/src/modules/v4/reward/{rewardConvertor.service.d.ts → subservices/converter.d.ts} +2 -2
  42. package/dist/src/modules/v4/reward/{rewardConvertor.service.js → subservices/converter.js} +1 -1
  43. package/dist/src/modules/v4/router.d.ts +99 -186
  44. package/dist/src/modules/v4/router.js +2 -2
  45. package/dist/src/modules/v4/status/status.controller.d.ts +40 -102
  46. package/dist/src/modules/v4/status/status.controller.js +16 -22
  47. package/dist/src/modules/v4/status/status.model.d.ts +33 -26
  48. package/dist/src/modules/v4/status/status.model.js +9 -20
  49. package/dist/src/modules/v4/status/status.repository.d.ts +12 -42
  50. package/dist/src/modules/v4/status/status.repository.js +10 -22
  51. package/dist/src/modules/v4/status/status.service.d.ts +4 -36
  52. package/dist/src/modules/v4/status/status.service.js +9 -18
  53. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  54. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +1 -1
  55. package/dist/src/modules/v4/user/user.controller.js +3 -2
  56. package/dist/src/routes/v3/ERC20Campaigns.d.ts +99 -186
  57. package/dist/src/routes/v3/blacklist.d.ts +99 -186
  58. package/dist/src/routes/v3/campaigns.d.ts +99 -186
  59. package/dist/src/routes/v3/campaignsInfo.d.ts +99 -186
  60. package/dist/src/routes/v3/multiChainPositions.d.ts +99 -186
  61. package/dist/src/routes/v3/opportunity.d.ts +99 -186
  62. package/dist/src/routes/v3/positions.d.ts +99 -186
  63. package/dist/src/routes/v3/rewards.d.ts +99 -186
  64. package/dist/src/routes/v3/rewards.js +1 -1
  65. package/dist/src/routes/v3/updates.d.ts +99 -186
  66. package/dist/src/routes/v3/userRewards.d.ts +99 -186
  67. package/dist/src/routes/v3/userRewards.js +1 -1
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +1 -2
  70. package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
  71. package/dist/src/modules/v4/apr/apr.repository.js +0 -1
  72. package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
  73. package/dist/src/modules/v4/tvl/tvl.repository.js +0 -1
@@ -53,11 +53,11 @@ export const UserController = new Elysia({ prefix: "/users", detail: { tags: ["U
53
53
  // ─── Create A User ───────────────────────────────────────────────────
54
54
  .post("/", async ({ body }) => {
55
55
  return await UserService.create(body);
56
- }, { headers: AuthorizationHeadersDto, body: UserDto, beforeHandle: BackOfficeGuard })
56
+ }, { headers: AuthorizationHeadersDto, body: UserDto, beforeHandle: BackOfficeGuard, detail: { hide: true } })
57
57
  // ─── Sync Creator Tags with Engine DB ─────────────────────────────────
58
58
  .post("/sync", async () => {
59
59
  return await UserService.syncTags();
60
- }, { headers: AuthorizationHeadersDto, beforeHandle: BackOfficeGuard })
60
+ }, { headers: AuthorizationHeadersDto, beforeHandle: BackOfficeGuard, detail: { hide: true } })
61
61
  // ─── Update User's Tags ──────────────────────────────────────────────
62
62
  .patch("/:address/tags", async ({ params, body }) => {
63
63
  return await UserService.updateTags(params.address, body.tags);
@@ -66,4 +66,5 @@ export const UserController = new Elysia({ prefix: "/users", detail: { tags: ["U
66
66
  params: UserUniqueDto,
67
67
  body: UpdateUserTagsDto,
68
68
  beforeHandle: BackOfficeGuard,
69
+ detail: { hide: true },
69
70
  });
@@ -606,7 +606,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
606
606
  };
607
607
  };
608
608
  } & {
609
- campaignsToProcess: {
609
+ "campaigns-to-process": {
610
610
  index: {
611
611
  get: {
612
612
  body: unknown;
@@ -628,7 +628,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
628
628
  };
629
629
  };
630
630
  } & {
631
- campaignsToProcess: {
631
+ "campaigns-to-process": {
632
632
  count: {
633
633
  get: {
634
634
  body: unknown;
@@ -644,7 +644,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
644
644
  };
645
645
  };
646
646
  } & {
647
- campaignsToProcess: {
647
+ "campaigns-to-process": {
648
648
  index: {
649
649
  post: {
650
650
  body: unknown;
@@ -943,35 +943,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
943
943
  };
944
944
  } & {
945
945
  rewards: {
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;
946
+ engine: {
947
+ pendings: {
948
+ post: {
949
+ body: {
950
+ distributionChainId: number;
951
+ campaignId: string;
952
+ root: string;
953
+ rewardToken: string;
954
+ toUpdate: {
955
+ auxiliaryData1?: string | undefined;
956
+ auxiliaryData2?: string | undefined;
957
+ reason: string;
958
+ pending: string;
959
+ recipient: string;
960
+ }[];
961
+ toCreate: {
962
+ auxiliaryData1?: string | undefined;
963
+ auxiliaryData2?: string | undefined;
964
+ reason: string;
965
+ pending: string;
966
+ recipient: string;
967
+ }[];
968
+ };
969
+ params: {};
970
+ query: unknown;
971
+ headers: {
972
+ authorization: string;
973
+ };
974
+ response: {
975
+ 200: boolean;
976
+ };
975
977
  };
976
978
  };
977
979
  };
@@ -1279,27 +1281,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1279
1281
  v4: {
1280
1282
  blacklists: {
1281
1283
  index: {
1282
- get: {
1283
- body: unknown;
1284
- params: {};
1285
- query: unknown;
1286
- headers: unknown;
1287
- response: {
1288
- 200: {
1289
- id: string;
1290
- chainId: number;
1291
- poolAddress: string;
1292
- userAddress: string;
1293
- arrestTimestamp: bigint;
1294
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1295
- }[];
1296
- };
1297
- };
1298
- };
1299
- };
1300
- } & {
1301
- blacklists: {
1302
- all: {
1303
1284
  get: {
1304
1285
  body: unknown;
1305
1286
  params: {};
@@ -1726,7 +1707,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1726
1707
  } & {
1727
1708
  v4: {
1728
1709
  roots: {
1729
- timestamps: {
1710
+ index: {
1730
1711
  get: {
1731
1712
  body: unknown;
1732
1713
  params: {};
@@ -1749,7 +1730,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1749
1730
  };
1750
1731
  } & {
1751
1732
  roots: {
1752
- index: {
1733
+ live: {
1753
1734
  get: {
1754
1735
  body: unknown;
1755
1736
  params: {};
@@ -1768,7 +1749,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1768
1749
  };
1769
1750
  } & {
1770
1751
  v4: {
1771
- participate: {
1752
+ interaction: {
1772
1753
  targets: {
1773
1754
  get: {
1774
1755
  body: unknown;
@@ -1780,13 +1761,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1780
1761
  };
1781
1762
  headers: unknown;
1782
1763
  response: {
1783
- 200: import("../../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1764
+ 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1784
1765
  };
1785
1766
  };
1786
1767
  };
1787
1768
  };
1788
1769
  } & {
1789
- participate: {
1770
+ interaction: {
1790
1771
  protocols: {
1791
1772
  get: {
1792
1773
  body: unknown;
@@ -1809,7 +1790,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1809
1790
  };
1810
1791
  };
1811
1792
  } & {
1812
- participate: {
1793
+ interaction: {
1813
1794
  quote: {
1814
1795
  get: {
1815
1796
  body: unknown;
@@ -1835,7 +1816,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1835
1816
  };
1836
1817
  };
1837
1818
  } & {
1838
- participate: {
1819
+ interaction: {
1839
1820
  transaction: {
1840
1821
  get: {
1841
1822
  body: unknown;
@@ -2057,31 +2038,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2057
2038
  };
2058
2039
  } & {
2059
2040
  v4: {
2060
- dynamicData: {
2061
- chainId: {
2062
- ":chainId": {
2063
- token: {
2064
- ":tokenAddress": {
2065
- get: {
2066
- body: unknown;
2067
- params: {
2068
- chainId: number;
2069
- tokenAddress: string;
2070
- };
2071
- query: unknown;
2072
- headers: {
2073
- authorization: string;
2074
- };
2075
- response: {
2076
- 200: {
2077
- tvl: number;
2078
- totalSupply: number;
2079
- cardName: string;
2080
- blacklistedSupply: number;
2081
- priceTargetToken: number;
2082
- };
2083
- };
2084
- };
2041
+ "dynamic-data": {
2042
+ index: {
2043
+ get: {
2044
+ body: unknown;
2045
+ params: {};
2046
+ query: {
2047
+ chainId: number;
2048
+ tokenAddress: string;
2049
+ };
2050
+ headers: {
2051
+ authorization: string;
2052
+ };
2053
+ response: {
2054
+ 200: {
2055
+ tvl: number;
2056
+ totalSupply: number;
2057
+ cardName: string;
2058
+ blacklistedSupply: number;
2059
+ priceTargetToken: number;
2085
2060
  };
2086
2061
  };
2087
2062
  };
@@ -2090,11 +2065,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2090
2065
  };
2091
2066
  } & {
2092
2067
  v4: {
2093
- campaignStatus: {
2068
+ "campaign-status": {
2094
2069
  engine: {
2095
- post: {
2096
- body: {
2097
- status: {
2070
+ ":campaignId": {
2071
+ put: {
2072
+ body: {
2098
2073
  value: "SUCCESS";
2099
2074
  computedUntil: number;
2100
2075
  } | {
@@ -2108,90 +2083,74 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2108
2083
  details: string;
2109
2084
  value: "FAILED";
2110
2085
  };
2111
- campaignId: string;
2112
- distributionChain: number;
2113
- };
2114
- params: {};
2115
- query: unknown;
2116
- headers: {
2117
- authorization: string;
2118
- };
2119
- response: {
2120
- 200: void;
2086
+ params: {
2087
+ campaignId: string;
2088
+ };
2089
+ query: unknown;
2090
+ headers: {
2091
+ authorization: string;
2092
+ };
2093
+ response: {
2094
+ 200: void;
2095
+ };
2121
2096
  };
2122
2097
  };
2123
2098
  };
2124
2099
  };
2125
2100
  } & {
2126
- campaignStatus: {
2127
- index: {
2128
- get: {
2129
- body: unknown;
2130
- params: {};
2131
- query: unknown;
2132
- headers: unknown;
2133
- response: {
2134
- 200: {
2135
- error: string;
2136
- details: import("database/api/.generated/runtime/library").JsonValue;
2137
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2101
+ "campaign-status": {
2102
+ engine: {
2103
+ overlaps: {
2104
+ get: {
2105
+ body: unknown;
2106
+ params: {};
2107
+ query: {
2138
2108
  campaignId: string;
2139
- computedUntil: bigint;
2140
- processingStarted: bigint;
2141
- }[];
2109
+ distributionChain: number;
2110
+ };
2111
+ headers: {
2112
+ authorization: string;
2113
+ };
2114
+ response: {
2115
+ 200: boolean;
2116
+ };
2142
2117
  };
2143
2118
  };
2144
2119
  };
2145
2120
  };
2146
2121
  } & {
2147
- campaignStatus: {
2148
- status: {
2122
+ "campaign-status": {
2123
+ index: {
2149
2124
  get: {
2150
2125
  body: unknown;
2151
2126
  params: {};
2152
2127
  query: {
2153
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
2128
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2129
+ computeChainId?: number | undefined;
2154
2130
  };
2155
2131
  headers: unknown;
2156
2132
  response: {
2157
- 200: ({
2158
- Campaign: {
2159
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2160
- id: string;
2161
- params: import("database/api/.generated/runtime/library").JsonValue;
2162
- subType: number | null;
2163
- startTimestamp: bigint;
2164
- endTimestamp: bigint;
2165
- computeChainId: number;
2166
- distributionChainId: number;
2167
- campaignId: string;
2168
- rewardTokenId: string;
2169
- amount: string;
2170
- opportunityId: string;
2171
- creatorAddress: string;
2172
- };
2173
- } & {
2133
+ 200: {
2174
2134
  error: string;
2175
2135
  details: import("database/api/.generated/runtime/library").JsonValue;
2176
2136
  status: import("../../../database/api/.generated").$Enums.RunStatus;
2177
2137
  campaignId: string;
2178
2138
  computedUntil: bigint;
2179
2139
  processingStarted: bigint;
2180
- })[];
2140
+ }[];
2181
2141
  };
2182
2142
  };
2183
2143
  };
2184
2144
  };
2185
2145
  } & {
2186
- campaignStatus: {
2187
- unique: {
2146
+ "campaign-status": {
2147
+ ":campaignId": {
2188
2148
  get: {
2189
2149
  body: unknown;
2190
- params: {};
2191
- query: {
2150
+ params: {
2192
2151
  campaignId: string;
2193
- distributionChain: number;
2194
2152
  };
2153
+ query: unknown;
2195
2154
  headers: unknown;
2196
2155
  response: {
2197
2156
  200: {
@@ -2206,52 +2165,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2206
2165
  };
2207
2166
  };
2208
2167
  };
2209
- } & {
2210
- campaignStatus: {
2211
- computeChain: {
2212
- ":chainId": {
2213
- get: {
2214
- body: unknown;
2215
- params: {
2216
- chainId: number;
2217
- };
2218
- query: unknown;
2219
- headers: unknown;
2220
- response: {
2221
- 200: {
2222
- error: string;
2223
- details: import("database/api/.generated/runtime/library").JsonValue;
2224
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2225
- campaignId: string;
2226
- computedUntil: bigint;
2227
- processingStarted: bigint;
2228
- }[];
2229
- };
2230
- };
2231
- };
2232
- };
2233
- };
2234
- } & {
2235
- campaignStatus: {
2236
- engine: {
2237
- overlaps: {
2238
- get: {
2239
- body: unknown;
2240
- params: {};
2241
- query: {
2242
- campaignId: string;
2243
- distributionChain: number;
2244
- };
2245
- headers: {
2246
- authorization: string;
2247
- };
2248
- response: {
2249
- 200: boolean;
2250
- };
2251
- };
2252
- };
2253
- };
2254
- };
2255
2168
  };
2256
2169
  } & {
2257
2170
  index: {