@merkl/api 0.10.138 → 0.10.139

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) 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/price/price.controller.js +3 -0
  28. package/dist/src/modules/v4/reward/reward.controller.d.ts +31 -29
  29. package/dist/src/modules/v4/reward/reward.controller.js +3 -3
  30. package/dist/src/modules/v4/reward/{rewardConvertor.service.d.ts → subservices/converter.d.ts} +2 -2
  31. package/dist/src/modules/v4/reward/{rewardConvertor.service.js → subservices/converter.js} +1 -1
  32. package/dist/src/modules/v4/router.d.ts +99 -186
  33. package/dist/src/modules/v4/router.js +2 -2
  34. package/dist/src/modules/v4/status/status.controller.d.ts +40 -102
  35. package/dist/src/modules/v4/status/status.controller.js +16 -22
  36. package/dist/src/modules/v4/status/status.model.d.ts +33 -26
  37. package/dist/src/modules/v4/status/status.model.js +9 -20
  38. package/dist/src/modules/v4/status/status.repository.d.ts +12 -42
  39. package/dist/src/modules/v4/status/status.repository.js +10 -22
  40. package/dist/src/modules/v4/status/status.service.d.ts +4 -36
  41. package/dist/src/modules/v4/status/status.service.js +9 -18
  42. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  43. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +1 -1
  44. package/dist/src/modules/v4/user/user.controller.js +3 -2
  45. package/dist/src/routes/v3/ERC20Campaigns.d.ts +99 -186
  46. package/dist/src/routes/v3/blacklist.d.ts +99 -186
  47. package/dist/src/routes/v3/campaigns.d.ts +99 -186
  48. package/dist/src/routes/v3/campaignsInfo.d.ts +99 -186
  49. package/dist/src/routes/v3/multiChainPositions.d.ts +99 -186
  50. package/dist/src/routes/v3/opportunity.d.ts +99 -186
  51. package/dist/src/routes/v3/positions.d.ts +99 -186
  52. package/dist/src/routes/v3/rewards.d.ts +99 -186
  53. package/dist/src/routes/v3/rewards.js +1 -1
  54. package/dist/src/routes/v3/updates.d.ts +99 -186
  55. package/dist/src/routes/v3/userRewards.d.ts +99 -186
  56. package/dist/src/routes/v3/userRewards.js +1 -1
  57. package/dist/tsconfig.package.tsbuildinfo +1 -1
  58. package/package.json +1 -2
  59. package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
  60. package/dist/src/modules/v4/apr/apr.repository.js +0 -1
  61. package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
  62. package/dist/src/modules/v4/tvl/tvl.repository.js +0 -1
@@ -603,7 +603,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
603
603
  };
604
604
  };
605
605
  } & {
606
- campaignsToProcess: {
606
+ "campaigns-to-process": {
607
607
  index: {
608
608
  get: {
609
609
  body: unknown;
@@ -625,7 +625,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
625
625
  };
626
626
  };
627
627
  } & {
628
- campaignsToProcess: {
628
+ "campaigns-to-process": {
629
629
  count: {
630
630
  get: {
631
631
  body: unknown;
@@ -641,7 +641,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
641
641
  };
642
642
  };
643
643
  } & {
644
- campaignsToProcess: {
644
+ "campaigns-to-process": {
645
645
  index: {
646
646
  post: {
647
647
  body: unknown;
@@ -940,35 +940,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
940
940
  };
941
941
  } & {
942
942
  rewards: {
943
- pendings: {
944
- post: {
945
- body: {
946
- distributionChainId: number;
947
- campaignId: string;
948
- root: string;
949
- rewardToken: string;
950
- toUpdate: {
951
- auxiliaryData1?: string | undefined;
952
- auxiliaryData2?: string | undefined;
953
- reason: string;
954
- pending: string;
955
- recipient: string;
956
- }[];
957
- toCreate: {
958
- auxiliaryData1?: string | undefined;
959
- auxiliaryData2?: string | undefined;
960
- reason: string;
961
- pending: string;
962
- recipient: string;
963
- }[];
964
- };
965
- params: {};
966
- query: unknown;
967
- headers: {
968
- authorization: string;
969
- };
970
- response: {
971
- 200: boolean;
943
+ engine: {
944
+ pendings: {
945
+ post: {
946
+ body: {
947
+ distributionChainId: number;
948
+ campaignId: string;
949
+ root: string;
950
+ rewardToken: string;
951
+ toUpdate: {
952
+ auxiliaryData1?: string | undefined;
953
+ auxiliaryData2?: string | undefined;
954
+ reason: string;
955
+ pending: string;
956
+ recipient: string;
957
+ }[];
958
+ toCreate: {
959
+ auxiliaryData1?: string | undefined;
960
+ auxiliaryData2?: string | undefined;
961
+ reason: string;
962
+ pending: string;
963
+ recipient: string;
964
+ }[];
965
+ };
966
+ params: {};
967
+ query: unknown;
968
+ headers: {
969
+ authorization: string;
970
+ };
971
+ response: {
972
+ 200: boolean;
973
+ };
972
974
  };
973
975
  };
974
976
  };
@@ -1276,27 +1278,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1276
1278
  v4: {
1277
1279
  blacklists: {
1278
1280
  index: {
1279
- get: {
1280
- body: unknown;
1281
- params: {};
1282
- query: unknown;
1283
- headers: unknown;
1284
- response: {
1285
- 200: {
1286
- id: string;
1287
- chainId: number;
1288
- poolAddress: string;
1289
- userAddress: string;
1290
- arrestTimestamp: bigint;
1291
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1292
- }[];
1293
- };
1294
- };
1295
- };
1296
- };
1297
- } & {
1298
- blacklists: {
1299
- all: {
1300
1281
  get: {
1301
1282
  body: unknown;
1302
1283
  params: {};
@@ -1723,7 +1704,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1723
1704
  } & {
1724
1705
  v4: {
1725
1706
  roots: {
1726
- timestamps: {
1707
+ index: {
1727
1708
  get: {
1728
1709
  body: unknown;
1729
1710
  params: {};
@@ -1746,7 +1727,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1746
1727
  };
1747
1728
  } & {
1748
1729
  roots: {
1749
- index: {
1730
+ live: {
1750
1731
  get: {
1751
1732
  body: unknown;
1752
1733
  params: {};
@@ -1765,7 +1746,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1765
1746
  };
1766
1747
  } & {
1767
1748
  v4: {
1768
- participate: {
1749
+ interaction: {
1769
1750
  targets: {
1770
1751
  get: {
1771
1752
  body: unknown;
@@ -1777,13 +1758,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1777
1758
  };
1778
1759
  headers: unknown;
1779
1760
  response: {
1780
- 200: import("../../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1761
+ 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1781
1762
  };
1782
1763
  };
1783
1764
  };
1784
1765
  };
1785
1766
  } & {
1786
- participate: {
1767
+ interaction: {
1787
1768
  protocols: {
1788
1769
  get: {
1789
1770
  body: unknown;
@@ -1806,7 +1787,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1806
1787
  };
1807
1788
  };
1808
1789
  } & {
1809
- participate: {
1790
+ interaction: {
1810
1791
  quote: {
1811
1792
  get: {
1812
1793
  body: unknown;
@@ -1832,7 +1813,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1832
1813
  };
1833
1814
  };
1834
1815
  } & {
1835
- participate: {
1816
+ interaction: {
1836
1817
  transaction: {
1837
1818
  get: {
1838
1819
  body: unknown;
@@ -2054,31 +2035,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2054
2035
  };
2055
2036
  } & {
2056
2037
  v4: {
2057
- dynamicData: {
2058
- chainId: {
2059
- ":chainId": {
2060
- token: {
2061
- ":tokenAddress": {
2062
- get: {
2063
- body: unknown;
2064
- params: {
2065
- chainId: number;
2066
- tokenAddress: string;
2067
- };
2068
- query: unknown;
2069
- headers: {
2070
- authorization: string;
2071
- };
2072
- response: {
2073
- 200: {
2074
- tvl: number;
2075
- totalSupply: number;
2076
- cardName: string;
2077
- blacklistedSupply: number;
2078
- priceTargetToken: number;
2079
- };
2080
- };
2081
- };
2038
+ "dynamic-data": {
2039
+ index: {
2040
+ get: {
2041
+ body: unknown;
2042
+ params: {};
2043
+ query: {
2044
+ chainId: number;
2045
+ tokenAddress: string;
2046
+ };
2047
+ headers: {
2048
+ authorization: string;
2049
+ };
2050
+ response: {
2051
+ 200: {
2052
+ tvl: number;
2053
+ totalSupply: number;
2054
+ cardName: string;
2055
+ blacklistedSupply: number;
2056
+ priceTargetToken: number;
2082
2057
  };
2083
2058
  };
2084
2059
  };
@@ -2087,11 +2062,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2087
2062
  };
2088
2063
  } & {
2089
2064
  v4: {
2090
- campaignStatus: {
2065
+ "campaign-status": {
2091
2066
  engine: {
2092
- post: {
2093
- body: {
2094
- status: {
2067
+ ":campaignId": {
2068
+ put: {
2069
+ body: {
2095
2070
  value: "SUCCESS";
2096
2071
  computedUntil: number;
2097
2072
  } | {
@@ -2105,90 +2080,74 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2105
2080
  details: string;
2106
2081
  value: "FAILED";
2107
2082
  };
2108
- campaignId: string;
2109
- distributionChain: number;
2110
- };
2111
- params: {};
2112
- query: unknown;
2113
- headers: {
2114
- authorization: string;
2115
- };
2116
- response: {
2117
- 200: void;
2083
+ params: {
2084
+ campaignId: string;
2085
+ };
2086
+ query: unknown;
2087
+ headers: {
2088
+ authorization: string;
2089
+ };
2090
+ response: {
2091
+ 200: void;
2092
+ };
2118
2093
  };
2119
2094
  };
2120
2095
  };
2121
2096
  };
2122
2097
  } & {
2123
- campaignStatus: {
2124
- index: {
2125
- get: {
2126
- body: unknown;
2127
- params: {};
2128
- query: unknown;
2129
- headers: unknown;
2130
- response: {
2131
- 200: {
2132
- error: string;
2133
- details: import("database/api/.generated/runtime/library").JsonValue;
2134
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2098
+ "campaign-status": {
2099
+ engine: {
2100
+ overlaps: {
2101
+ get: {
2102
+ body: unknown;
2103
+ params: {};
2104
+ query: {
2135
2105
  campaignId: string;
2136
- computedUntil: bigint;
2137
- processingStarted: bigint;
2138
- }[];
2106
+ distributionChain: number;
2107
+ };
2108
+ headers: {
2109
+ authorization: string;
2110
+ };
2111
+ response: {
2112
+ 200: boolean;
2113
+ };
2139
2114
  };
2140
2115
  };
2141
2116
  };
2142
2117
  };
2143
2118
  } & {
2144
- campaignStatus: {
2145
- status: {
2119
+ "campaign-status": {
2120
+ index: {
2146
2121
  get: {
2147
2122
  body: unknown;
2148
2123
  params: {};
2149
2124
  query: {
2150
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
2125
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2126
+ computeChainId?: number | undefined;
2151
2127
  };
2152
2128
  headers: unknown;
2153
2129
  response: {
2154
- 200: ({
2155
- Campaign: {
2156
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2157
- id: string;
2158
- params: import("database/api/.generated/runtime/library").JsonValue;
2159
- subType: number | null;
2160
- startTimestamp: bigint;
2161
- endTimestamp: bigint;
2162
- computeChainId: number;
2163
- distributionChainId: number;
2164
- campaignId: string;
2165
- rewardTokenId: string;
2166
- amount: string;
2167
- opportunityId: string;
2168
- creatorAddress: string;
2169
- };
2170
- } & {
2130
+ 200: {
2171
2131
  error: string;
2172
2132
  details: import("database/api/.generated/runtime/library").JsonValue;
2173
2133
  status: import("../../../database/api/.generated").$Enums.RunStatus;
2174
2134
  campaignId: string;
2175
2135
  computedUntil: bigint;
2176
2136
  processingStarted: bigint;
2177
- })[];
2137
+ }[];
2178
2138
  };
2179
2139
  };
2180
2140
  };
2181
2141
  };
2182
2142
  } & {
2183
- campaignStatus: {
2184
- unique: {
2143
+ "campaign-status": {
2144
+ ":campaignId": {
2185
2145
  get: {
2186
2146
  body: unknown;
2187
- params: {};
2188
- query: {
2147
+ params: {
2189
2148
  campaignId: string;
2190
- distributionChain: number;
2191
2149
  };
2150
+ query: unknown;
2192
2151
  headers: unknown;
2193
2152
  response: {
2194
2153
  200: {
@@ -2203,52 +2162,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2203
2162
  };
2204
2163
  };
2205
2164
  };
2206
- } & {
2207
- campaignStatus: {
2208
- computeChain: {
2209
- ":chainId": {
2210
- get: {
2211
- body: unknown;
2212
- params: {
2213
- chainId: number;
2214
- };
2215
- query: unknown;
2216
- headers: unknown;
2217
- response: {
2218
- 200: {
2219
- error: string;
2220
- details: import("database/api/.generated/runtime/library").JsonValue;
2221
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2222
- campaignId: string;
2223
- computedUntil: bigint;
2224
- processingStarted: bigint;
2225
- }[];
2226
- };
2227
- };
2228
- };
2229
- };
2230
- };
2231
- } & {
2232
- campaignStatus: {
2233
- engine: {
2234
- overlaps: {
2235
- get: {
2236
- body: unknown;
2237
- params: {};
2238
- query: {
2239
- campaignId: string;
2240
- distributionChain: number;
2241
- };
2242
- headers: {
2243
- authorization: string;
2244
- };
2245
- response: {
2246
- 200: boolean;
2247
- };
2248
- };
2249
- };
2250
- };
2251
- };
2252
2165
  };
2253
2166
  } & {
2254
2167
  index: {