@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
@@ -622,7 +622,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
622
622
  };
623
623
  };
624
624
  } & {
625
- campaignsToProcess: {
625
+ "campaigns-to-process": {
626
626
  index: {
627
627
  get: {
628
628
  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
  count: {
649
649
  get: {
650
650
  body: unknown;
@@ -660,7 +660,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
660
660
  };
661
661
  };
662
662
  } & {
663
- campaignsToProcess: {
663
+ "campaigns-to-process": {
664
664
  index: {
665
665
  post: {
666
666
  body: unknown;
@@ -959,35 +959,37 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
959
959
  };
960
960
  } & {
961
961
  rewards: {
962
- pendings: {
963
- post: {
964
- body: {
965
- distributionChainId: number;
966
- campaignId: string;
967
- root: string;
968
- rewardToken: string;
969
- toUpdate: {
970
- auxiliaryData1?: string | undefined;
971
- auxiliaryData2?: string | undefined;
972
- reason: string;
973
- pending: string;
974
- recipient: string;
975
- }[];
976
- toCreate: {
977
- auxiliaryData1?: string | undefined;
978
- auxiliaryData2?: string | undefined;
979
- reason: string;
980
- pending: string;
981
- recipient: string;
982
- }[];
983
- };
984
- params: {};
985
- query: unknown;
986
- headers: {
987
- authorization: string;
988
- };
989
- response: {
990
- 200: boolean;
962
+ engine: {
963
+ pendings: {
964
+ post: {
965
+ body: {
966
+ distributionChainId: number;
967
+ campaignId: string;
968
+ root: string;
969
+ rewardToken: string;
970
+ toUpdate: {
971
+ auxiliaryData1?: string | undefined;
972
+ auxiliaryData2?: string | undefined;
973
+ reason: string;
974
+ pending: string;
975
+ recipient: string;
976
+ }[];
977
+ toCreate: {
978
+ auxiliaryData1?: string | undefined;
979
+ auxiliaryData2?: string | undefined;
980
+ reason: string;
981
+ pending: string;
982
+ recipient: string;
983
+ }[];
984
+ };
985
+ params: {};
986
+ query: unknown;
987
+ headers: {
988
+ authorization: string;
989
+ };
990
+ response: {
991
+ 200: boolean;
992
+ };
991
993
  };
992
994
  };
993
995
  };
@@ -1295,27 +1297,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1295
1297
  v4: {
1296
1298
  blacklists: {
1297
1299
  index: {
1298
- get: {
1299
- body: unknown;
1300
- params: {};
1301
- query: unknown;
1302
- headers: unknown;
1303
- response: {
1304
- 200: {
1305
- id: string;
1306
- chainId: number;
1307
- poolAddress: string;
1308
- userAddress: string;
1309
- arrestTimestamp: bigint;
1310
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1311
- }[];
1312
- };
1313
- };
1314
- };
1315
- };
1316
- } & {
1317
- blacklists: {
1318
- all: {
1319
1300
  get: {
1320
1301
  body: unknown;
1321
1302
  params: {};
@@ -1742,7 +1723,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1742
1723
  } & {
1743
1724
  v4: {
1744
1725
  roots: {
1745
- timestamps: {
1726
+ index: {
1746
1727
  get: {
1747
1728
  body: unknown;
1748
1729
  params: {};
@@ -1765,7 +1746,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1765
1746
  };
1766
1747
  } & {
1767
1748
  roots: {
1768
- index: {
1749
+ live: {
1769
1750
  get: {
1770
1751
  body: unknown;
1771
1752
  params: {};
@@ -1784,7 +1765,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1784
1765
  };
1785
1766
  } & {
1786
1767
  v4: {
1787
- participate: {
1768
+ interaction: {
1788
1769
  targets: {
1789
1770
  get: {
1790
1771
  body: unknown;
@@ -1796,13 +1777,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1796
1777
  };
1797
1778
  headers: unknown;
1798
1779
  response: {
1799
- 200: import("../../modules/v4/participate/participate.model").ParticipateTarget[] | undefined;
1780
+ 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
1800
1781
  };
1801
1782
  };
1802
1783
  };
1803
1784
  };
1804
1785
  } & {
1805
- participate: {
1786
+ interaction: {
1806
1787
  protocols: {
1807
1788
  get: {
1808
1789
  body: unknown;
@@ -1825,7 +1806,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1825
1806
  };
1826
1807
  };
1827
1808
  } & {
1828
- participate: {
1809
+ interaction: {
1829
1810
  quote: {
1830
1811
  get: {
1831
1812
  body: unknown;
@@ -1851,7 +1832,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1851
1832
  };
1852
1833
  };
1853
1834
  } & {
1854
- participate: {
1835
+ interaction: {
1855
1836
  transaction: {
1856
1837
  get: {
1857
1838
  body: unknown;
@@ -2073,31 +2054,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2073
2054
  };
2074
2055
  } & {
2075
2056
  v4: {
2076
- dynamicData: {
2077
- chainId: {
2078
- ":chainId": {
2079
- token: {
2080
- ":tokenAddress": {
2081
- get: {
2082
- body: unknown;
2083
- params: {
2084
- chainId: number;
2085
- tokenAddress: string;
2086
- };
2087
- query: unknown;
2088
- headers: {
2089
- authorization: string;
2090
- };
2091
- response: {
2092
- 200: {
2093
- tvl: number;
2094
- totalSupply: number;
2095
- cardName: string;
2096
- blacklistedSupply: number;
2097
- priceTargetToken: number;
2098
- };
2099
- };
2100
- };
2057
+ "dynamic-data": {
2058
+ index: {
2059
+ get: {
2060
+ body: unknown;
2061
+ params: {};
2062
+ query: {
2063
+ chainId: number;
2064
+ tokenAddress: string;
2065
+ };
2066
+ headers: {
2067
+ authorization: string;
2068
+ };
2069
+ response: {
2070
+ 200: {
2071
+ tvl: number;
2072
+ totalSupply: number;
2073
+ cardName: string;
2074
+ blacklistedSupply: number;
2075
+ priceTargetToken: number;
2101
2076
  };
2102
2077
  };
2103
2078
  };
@@ -2106,11 +2081,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2106
2081
  };
2107
2082
  } & {
2108
2083
  v4: {
2109
- campaignStatus: {
2084
+ "campaign-status": {
2110
2085
  engine: {
2111
- post: {
2112
- body: {
2113
- status: {
2086
+ ":campaignId": {
2087
+ put: {
2088
+ body: {
2114
2089
  value: "SUCCESS";
2115
2090
  computedUntil: number;
2116
2091
  } | {
@@ -2124,90 +2099,74 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2124
2099
  details: string;
2125
2100
  value: "FAILED";
2126
2101
  };
2127
- campaignId: string;
2128
- distributionChain: number;
2129
- };
2130
- params: {};
2131
- query: unknown;
2132
- headers: {
2133
- authorization: string;
2134
- };
2135
- response: {
2136
- 200: void;
2102
+ params: {
2103
+ campaignId: string;
2104
+ };
2105
+ query: unknown;
2106
+ headers: {
2107
+ authorization: string;
2108
+ };
2109
+ response: {
2110
+ 200: void;
2111
+ };
2137
2112
  };
2138
2113
  };
2139
2114
  };
2140
2115
  };
2141
2116
  } & {
2142
- campaignStatus: {
2143
- index: {
2144
- get: {
2145
- body: unknown;
2146
- params: {};
2147
- query: unknown;
2148
- headers: unknown;
2149
- response: {
2150
- 200: {
2151
- error: string;
2152
- details: import("database/api/.generated/runtime/library").JsonValue;
2153
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2117
+ "campaign-status": {
2118
+ engine: {
2119
+ overlaps: {
2120
+ get: {
2121
+ body: unknown;
2122
+ params: {};
2123
+ query: {
2154
2124
  campaignId: string;
2155
- computedUntil: bigint;
2156
- processingStarted: bigint;
2157
- }[];
2125
+ distributionChain: number;
2126
+ };
2127
+ headers: {
2128
+ authorization: string;
2129
+ };
2130
+ response: {
2131
+ 200: boolean;
2132
+ };
2158
2133
  };
2159
2134
  };
2160
2135
  };
2161
2136
  };
2162
2137
  } & {
2163
- campaignStatus: {
2164
- status: {
2138
+ "campaign-status": {
2139
+ index: {
2165
2140
  get: {
2166
2141
  body: unknown;
2167
2142
  params: {};
2168
2143
  query: {
2169
- status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
2144
+ status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2145
+ computeChainId?: number | undefined;
2170
2146
  };
2171
2147
  headers: unknown;
2172
2148
  response: {
2173
- 200: ({
2174
- Campaign: {
2175
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2176
- id: string;
2177
- params: import("database/api/.generated/runtime/library").JsonValue;
2178
- subType: number | null;
2179
- startTimestamp: bigint;
2180
- endTimestamp: bigint;
2181
- computeChainId: number;
2182
- distributionChainId: number;
2183
- campaignId: string;
2184
- rewardTokenId: string;
2185
- amount: string;
2186
- opportunityId: string;
2187
- creatorAddress: string;
2188
- };
2189
- } & {
2149
+ 200: {
2190
2150
  error: string;
2191
2151
  details: import("database/api/.generated/runtime/library").JsonValue;
2192
2152
  status: import("../../../database/api/.generated").$Enums.RunStatus;
2193
2153
  campaignId: string;
2194
2154
  computedUntil: bigint;
2195
2155
  processingStarted: bigint;
2196
- })[];
2156
+ }[];
2197
2157
  };
2198
2158
  };
2199
2159
  };
2200
2160
  };
2201
2161
  } & {
2202
- campaignStatus: {
2203
- unique: {
2162
+ "campaign-status": {
2163
+ ":campaignId": {
2204
2164
  get: {
2205
2165
  body: unknown;
2206
- params: {};
2207
- query: {
2166
+ params: {
2208
2167
  campaignId: string;
2209
- distributionChain: number;
2210
2168
  };
2169
+ query: unknown;
2211
2170
  headers: unknown;
2212
2171
  response: {
2213
2172
  200: {
@@ -2222,52 +2181,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2222
2181
  };
2223
2182
  };
2224
2183
  };
2225
- } & {
2226
- campaignStatus: {
2227
- computeChain: {
2228
- ":chainId": {
2229
- get: {
2230
- body: unknown;
2231
- params: {
2232
- chainId: number;
2233
- };
2234
- query: unknown;
2235
- headers: unknown;
2236
- response: {
2237
- 200: {
2238
- error: string;
2239
- details: import("database/api/.generated/runtime/library").JsonValue;
2240
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2241
- campaignId: string;
2242
- computedUntil: bigint;
2243
- processingStarted: bigint;
2244
- }[];
2245
- };
2246
- };
2247
- };
2248
- };
2249
- };
2250
- } & {
2251
- campaignStatus: {
2252
- engine: {
2253
- overlaps: {
2254
- get: {
2255
- body: unknown;
2256
- params: {};
2257
- query: {
2258
- campaignId: string;
2259
- distributionChain: number;
2260
- };
2261
- headers: {
2262
- authorization: string;
2263
- };
2264
- response: {
2265
- 200: boolean;
2266
- };
2267
- };
2268
- };
2269
- };
2270
- };
2271
2184
  };
2272
2185
  } & {
2273
2186
  index: {