@merkl/api 0.10.119 → 0.10.121
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/eden/index.d.ts +43 -41
- package/dist/src/index.d.ts +15 -13
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RfxProcessor.d.ts +37 -0
- package/dist/src/modules/v4/router.d.ts +15 -13
- package/dist/src/modules/v4/status/status.controller.d.ts +15 -13
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +15 -13
- package/dist/src/routes/v3/blacklist.d.ts +15 -13
- package/dist/src/routes/v3/campaigns.d.ts +15 -13
- package/dist/src/routes/v3/campaignsInfo.d.ts +15 -13
- package/dist/src/routes/v3/multiChainPositions.d.ts +15 -13
- package/dist/src/routes/v3/opportunity.d.ts +15 -13
- package/dist/src/routes/v3/positions.d.ts +15 -13
- package/dist/src/routes/v3/rewards.d.ts +15 -13
- package/dist/src/routes/v3/updates.d.ts +15 -13
- package/dist/src/routes/v3/userRewards.d.ts +15 -13
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/constants.d.ts
CHANGED
@@ -25,6 +25,7 @@ export declare const MERKL_BLACKLIST: string[];
|
|
25
25
|
export declare const EBTC_ADDRESS = "0x661c70333AA1850CcDBAe82776Bb436A0fCfeEfB";
|
26
26
|
export declare const CDPMANAGER_ADDRESS = "0xc4cbaE499bb4Ca41E78f52F07f5d98c375711774";
|
27
27
|
export declare const SORTEDCDPS_ADDRESS = "0x591AcB5AE192c147948c12651a0a5f24f0529BE3";
|
28
|
+
export declare const RFX_DATASTORE = "0x895124783008C6c68eFcccac24c482Fdf30439B2";
|
28
29
|
export declare const DOPEX_OPTION_MARKET: {
|
29
30
|
[market: string]: string;
|
30
31
|
};
|
package/dist/src/eden/index.d.ts
CHANGED
@@ -1629,6 +1629,20 @@ declare const eden: {
|
|
1629
1629
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1630
1630
|
200: void;
|
1631
1631
|
}>>;
|
1632
|
+
overlaps: {
|
1633
|
+
get: (options: {
|
1634
|
+
headers: {
|
1635
|
+
authorization: string;
|
1636
|
+
};
|
1637
|
+
query: {
|
1638
|
+
campaignId: string;
|
1639
|
+
distributionChain: number;
|
1640
|
+
};
|
1641
|
+
fetch?: RequestInit | undefined;
|
1642
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1643
|
+
200: boolean;
|
1644
|
+
}>>;
|
1645
|
+
};
|
1632
1646
|
};
|
1633
1647
|
index: {
|
1634
1648
|
get: (options?: {
|
@@ -1717,20 +1731,6 @@ declare const eden: {
|
|
1717
1731
|
}[];
|
1718
1732
|
}>>;
|
1719
1733
|
}) & {};
|
1720
|
-
overlaps: {
|
1721
|
-
get: (options: {
|
1722
|
-
headers: {
|
1723
|
-
authorization: string;
|
1724
|
-
};
|
1725
|
-
query: {
|
1726
|
-
campaignId: string;
|
1727
|
-
distributionChain: number;
|
1728
|
-
};
|
1729
|
-
fetch?: RequestInit | undefined;
|
1730
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1731
|
-
200: boolean;
|
1732
|
-
}>>;
|
1733
|
-
};
|
1734
1734
|
};
|
1735
1735
|
};
|
1736
1736
|
};
|
@@ -3894,19 +3894,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3894
3894
|
};
|
3895
3895
|
} & {
|
3896
3896
|
campaignStatus: {
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
3901
|
-
|
3902
|
-
|
3903
|
-
|
3904
|
-
|
3905
|
-
|
3906
|
-
|
3907
|
-
|
3908
|
-
|
3909
|
-
|
3897
|
+
engine: {
|
3898
|
+
overlaps: {
|
3899
|
+
get: {
|
3900
|
+
body: unknown;
|
3901
|
+
params: Record<never, string>;
|
3902
|
+
query: {
|
3903
|
+
campaignId: string;
|
3904
|
+
distributionChain: number;
|
3905
|
+
};
|
3906
|
+
headers: {
|
3907
|
+
authorization: string;
|
3908
|
+
};
|
3909
|
+
response: {
|
3910
|
+
200: boolean;
|
3911
|
+
};
|
3910
3912
|
};
|
3911
3913
|
};
|
3912
3914
|
};
|
@@ -5553,6 +5555,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5553
5555
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5554
5556
|
200: void;
|
5555
5557
|
}>>;
|
5558
|
+
overlaps: {
|
5559
|
+
get: (options: {
|
5560
|
+
headers: {
|
5561
|
+
authorization: string;
|
5562
|
+
};
|
5563
|
+
query: {
|
5564
|
+
campaignId: string;
|
5565
|
+
distributionChain: number;
|
5566
|
+
};
|
5567
|
+
fetch?: RequestInit | undefined;
|
5568
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5569
|
+
200: boolean;
|
5570
|
+
}>>;
|
5571
|
+
};
|
5556
5572
|
};
|
5557
5573
|
index: {
|
5558
5574
|
get: (options?: {
|
@@ -5641,20 +5657,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5641
5657
|
}[];
|
5642
5658
|
}>>;
|
5643
5659
|
}) & {};
|
5644
|
-
overlaps: {
|
5645
|
-
get: (options: {
|
5646
|
-
headers: {
|
5647
|
-
authorization: string;
|
5648
|
-
};
|
5649
|
-
query: {
|
5650
|
-
campaignId: string;
|
5651
|
-
distributionChain: number;
|
5652
|
-
};
|
5653
|
-
fetch?: RequestInit | undefined;
|
5654
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5655
|
-
200: boolean;
|
5656
|
-
}>>;
|
5657
|
-
};
|
5658
5660
|
};
|
5659
5661
|
};
|
5660
5662
|
};
|
package/dist/src/index.d.ts
CHANGED
@@ -2151,19 +2151,21 @@ declare const app: Elysia<"", false, {
|
|
2151
2151
|
};
|
2152
2152
|
} & {
|
2153
2153
|
campaignStatus: {
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2154
|
+
engine: {
|
2155
|
+
overlaps: {
|
2156
|
+
get: {
|
2157
|
+
body: unknown;
|
2158
|
+
params: Record<never, string>;
|
2159
|
+
query: {
|
2160
|
+
campaignId: string;
|
2161
|
+
distributionChain: number;
|
2162
|
+
};
|
2163
|
+
headers: {
|
2164
|
+
authorization: string;
|
2165
|
+
};
|
2166
|
+
response: {
|
2167
|
+
200: boolean;
|
2168
|
+
};
|
2167
2169
|
};
|
2168
2170
|
};
|
2169
2171
|
};
|
@@ -47,7 +47,8 @@ export declare enum tokenType {
|
|
47
47
|
baseswap = "baseswap",
|
48
48
|
zkswap = "zkswap",
|
49
49
|
pendle = "pendle",
|
50
|
-
ironcladStaking = "ironcladStaking"
|
50
|
+
ironcladStaking = "ironcladStaking",
|
51
|
+
rfx = "rfx"
|
51
52
|
}
|
52
53
|
export declare const tokenTypeToProtocol: {
|
53
54
|
[key in tokenType]: {
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawTemplate;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysRfx;
|
9
|
+
metaData?: keyof callKeysRfx;
|
10
|
+
};
|
11
|
+
type callKeysRfx = mandatoryCallKeys & {
|
12
|
+
shortToken: string;
|
13
|
+
longToken: string;
|
14
|
+
symbolShortToken: string;
|
15
|
+
symbolLongToken: string;
|
16
|
+
decimalsToken: string;
|
17
|
+
decimalsShortToken: string;
|
18
|
+
decimalsLongToken: string;
|
19
|
+
balanceShortToken: string;
|
20
|
+
balanceLongToken: string;
|
21
|
+
RFX_DATASTORE: string;
|
22
|
+
metaDataShort: string;
|
23
|
+
metaDataLong: string;
|
24
|
+
};
|
25
|
+
type dataRawTemplate = callKeysRfx & {};
|
26
|
+
type dataTypeRfx = dataType & {};
|
27
|
+
export declare class RfxProcessor extends GenericProcessor<callKeysRfx, dataRawTemplate, dataTypeRfx> {
|
28
|
+
rounds: {
|
29
|
+
round1: callType[];
|
30
|
+
round2: callType[];
|
31
|
+
round3: callType[];
|
32
|
+
round4: callType[];
|
33
|
+
};
|
34
|
+
processingRound1(typeInfo: dataRawTemplate): void;
|
35
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeRfx>;
|
36
|
+
}
|
37
|
+
export {};
|
@@ -2133,19 +2133,21 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2133
2133
|
};
|
2134
2134
|
} & {
|
2135
2135
|
campaignStatus: {
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2136
|
+
engine: {
|
2137
|
+
overlaps: {
|
2138
|
+
get: {
|
2139
|
+
body: unknown;
|
2140
|
+
params: Record<never, string>;
|
2141
|
+
query: {
|
2142
|
+
campaignId: string;
|
2143
|
+
distributionChain: number;
|
2144
|
+
};
|
2145
|
+
headers: {
|
2146
|
+
authorization: string;
|
2147
|
+
};
|
2148
|
+
response: {
|
2149
|
+
200: boolean;
|
2150
|
+
};
|
2149
2151
|
};
|
2150
2152
|
};
|
2151
2153
|
};
|
@@ -154,19 +154,21 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
154
154
|
};
|
155
155
|
} & {
|
156
156
|
campaignStatus: {
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
157
|
+
engine: {
|
158
|
+
overlaps: {
|
159
|
+
get: {
|
160
|
+
body: unknown;
|
161
|
+
params: Record<never, string>;
|
162
|
+
query: {
|
163
|
+
campaignId: string;
|
164
|
+
distributionChain: number;
|
165
|
+
};
|
166
|
+
headers: {
|
167
|
+
authorization: string;
|
168
|
+
};
|
169
|
+
response: {
|
170
|
+
200: boolean;
|
171
|
+
};
|
170
172
|
};
|
171
173
|
};
|
172
174
|
};
|
@@ -2159,19 +2159,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2159
2159
|
};
|
2160
2160
|
} & {
|
2161
2161
|
campaignStatus: {
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2162
|
+
engine: {
|
2163
|
+
overlaps: {
|
2164
|
+
get: {
|
2165
|
+
body: unknown;
|
2166
|
+
params: Record<never, string>;
|
2167
|
+
query: {
|
2168
|
+
campaignId: string;
|
2169
|
+
distributionChain: number;
|
2170
|
+
};
|
2171
|
+
headers: {
|
2172
|
+
authorization: string;
|
2173
|
+
};
|
2174
|
+
response: {
|
2175
|
+
200: boolean;
|
2176
|
+
};
|
2175
2177
|
};
|
2176
2178
|
};
|
2177
2179
|
};
|
@@ -2157,19 +2157,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2157
2157
|
};
|
2158
2158
|
} & {
|
2159
2159
|
campaignStatus: {
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2160
|
+
engine: {
|
2161
|
+
overlaps: {
|
2162
|
+
get: {
|
2163
|
+
body: unknown;
|
2164
|
+
params: Record<never, string>;
|
2165
|
+
query: {
|
2166
|
+
campaignId: string;
|
2167
|
+
distributionChain: number;
|
2168
|
+
};
|
2169
|
+
headers: {
|
2170
|
+
authorization: string;
|
2171
|
+
};
|
2172
|
+
response: {
|
2173
|
+
200: boolean;
|
2174
|
+
};
|
2173
2175
|
};
|
2174
2176
|
};
|
2175
2177
|
};
|
@@ -2160,19 +2160,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2160
2160
|
};
|
2161
2161
|
} & {
|
2162
2162
|
campaignStatus: {
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2163
|
+
engine: {
|
2164
|
+
overlaps: {
|
2165
|
+
get: {
|
2166
|
+
body: unknown;
|
2167
|
+
params: Record<never, string>;
|
2168
|
+
query: {
|
2169
|
+
campaignId: string;
|
2170
|
+
distributionChain: number;
|
2171
|
+
};
|
2172
|
+
headers: {
|
2173
|
+
authorization: string;
|
2174
|
+
};
|
2175
|
+
response: {
|
2176
|
+
200: boolean;
|
2177
|
+
};
|
2176
2178
|
};
|
2177
2179
|
};
|
2178
2180
|
};
|
@@ -2151,19 +2151,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2151
2151
|
};
|
2152
2152
|
} & {
|
2153
2153
|
campaignStatus: {
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2154
|
+
engine: {
|
2155
|
+
overlaps: {
|
2156
|
+
get: {
|
2157
|
+
body: unknown;
|
2158
|
+
params: Record<never, string>;
|
2159
|
+
query: {
|
2160
|
+
campaignId: string;
|
2161
|
+
distributionChain: number;
|
2162
|
+
};
|
2163
|
+
headers: {
|
2164
|
+
authorization: string;
|
2165
|
+
};
|
2166
|
+
response: {
|
2167
|
+
200: boolean;
|
2168
|
+
};
|
2167
2169
|
};
|
2168
2170
|
};
|
2169
2171
|
};
|
@@ -2156,19 +2156,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2156
2156
|
};
|
2157
2157
|
} & {
|
2158
2158
|
campaignStatus: {
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2159
|
+
engine: {
|
2160
|
+
overlaps: {
|
2161
|
+
get: {
|
2162
|
+
body: unknown;
|
2163
|
+
params: Record<never, string>;
|
2164
|
+
query: {
|
2165
|
+
campaignId: string;
|
2166
|
+
distributionChain: number;
|
2167
|
+
};
|
2168
|
+
headers: {
|
2169
|
+
authorization: string;
|
2170
|
+
};
|
2171
|
+
response: {
|
2172
|
+
200: boolean;
|
2173
|
+
};
|
2172
2174
|
};
|
2173
2175
|
};
|
2174
2176
|
};
|
@@ -2174,19 +2174,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2174
2174
|
};
|
2175
2175
|
} & {
|
2176
2176
|
campaignStatus: {
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2177
|
+
engine: {
|
2178
|
+
overlaps: {
|
2179
|
+
get: {
|
2180
|
+
body: unknown;
|
2181
|
+
params: Record<never, string>;
|
2182
|
+
query: {
|
2183
|
+
campaignId: string;
|
2184
|
+
distributionChain: number;
|
2185
|
+
};
|
2186
|
+
headers: {
|
2187
|
+
authorization: string;
|
2188
|
+
};
|
2189
|
+
response: {
|
2190
|
+
200: boolean;
|
2191
|
+
};
|
2190
2192
|
};
|
2191
2193
|
};
|
2192
2194
|
};
|
@@ -2175,19 +2175,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2175
2175
|
};
|
2176
2176
|
} & {
|
2177
2177
|
campaignStatus: {
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2178
|
+
engine: {
|
2179
|
+
overlaps: {
|
2180
|
+
get: {
|
2181
|
+
body: unknown;
|
2182
|
+
params: Record<never, string>;
|
2183
|
+
query: {
|
2184
|
+
campaignId: string;
|
2185
|
+
distributionChain: number;
|
2186
|
+
};
|
2187
|
+
headers: {
|
2188
|
+
authorization: string;
|
2189
|
+
};
|
2190
|
+
response: {
|
2191
|
+
200: boolean;
|
2192
|
+
};
|
2191
2193
|
};
|
2192
2194
|
};
|
2193
2195
|
};
|
@@ -2157,19 +2157,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2157
2157
|
};
|
2158
2158
|
} & {
|
2159
2159
|
campaignStatus: {
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2160
|
+
engine: {
|
2161
|
+
overlaps: {
|
2162
|
+
get: {
|
2163
|
+
body: unknown;
|
2164
|
+
params: Record<never, string>;
|
2165
|
+
query: {
|
2166
|
+
campaignId: string;
|
2167
|
+
distributionChain: number;
|
2168
|
+
};
|
2169
|
+
headers: {
|
2170
|
+
authorization: string;
|
2171
|
+
};
|
2172
|
+
response: {
|
2173
|
+
200: boolean;
|
2174
|
+
};
|
2173
2175
|
};
|
2174
2176
|
};
|
2175
2177
|
};
|
@@ -2158,19 +2158,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2158
2158
|
};
|
2159
2159
|
} & {
|
2160
2160
|
campaignStatus: {
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2161
|
+
engine: {
|
2162
|
+
overlaps: {
|
2163
|
+
get: {
|
2164
|
+
body: unknown;
|
2165
|
+
params: Record<never, string>;
|
2166
|
+
query: {
|
2167
|
+
campaignId: string;
|
2168
|
+
distributionChain: number;
|
2169
|
+
};
|
2170
|
+
headers: {
|
2171
|
+
authorization: string;
|
2172
|
+
};
|
2173
|
+
response: {
|
2174
|
+
200: boolean;
|
2175
|
+
};
|
2174
2176
|
};
|
2175
2177
|
};
|
2176
2178
|
};
|
@@ -2160,19 +2160,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
2160
2160
|
};
|
2161
2161
|
} & {
|
2162
2162
|
campaignStatus: {
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2163
|
+
engine: {
|
2164
|
+
overlaps: {
|
2165
|
+
get: {
|
2166
|
+
body: unknown;
|
2167
|
+
params: Record<never, string>;
|
2168
|
+
query: {
|
2169
|
+
campaignId: string;
|
2170
|
+
distributionChain: number;
|
2171
|
+
};
|
2172
|
+
headers: {
|
2173
|
+
authorization: string;
|
2174
|
+
};
|
2175
|
+
response: {
|
2176
|
+
200: boolean;
|
2177
|
+
};
|
2176
2178
|
};
|
2177
2179
|
};
|
2178
2180
|
};
|