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