@merkl/api 0.10.137 → 0.10.139

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