@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.
- package/dist/src/eden/index.d.ts +291 -520
- package/dist/src/index.d.ts +99 -186
- package/dist/src/index.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.js +21 -7
- package/dist/src/libs/deprecated-merklv3/index.js +1 -1
- package/dist/src/libs/positions/compound/index.d.ts +0 -2
- package/dist/src/libs/positions/compound/index.js +3 -6
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +0 -21
- package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +0 -8
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -4
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +1 -9
- package/dist/src/modules/v4/blacklist/blacklist.service.js +1 -4
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -3
- package/dist/src/modules/v4/campaign/campaign.controller.js +8 -6
- package/dist/src/modules/v4/campaign/campaign.service.js +1 -2
- package/dist/src/modules/v4/chain/chain.controller.js +2 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +20 -26
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +5 -5
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/{participate/participate.controller.d.ts → interaction/interaction.controller.d.ts} +6 -6
- package/dist/src/modules/v4/{participate/participate.controller.js → interaction/interaction.controller.js} +12 -13
- package/dist/src/modules/v4/{participate/participate.model.d.ts → interaction/interaction.model.d.ts} +12 -12
- package/dist/src/modules/v4/{participate/participate.model.js → interaction/interaction.model.js} +3 -3
- package/dist/src/modules/v4/{participate/participate.service.d.ts → interaction/interaction.service.d.ts} +5 -5
- package/dist/src/modules/v4/{participate/participate.service.js → interaction/interaction.service.js} +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +2 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +5 -1
- package/dist/src/modules/v4/price/price.controller.js +3 -0
- package/dist/src/modules/v4/reward/reward.controller.d.ts +31 -29
- package/dist/src/modules/v4/reward/reward.controller.js +3 -3
- package/dist/src/modules/v4/reward/{rewardConvertor.service.d.ts → subservices/converter.d.ts} +2 -2
- package/dist/src/modules/v4/reward/{rewardConvertor.service.js → subservices/converter.js} +1 -1
- package/dist/src/modules/v4/router.d.ts +99 -186
- package/dist/src/modules/v4/router.js +2 -2
- package/dist/src/modules/v4/status/status.controller.d.ts +40 -102
- package/dist/src/modules/v4/status/status.controller.js +16 -22
- package/dist/src/modules/v4/status/status.model.d.ts +33 -26
- package/dist/src/modules/v4/status/status.model.js +9 -20
- package/dist/src/modules/v4/status/status.repository.d.ts +12 -42
- package/dist/src/modules/v4/status/status.repository.js +10 -22
- package/dist/src/modules/v4/status/status.service.d.ts +4 -36
- package/dist/src/modules/v4/status/status.service.js +9 -18
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +1 -1
- package/dist/src/modules/v4/user/user.controller.js +3 -2
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +99 -186
- package/dist/src/routes/v3/blacklist.d.ts +99 -186
- package/dist/src/routes/v3/campaigns.d.ts +99 -186
- package/dist/src/routes/v3/campaignsInfo.d.ts +99 -186
- package/dist/src/routes/v3/multiChainPositions.d.ts +99 -186
- package/dist/src/routes/v3/opportunity.d.ts +99 -186
- package/dist/src/routes/v3/positions.d.ts +99 -186
- package/dist/src/routes/v3/rewards.d.ts +99 -186
- package/dist/src/routes/v3/rewards.js +1 -1
- package/dist/src/routes/v3/updates.d.ts +99 -186
- package/dist/src/routes/v3/userRewards.d.ts +99 -186
- package/dist/src/routes/v3/userRewards.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +4 -5
- package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.repository.js +0 -1
- package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
- 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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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/
|
1765
|
+
200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
|
1785
1766
|
};
|
1786
1767
|
};
|
1787
1768
|
};
|
1788
1769
|
};
|
1789
1770
|
} & {
|
1790
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
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
|
-
|
2069
|
+
"campaign-status": {
|
2095
2070
|
engine: {
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
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
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
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
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
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
|
-
|
2141
|
-
|
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
|
-
|
2149
|
-
|
2123
|
+
"campaign-status": {
|
2124
|
+
index: {
|
2150
2125
|
get: {
|
2151
2126
|
body: unknown;
|
2152
2127
|
params: {};
|
2153
2128
|
query: {
|
2154
|
-
status
|
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
|
-
|
2188
|
-
|
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/
|
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";
|