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