@merkl/api 0.10.117 → 0.10.119
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/engine/.generated/index.d.ts +1423 -189
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/schema.prisma +9 -3
- package/dist/src/eden/index.d.ts +100 -15
- package/dist/src/index.d.ts +40 -5
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AssetProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BeefyProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EnzymeProcessor.d.ts +5 -5
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts +5 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts +4 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FluidProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FraxProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GearboxProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +3 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +12 -10
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RadiantProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TemplateProcessor.d.ts +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TorosProcessor.d.ts +4 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/UniswapProcessor.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/curveProcessor.d.ts +4 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +4 -5
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -5
- package/dist/src/modules/v4/router.d.ts +40 -5
- package/dist/src/modules/v4/user/user.controller.d.ts +36 -0
- package/dist/src/modules/v4/user/user.repository.d.ts +5 -0
- package/dist/src/modules/v4/user/user.service.d.ts +8 -2
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +40 -5
- package/dist/src/routes/v3/blacklist.d.ts +40 -5
- package/dist/src/routes/v3/campaigns.d.ts +40 -5
- package/dist/src/routes/v3/campaignsInfo.d.ts +40 -5
- package/dist/src/routes/v3/multiChainPositions.d.ts +40 -5
- package/dist/src/routes/v3/opportunity.d.ts +40 -5
- package/dist/src/routes/v3/positions.d.ts +40 -5
- package/dist/src/routes/v3/rewards.d.ts +40 -5
- package/dist/src/routes/v3/updates.d.ts +40 -5
- package/dist/src/routes/v3/userRewards.d.ts +40 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@ generator client {
|
|
2
2
|
provider = "prisma-client-js"
|
3
3
|
binaryTargets = ["native", "linux-arm64-openssl-1.1.x", "linux-musl-arm64-openssl-3.0.x"]
|
4
4
|
output = ".generated/"
|
5
|
-
previewFeatures = ["
|
5
|
+
previewFeatures = ["fullTextSearchPostgres", "relationJoins"]
|
6
6
|
}
|
7
7
|
|
8
8
|
datasource db {
|
@@ -186,8 +186,6 @@ model ERC20Holders {
|
|
186
186
|
@@id([chainId, token])
|
187
187
|
}
|
188
188
|
|
189
|
-
// TO DROP
|
190
|
-
|
191
189
|
model Tokens {
|
192
190
|
chainId Int
|
193
191
|
address String @db.Char(42)
|
@@ -197,6 +195,14 @@ model Tokens {
|
|
197
195
|
@@id([chainId, address])
|
198
196
|
}
|
199
197
|
|
198
|
+
model StateSave {
|
199
|
+
id String
|
200
|
+
blockNumber Int
|
201
|
+
state Json
|
202
|
+
|
203
|
+
@@id([id, blockNumber])
|
204
|
+
}
|
205
|
+
|
200
206
|
model CampaignCreators {
|
201
207
|
address String @db.Char(42)
|
202
208
|
tags String @default("")
|
package/dist/src/eden/index.d.ts
CHANGED
@@ -1054,6 +1054,7 @@ declare const eden: {
|
|
1054
1054
|
fetch?: RequestInit | undefined;
|
1055
1055
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1056
1056
|
200: {
|
1057
|
+
tags: string[];
|
1057
1058
|
address: string;
|
1058
1059
|
} | null;
|
1059
1060
|
}>>;
|
@@ -1304,6 +1305,31 @@ declare const eden: {
|
|
1304
1305
|
};
|
1305
1306
|
}>>;
|
1306
1307
|
};
|
1308
|
+
tags: {
|
1309
|
+
get: (options: {
|
1310
|
+
headers: {
|
1311
|
+
authorization: string;
|
1312
|
+
};
|
1313
|
+
query?: Record<string, unknown> | undefined;
|
1314
|
+
fetch?: RequestInit | undefined;
|
1315
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1316
|
+
200: {
|
1317
|
+
tags: string[];
|
1318
|
+
address: string;
|
1319
|
+
}[];
|
1320
|
+
}>>;
|
1321
|
+
};
|
1322
|
+
sync: {
|
1323
|
+
post: (body: unknown, options: {
|
1324
|
+
headers: {
|
1325
|
+
authorization: string;
|
1326
|
+
};
|
1327
|
+
query?: Record<string, unknown> | undefined;
|
1328
|
+
fetch?: RequestInit | undefined;
|
1329
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1330
|
+
200: void;
|
1331
|
+
}>>;
|
1332
|
+
};
|
1307
1333
|
};
|
1308
1334
|
roots: {
|
1309
1335
|
timestamps: {
|
@@ -1331,11 +1357,10 @@ declare const eden: {
|
|
1331
1357
|
fetch?: RequestInit | undefined;
|
1332
1358
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1333
1359
|
200: {
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
};
|
1360
|
+
live: string;
|
1361
|
+
tree: string;
|
1362
|
+
lastTree: string;
|
1363
|
+
}[];
|
1339
1364
|
}>>;
|
1340
1365
|
};
|
1341
1366
|
};
|
@@ -3042,6 +3067,25 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3042
3067
|
};
|
3043
3068
|
};
|
3044
3069
|
};
|
3070
|
+
} & {
|
3071
|
+
users: {
|
3072
|
+
tags: {
|
3073
|
+
get: {
|
3074
|
+
body: unknown;
|
3075
|
+
params: Record<never, string>;
|
3076
|
+
query: unknown;
|
3077
|
+
headers: {
|
3078
|
+
authorization: string;
|
3079
|
+
};
|
3080
|
+
response: {
|
3081
|
+
200: {
|
3082
|
+
tags: string[];
|
3083
|
+
address: string;
|
3084
|
+
}[];
|
3085
|
+
};
|
3086
|
+
};
|
3087
|
+
};
|
3088
|
+
};
|
3045
3089
|
} & {
|
3046
3090
|
users: {
|
3047
3091
|
":address": {
|
@@ -3052,6 +3096,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3052
3096
|
headers: unknown;
|
3053
3097
|
response: {
|
3054
3098
|
200: {
|
3099
|
+
tags: string[];
|
3055
3100
|
address: string;
|
3056
3101
|
} | null;
|
3057
3102
|
};
|
@@ -3298,6 +3343,22 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3298
3343
|
};
|
3299
3344
|
};
|
3300
3345
|
};
|
3346
|
+
} & {
|
3347
|
+
users: {
|
3348
|
+
sync: {
|
3349
|
+
post: {
|
3350
|
+
body: unknown;
|
3351
|
+
params: Record<never, string>;
|
3352
|
+
query: unknown;
|
3353
|
+
headers: {
|
3354
|
+
authorization: string;
|
3355
|
+
};
|
3356
|
+
response: {
|
3357
|
+
200: void;
|
3358
|
+
};
|
3359
|
+
};
|
3360
|
+
};
|
3361
|
+
};
|
3301
3362
|
} & {
|
3302
3363
|
users: {
|
3303
3364
|
":address": {
|
@@ -3358,11 +3419,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3358
3419
|
headers: unknown;
|
3359
3420
|
response: {
|
3360
3421
|
200: {
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3365
|
-
};
|
3422
|
+
live: string;
|
3423
|
+
tree: string;
|
3424
|
+
lastTree: string;
|
3425
|
+
}[];
|
3366
3426
|
};
|
3367
3427
|
};
|
3368
3428
|
};
|
@@ -4918,6 +4978,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
4918
4978
|
fetch?: RequestInit | undefined;
|
4919
4979
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4920
4980
|
200: {
|
4981
|
+
tags: string[];
|
4921
4982
|
address: string;
|
4922
4983
|
} | null;
|
4923
4984
|
}>>;
|
@@ -5168,6 +5229,31 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5168
5229
|
};
|
5169
5230
|
}>>;
|
5170
5231
|
};
|
5232
|
+
tags: {
|
5233
|
+
get: (options: {
|
5234
|
+
headers: {
|
5235
|
+
authorization: string;
|
5236
|
+
};
|
5237
|
+
query?: Record<string, unknown> | undefined;
|
5238
|
+
fetch?: RequestInit | undefined;
|
5239
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5240
|
+
200: {
|
5241
|
+
tags: string[];
|
5242
|
+
address: string;
|
5243
|
+
}[];
|
5244
|
+
}>>;
|
5245
|
+
};
|
5246
|
+
sync: {
|
5247
|
+
post: (body: unknown, options: {
|
5248
|
+
headers: {
|
5249
|
+
authorization: string;
|
5250
|
+
};
|
5251
|
+
query?: Record<string, unknown> | undefined;
|
5252
|
+
fetch?: RequestInit | undefined;
|
5253
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5254
|
+
200: void;
|
5255
|
+
}>>;
|
5256
|
+
};
|
5171
5257
|
};
|
5172
5258
|
roots: {
|
5173
5259
|
timestamps: {
|
@@ -5195,11 +5281,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5195
5281
|
fetch?: RequestInit | undefined;
|
5196
5282
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5197
5283
|
200: {
|
5198
|
-
|
5199
|
-
|
5200
|
-
|
5201
|
-
|
5202
|
-
};
|
5284
|
+
live: string;
|
5285
|
+
tree: string;
|
5286
|
+
lastTree: string;
|
5287
|
+
}[];
|
5203
5288
|
}>>;
|
5204
5289
|
};
|
5205
5290
|
};
|
package/dist/src/index.d.ts
CHANGED
@@ -1324,6 +1324,25 @@ declare const app: Elysia<"", false, {
|
|
1324
1324
|
};
|
1325
1325
|
};
|
1326
1326
|
};
|
1327
|
+
} & {
|
1328
|
+
users: {
|
1329
|
+
tags: {
|
1330
|
+
get: {
|
1331
|
+
body: unknown;
|
1332
|
+
params: Record<never, string>;
|
1333
|
+
query: unknown;
|
1334
|
+
headers: {
|
1335
|
+
authorization: string;
|
1336
|
+
};
|
1337
|
+
response: {
|
1338
|
+
200: {
|
1339
|
+
tags: string[];
|
1340
|
+
address: string;
|
1341
|
+
}[];
|
1342
|
+
};
|
1343
|
+
};
|
1344
|
+
};
|
1345
|
+
};
|
1327
1346
|
} & {
|
1328
1347
|
users: {
|
1329
1348
|
":address": {
|
@@ -1334,6 +1353,7 @@ declare const app: Elysia<"", false, {
|
|
1334
1353
|
headers: unknown;
|
1335
1354
|
response: {
|
1336
1355
|
200: {
|
1356
|
+
tags: string[];
|
1337
1357
|
address: string;
|
1338
1358
|
} | null;
|
1339
1359
|
};
|
@@ -1580,6 +1600,22 @@ declare const app: Elysia<"", false, {
|
|
1580
1600
|
};
|
1581
1601
|
};
|
1582
1602
|
};
|
1603
|
+
} & {
|
1604
|
+
users: {
|
1605
|
+
sync: {
|
1606
|
+
post: {
|
1607
|
+
body: unknown;
|
1608
|
+
params: Record<never, string>;
|
1609
|
+
query: unknown;
|
1610
|
+
headers: {
|
1611
|
+
authorization: string;
|
1612
|
+
};
|
1613
|
+
response: {
|
1614
|
+
200: void;
|
1615
|
+
};
|
1616
|
+
};
|
1617
|
+
};
|
1618
|
+
};
|
1583
1619
|
} & {
|
1584
1620
|
users: {
|
1585
1621
|
":address": {
|
@@ -1640,11 +1676,10 @@ declare const app: Elysia<"", false, {
|
|
1640
1676
|
headers: unknown;
|
1641
1677
|
response: {
|
1642
1678
|
200: {
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
};
|
1679
|
+
live: string;
|
1680
|
+
tree: string;
|
1681
|
+
lastTree: string;
|
1682
|
+
}[];
|
1648
1683
|
};
|
1649
1684
|
};
|
1650
1685
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawAave;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysAave;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysAave;
|
10
10
|
};
|
11
|
-
export type callKeysAave =
|
11
|
+
export type callKeysAave = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
symbolUnderlyingToken: string;
|
14
14
|
};
|
@@ -25,6 +25,6 @@ export declare class AaveProcessor extends GenericProcessor<callKeysAave, dataRa
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(
|
28
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawAave, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
|
29
29
|
}
|
30
30
|
export {};
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawAsset;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysAsset;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysAsset;
|
10
10
|
optional?: boolean;
|
11
11
|
};
|
12
|
-
type callKeysAsset =
|
12
|
+
type callKeysAsset = mandatoryCallKeys & {
|
13
13
|
underlying: string;
|
14
14
|
exchangeRate: string;
|
15
15
|
symbolUnderlyingToken: string;
|
@@ -2,14 +2,14 @@ import type { Pricer } from "../../../../../utils/pricer";
|
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
-
import { GenericProcessor, type
|
5
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawAura;
|
8
8
|
call: string;
|
9
9
|
target: keyof callKeysAura;
|
10
|
-
metaData?:
|
10
|
+
metaData?: keyof callKeysAura;
|
11
11
|
};
|
12
|
-
type callKeysAura =
|
12
|
+
type callKeysAura = mandatoryCallKeys & {
|
13
13
|
balancerPool: string;
|
14
14
|
vault: string;
|
15
15
|
auraOperator: string;
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts
CHANGED
@@ -2,14 +2,14 @@ import type { Pricer } from "../../../../../utils/pricer";
|
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
-
import { GenericProcessor, type
|
5
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBG;
|
8
8
|
call: string;
|
9
9
|
target: keyof callKeysBG;
|
10
|
-
metaData?:
|
10
|
+
metaData?: keyof callKeysBG;
|
11
11
|
};
|
12
|
-
type callKeysBG =
|
12
|
+
type callKeysBG = mandatoryCallKeys & {
|
13
13
|
gyroscopeToken: string;
|
14
14
|
balanceUnderlyingPoolTokens: string;
|
15
15
|
totalSupplyUnderlyingPoolTokens: string;
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts
CHANGED
@@ -2,14 +2,14 @@ import type { Pricer } from "../../../../../utils/pricer";
|
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { BigNumber } from "ethers";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
-
import { GenericProcessor, type
|
5
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBP;
|
8
8
|
call: string;
|
9
9
|
target: keyof callKeysBP;
|
10
|
-
metaData?:
|
10
|
+
metaData?: keyof callKeysBP;
|
11
11
|
};
|
12
|
-
type callKeysBP =
|
12
|
+
type callKeysBP = mandatoryCallKeys & {
|
13
13
|
tokenAddress: string;
|
14
14
|
poolId: string;
|
15
15
|
vault: string;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawBeefy;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysBeefy;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysBeefy;
|
10
10
|
};
|
11
|
-
type callKeysBeefy =
|
11
|
+
type callKeysBeefy = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
pricePerShare: string;
|
14
14
|
token0: string;
|
@@ -43,6 +43,6 @@ export declare class BeefyProcessor extends GenericProcessor<callKeysBeefy, data
|
|
43
43
|
round3: callType[];
|
44
44
|
round4: callType[];
|
45
45
|
};
|
46
|
-
processingRound5(
|
46
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawBeefy, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
|
47
47
|
}
|
48
48
|
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawCompound;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysCompound;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysCompound;
|
10
10
|
};
|
11
|
-
type callKeysCompound =
|
11
|
+
type callKeysCompound = mandatoryCallKeys & {
|
12
12
|
tokenAddress: string;
|
13
13
|
totalBorrow: string;
|
14
14
|
balanceBaseToken: string;
|
@@ -39,6 +39,6 @@ export declare class CompoundProcessor extends GenericProcessor<callKeysCompound
|
|
39
39
|
round3: callType[];
|
40
40
|
round4: callType[];
|
41
41
|
};
|
42
|
-
processingRound5(
|
42
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawCompound, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCompound>;
|
43
43
|
}
|
44
44
|
export {};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEnzyme;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysEnzyme;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysEnzyme;
|
10
10
|
};
|
11
|
-
type callKeysEnzyme =
|
11
|
+
type callKeysEnzyme = mandatoryCallKeys & {
|
12
12
|
factory: string;
|
13
13
|
underlying: string;
|
14
14
|
exchangeRate: string;
|
@@ -33,8 +33,8 @@ export declare class EnzymeProcessor extends GenericProcessor<callKeysEnzyme, da
|
|
33
33
|
round3: callType[];
|
34
34
|
round4: callType[];
|
35
35
|
};
|
36
|
-
processingRound5(
|
37
|
-
processingRound2(typeInfo:
|
36
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawEnzyme, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEnzyme>;
|
37
|
+
processingRound2(typeInfo: dataRawEnzyme): void;
|
38
38
|
computeRound3(index: number, type: tokenType, typeInfo: dataRawEnzyme, calls: string[]): tokenTypeStruct;
|
39
39
|
}
|
40
40
|
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEuler;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysEuler;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysEuler;
|
10
10
|
};
|
11
|
-
type callKeysEuler =
|
11
|
+
type callKeysEuler = mandatoryCallKeys & {
|
12
12
|
vault: string;
|
13
13
|
underlying: string;
|
14
14
|
symbolUnderlyingToken: string;
|
15
15
|
decimalsUnderlyingToken: string;
|
16
16
|
targetTotalAsset: string;
|
17
|
+
totalAssets: string;
|
17
18
|
};
|
18
19
|
type dataRawEuler = callKeysEuler & {};
|
19
20
|
type dataTypeEuler = dataType & {
|
@@ -32,6 +33,6 @@ export declare class EulerBorrowProcessor extends GenericProcessor<callKeysEuler
|
|
32
33
|
round3: callType[];
|
33
34
|
round4: callType[];
|
34
35
|
};
|
35
|
-
processingRound5(
|
36
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawEuler, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
|
36
37
|
}
|
37
38
|
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEuler;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysEuler;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysEuler;
|
10
10
|
};
|
11
|
-
type callKeysEuler =
|
11
|
+
type callKeysEuler = mandatoryCallKeys & {
|
12
12
|
vault: string;
|
13
13
|
underlying: string;
|
14
14
|
symbolUnderlyingToken: string;
|
15
15
|
decimalsUnderlyingToken: string;
|
16
16
|
targetTotalAsset: string;
|
17
|
+
totalAssets: string;
|
17
18
|
};
|
18
19
|
type dataRawEuler = callKeysEuler & {};
|
19
20
|
type dataTypeEuler = dataType & {
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFluid;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysFluid;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysFluid;
|
10
10
|
};
|
11
|
-
type callKeysFluid =
|
11
|
+
type callKeysFluid = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
exchangeRate: string;
|
14
14
|
symbolUnderlyingToken: string;
|
@@ -33,7 +33,7 @@ export declare class FluidProcessor extends GenericProcessor<callKeysFluid, data
|
|
33
33
|
round3: callType[];
|
34
34
|
round4: callType[];
|
35
35
|
};
|
36
|
-
processingRound5(
|
36
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawFluid, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeFluid>;
|
37
37
|
processingRound3(typeInfo: dataRawFluid): void;
|
38
38
|
}
|
39
39
|
export {};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFrax;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysFrax;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysFrax;
|
10
10
|
};
|
11
|
-
type callKeysFrax =
|
11
|
+
type callKeysFrax = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
sharePrice: string;
|
14
14
|
symbolUnderlyingToken: string;
|
@@ -28,6 +28,6 @@ export declare class FraxProcessor extends GenericProcessor<callKeysFrax, dataRa
|
|
28
28
|
round3: callType[];
|
29
29
|
round4: callType[];
|
30
30
|
};
|
31
|
-
processingRound5(
|
31
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawFrax, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeFrax>;
|
32
32
|
}
|
33
33
|
export {};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawGearbox;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysGearbox;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysGearbox;
|
10
10
|
};
|
11
|
-
type callKeysGearbox =
|
11
|
+
type callKeysGearbox = mandatoryCallKeys & {
|
12
12
|
stakingToken: string;
|
13
13
|
balanceStakingToken: string;
|
14
14
|
underlyingToken: string;
|
@@ -35,6 +35,6 @@ export declare class GearboxProcessor extends GenericProcessor<callKeysGearbox,
|
|
35
35
|
round3: callType[];
|
36
36
|
round4: callType[];
|
37
37
|
};
|
38
|
-
processingRound5(
|
38
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawGearbox, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeGearbox>;
|
39
39
|
}
|
40
40
|
export {};
|
@@ -15,8 +15,10 @@ export type callType = {
|
|
15
15
|
metaData?: any;
|
16
16
|
optional?: boolean;
|
17
17
|
};
|
18
|
-
export type callKeys = {
|
18
|
+
export type callKeys = mandatoryCallKeys & {
|
19
19
|
[key: string]: string;
|
20
|
+
};
|
21
|
+
export type mandatoryCallKeys = {
|
20
22
|
tokenAddress: string;
|
21
23
|
blacklistedSupply: string;
|
22
24
|
totalSupply: string;
|