@merkl/api 0.10.118 → 0.10.120
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/constants.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- 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/RfxProcessor.d.ts +37 -0
- 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/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/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
|
};
|
@@ -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]: {
|
@@ -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;
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts
CHANGED
@@ -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, 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 dataRawMetamorpho;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysMetamorpho;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysMetamorpho;
|
10
10
|
};
|
11
|
-
type callKeysMetamorpho =
|
11
|
+
type callKeysMetamorpho = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
symbolUnderlyingToken: string;
|
14
14
|
};
|
@@ -25,7 +25,7 @@ export declare class MetamorphoProcessor extends GenericProcessor<callKeysMetamo
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(
|
28
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawMetamorpho, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeMetamorpho>;
|
29
29
|
computeRound3(index: number, type: tokenType, typeInfo: dataRawMetamorpho, calls: string[]): tokenTypeStruct;
|
30
30
|
}
|
31
31
|
export {};
|
@@ -1,27 +1,29 @@
|
|
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
|
-
key: keyof
|
6
|
+
key: keyof dataRawPendle;
|
7
7
|
call: string;
|
8
|
-
target: keyof
|
9
|
-
metaData?:
|
8
|
+
target: keyof callKeysPendle;
|
9
|
+
metaData?: keyof callKeysPendle;
|
10
10
|
};
|
11
|
-
type
|
12
|
-
readTokensRaw: string[];
|
11
|
+
type callKeysPendle = mandatoryCallKeys & {
|
13
12
|
SYToken: string;
|
13
|
+
underlying: string;
|
14
14
|
symbolUnderlyingToken: string;
|
15
15
|
};
|
16
|
-
type
|
17
|
-
|
18
|
-
|
16
|
+
type dataRawPendle = callKeysPendle & {
|
17
|
+
readTokensRaw: string[];
|
18
|
+
};
|
19
|
+
type dataTypePendle = dataType & {};
|
20
|
+
export declare class PendleProcessor extends GenericProcessor<callKeysPendle, dataRawPendle, dataTypePendle> {
|
19
21
|
rounds: {
|
20
22
|
round1: callType[];
|
21
23
|
round2: callType[];
|
22
24
|
round3: callType[];
|
23
25
|
round4: callType[];
|
24
26
|
};
|
25
|
-
processingRound5(
|
27
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawPendle, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypePendle>;
|
26
28
|
}
|
27
29
|
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 dataRawRadiant;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysRadiant;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysRadiant;
|
10
10
|
};
|
11
|
-
type callKeysRadiant =
|
11
|
+
type callKeysRadiant = mandatoryCallKeys & {
|
12
12
|
underlyingToken: string;
|
13
13
|
priceBN: string;
|
14
14
|
symbolUnderlyingToken: string;
|
@@ -26,7 +26,7 @@ export declare class RadiantProcessor extends GenericProcessor<callKeysRadiant,
|
|
26
26
|
round3: callType[];
|
27
27
|
round4: callType[];
|
28
28
|
};
|
29
|
-
processingRound5(
|
29
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawRadiant, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeRadiant>;
|
30
30
|
computeRound3(index: number, type: tokenType, typeInfo: dataRawRadiant, calls: string[]): tokenTypeStruct;
|
31
31
|
}
|
32
32
|
export {};
|
@@ -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 {};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
-
import { GenericProcessor, type
|
5
|
-
type callKeysSplice =
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
|
+
type callKeysSplice = mandatoryCallKeys & {
|
6
6
|
priceTargetToken: string;
|
7
7
|
};
|
8
8
|
type dataRawSplice = callKeysSplice & {};
|
@@ -10,7 +10,7 @@ type dataTypeSplice = dataType & {
|
|
10
10
|
priceTargetToken: number;
|
11
11
|
};
|
12
12
|
export declare class SpliceProcessor extends GenericProcessor<callKeysSplice, dataRawSplice, dataTypeSplice> {
|
13
|
-
processingRound5(
|
13
|
+
processingRound5(_index: number, _type: tokenType, typeInfo: dataRawSplice, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeSplice>;
|
14
14
|
computeRound3(index: number, type: tokenType, typeInfo: dataRawSplice, calls: string[]): tokenTypeStruct;
|
15
15
|
}
|
16
16
|
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.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 dataRawSturdySilo;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysSturdySilo;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysSturdySilo;
|
10
10
|
};
|
11
|
-
type callKeysSturdySilo =
|
11
|
+
type callKeysSturdySilo = mandatoryCallKeys & {
|
12
12
|
underlying: string;
|
13
13
|
sharePrice: string;
|
14
14
|
collateralContract: string;
|
@@ -34,6 +34,6 @@ export declare class SturdySiloProcessor extends GenericProcessor<callKeysSturdy
|
|
34
34
|
round3: callType[];
|
35
35
|
round4: callType[];
|
36
36
|
};
|
37
|
-
processingRound5(
|
37
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawSturdySilo, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSturdySilo>;
|
38
38
|
}
|
39
39
|
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TemplateProcessor.d.ts
CHANGED
@@ -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, 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 dataRawTemplate;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysTemplate;
|
9
|
-
metaData?:
|
9
|
+
metaData?: keyof callKeysTemplate;
|
10
10
|
};
|
11
|
-
type callKeysTemplate =
|
11
|
+
type callKeysTemplate = mandatoryCallKeys & {};
|
12
12
|
type dataRawTemplate = callKeysTemplate & {};
|
13
13
|
type dataTypeTemplate = dataType & {};
|
14
14
|
export declare class TemplateProcessor extends GenericProcessor<callKeysTemplate, dataRawTemplate, dataTypeTemplate> {
|
@@ -1,15 +1,16 @@
|
|
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 dataRawToros;
|
7
7
|
call: string;
|
8
8
|
target: keyof callKeysToros;
|
9
9
|
metaData?: any;
|
10
10
|
};
|
11
|
-
type callKeysToros =
|
11
|
+
type callKeysToros = mandatoryCallKeys & {
|
12
12
|
tokenPrice: string;
|
13
|
+
name: string;
|
13
14
|
};
|
14
15
|
type dataRawToros = callKeysToros & {};
|
15
16
|
type dataTypeToros = dataType & {
|
@@ -24,6 +25,6 @@ export declare class TorosProcessor extends GenericProcessor<callKeysToros, data
|
|
24
25
|
round3: callType[];
|
25
26
|
round4: callType[];
|
26
27
|
};
|
27
|
-
processingRound5(
|
28
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawToros, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeToros>;
|
28
29
|
}
|
29
30
|
export {};
|