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