@merkl/api 0.20.101 → 0.20.102
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 +12 -12
- package/dist/src/engine/{erc20SubTypeProcessors/helpers/tokenType.d.ts → campaignTVL/implementations/Erc20/Erc20SubType.d.ts} +5 -13
- package/dist/src/engine/campaignTVL/implementations/Erc20/Erc20SubType.js +106 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.d.ts +9 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.js +11 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +6 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +8 -0
- package/dist/src/engine/dynamicData/implementations/Erc20.d.ts +4 -4
- package/dist/src/engine/dynamicData/implementations/Erc20.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +20 -19
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.js +31 -31
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.js +17 -17
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.js +6 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +40 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +32 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +29 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +31 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.js +100 -100
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +84 -84
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.js +1 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +130 -0
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.d.ts → Erc20/index.d.ts} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.js → Erc20/index.js} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +2 -2
- package/dist/src/index.d.ts +4 -4
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/router.d.ts +4 -4
- package/dist/src/utils/decodeCalls.d.ts +3 -3
- package/dist/src/utils/decodeCalls.js +80 -80
- package/dist/src/utils/encodeCalls.d.ts +2 -2
- package/dist/src/utils/encodeCalls.js +77 -77
- package/dist/src/utils/generateCardName.d.ts +2 -2
- package/dist/src/utils/generateCardName.js +97 -97
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.js +0 -232
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEuler;
|
7
7
|
call: string;
|
@@ -31,6 +31,6 @@ export declare class EulerLendProcessor extends GenericProcessor<callKeysEuler,
|
|
31
31
|
round4: callType[];
|
32
32
|
};
|
33
33
|
processingRound2(typeInfo: dataRawEuler, campaign: CampaignParameters<Campaign.EULER>): void;
|
34
|
-
processingRound5(index: number, type:
|
34
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawEuler, calls: string[], campaign: CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
|
35
35
|
}
|
36
36
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFluid;
|
7
7
|
call: 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(_index: number, type:
|
36
|
+
processingRound5(_index: number, type: Erc20SubType, 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,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFrax;
|
7
7
|
call: 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(_index: number, type:
|
31
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawFrax, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeFrax>;
|
32
32
|
}
|
33
33
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor } from "../GenericProcessor";
|
4
|
-
import { tokenType } from "../helpers/tokenType";
|
5
5
|
export class FraxProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|
7
7
|
round1: [
|
@@ -21,7 +21,7 @@ export class FraxProcessor extends GenericProcessor {
|
|
21
21
|
const priceUnderlying = (await pricer.get({ symbol: typeInfo.symbolUnderlyingToken })) ?? 1;
|
22
22
|
let priceTargetToken = 0;
|
23
23
|
let tvl = 0;
|
24
|
-
if (type ===
|
24
|
+
if (type === Erc20SubType.silostaking) {
|
25
25
|
priceTargetToken = priceUnderlying;
|
26
26
|
tvl = priceTargetToken * BN2Number(totalSupply, campaign.campaignParameters.decimalsTargetToken);
|
27
27
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawGamma;
|
7
7
|
call: string;
|
@@ -25,6 +25,6 @@ export declare class GammaALMProcessor extends GenericProcessor<callKeysGamma, d
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(_index: number, type:
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawGamma, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeGamma>;
|
29
29
|
}
|
30
30
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawGamma;
|
7
7
|
call: string;
|
@@ -33,11 +33,11 @@ export declare class GammaProcessor extends GenericProcessor<callKeysGamma, data
|
|
33
33
|
round4: callType[];
|
34
34
|
};
|
35
35
|
processingRound2(typeInfo: dataRawGamma): void;
|
36
|
-
processingRound5(_index: number, type:
|
37
|
-
computeRound1(type:
|
38
|
-
computeRound2(index: number, type:
|
39
|
-
computeRound3(index: number, type:
|
40
|
-
computeRound4(index: number, type:
|
41
|
-
computeRound5(index: number, type:
|
36
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawGamma, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeGamma>;
|
37
|
+
computeRound1(type: Erc20SubType, typeInfo: dataRawGamma): import("../tokenTypeStruct").tokenTypeStruct;
|
38
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawGamma, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
39
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawGamma, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
40
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawGamma, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
|
41
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawGamma, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
|
42
42
|
}
|
43
43
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawGearbox;
|
7
7
|
call: string;
|
@@ -39,6 +39,6 @@ export declare class GearboxProcessor extends GenericProcessor<callKeysGearbox,
|
|
39
39
|
round4: callType[];
|
40
40
|
};
|
41
41
|
processingRound2(typeInfo: dataRawGearbox): Promise<void>;
|
42
|
-
processingRound5(_index: number, type:
|
42
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawGearbox, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeGearbox>;
|
43
43
|
}
|
44
44
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawHanjiN;
|
7
7
|
call: string;
|
@@ -36,8 +36,8 @@ export declare class HanjiVaultProcessor extends GenericProcessor<callKeysHanjiN
|
|
36
36
|
};
|
37
37
|
processingRound2(typeInfo: dataRawHanjiN): void;
|
38
38
|
processingRound3(typeInfo: dataRawHanjiN): void;
|
39
|
-
computeRound3(index: number, type:
|
40
|
-
computeRound4(index: number, type:
|
41
|
-
processingRound5(_index: number, type:
|
39
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawHanjiN, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
40
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawHanjiN, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>): import("../tokenTypeStruct").tokenTypeStruct;
|
41
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawHanjiN, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeHanjiN>;
|
42
42
|
}
|
43
43
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawHS;
|
7
7
|
call: string;
|
@@ -24,6 +24,6 @@ export declare class HoldStationProcessor extends GenericProcessor<callKeysHS, d
|
|
24
24
|
round3: callType[];
|
25
25
|
round4: callType[];
|
26
26
|
};
|
27
|
-
processingRound5(_index: number, type:
|
27
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawHS, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeHS>;
|
28
28
|
}
|
29
29
|
export {};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { BigNumber } from "ethers";
|
4
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
|
-
import type { tokenType } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawHourglass;
|
8
8
|
call: string;
|
@@ -31,6 +31,6 @@ export declare class HourglassProcessor extends GenericProcessor<callKeysHourgla
|
|
31
31
|
round3: callType[];
|
32
32
|
round4: callType[];
|
33
33
|
};
|
34
|
-
processingRound5(_index: number, type:
|
34
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawHourglass, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeHourglass>;
|
35
35
|
}
|
36
36
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawMaverickBP;
|
7
7
|
call: string;
|
@@ -45,6 +45,6 @@ export declare class MaverickBPProcessor extends GenericProcessor<callKeysMaveri
|
|
45
45
|
};
|
46
46
|
processingRound1(typeInfo: dataRawMaverickBP): void;
|
47
47
|
processingRound2(typeInfo: dataRawMaverickBP): void;
|
48
|
-
processingRound5(_index: number, type:
|
48
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawMaverickBP, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeMaverickBP>;
|
49
49
|
}
|
50
50
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type {
|
4
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawMetamorpho;
|
7
7
|
call: string;
|
@@ -27,7 +27,7 @@ export declare class MetamorphoProcessor extends GenericProcessor<callKeysMetamo
|
|
27
27
|
round3: callType[];
|
28
28
|
round4: callType[];
|
29
29
|
};
|
30
|
-
processingRound5(_index: number, type:
|
31
|
-
computeRound3(index: number, type:
|
30
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawMetamorpho, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeMetamorpho>;
|
31
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawMetamorpho, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
32
32
|
}
|
33
33
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import { tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawNoLinkVault;
|
7
7
|
call: string;
|
@@ -28,11 +28,11 @@ export declare class NoLinkVaultProcessor extends GenericProcessor<callKeysNoLin
|
|
28
28
|
round4: callType[];
|
29
29
|
};
|
30
30
|
processingRound1(typeInfo: dataRawNoLinkVault): void;
|
31
|
-
processingRound5(index: number, type:
|
32
|
-
computeRound1(type:
|
33
|
-
computeRound2(index: number, type:
|
34
|
-
computeRound3(index: number, type:
|
35
|
-
computeRound4(index: number, type:
|
36
|
-
computeRound5(index: number, type:
|
31
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawNoLinkVault, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeNoLinkVault>;
|
32
|
+
computeRound1(type: Erc20SubType, typeInfo: dataRawNoLinkVault): import("../tokenTypeStruct").tokenTypeStruct;
|
33
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawNoLinkVault, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
34
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawNoLinkVault, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
35
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawNoLinkVault, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
|
36
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawNoLinkVault, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
|
37
37
|
}
|
38
38
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor } from "../GenericProcessor";
|
4
|
-
import { tokenType } from "../helpers/tokenType";
|
5
5
|
export class NoLinkVaultProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|
7
7
|
round1: [],
|
@@ -25,7 +25,7 @@ export class NoLinkVaultProcessor extends GenericProcessor {
|
|
25
25
|
typeInfo.protocol = "Unifi";
|
26
26
|
typeInfo.rateAccountant = "0xe0bDb7b9225A2CeB42998dc2E51D4D3CDeb7e3Be";
|
27
27
|
}
|
28
|
-
if (typeInfo.type ===
|
28
|
+
if (typeInfo.type === Erc20SubType.veda) {
|
29
29
|
// To retrieve the rateAccountant, look at a transaction, find the teller, then find the accountant.
|
30
30
|
if (typeInfo.tokenAddress === "0x08c6F91e2B681FaF5e17227F2a44C307b3C1364C")
|
31
31
|
typeInfo.rateAccountant = "0xc315D6e14DDCDC7407784e2Caf815d131Bc1D3E7";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawPendle;
|
7
7
|
call: string;
|
@@ -24,6 +24,6 @@ export declare class PendleProcessor extends GenericProcessor<callKeysPendle, da
|
|
24
24
|
round3: callType[];
|
25
25
|
round4: callType[];
|
26
26
|
};
|
27
|
-
processingRound5(_index: number, type:
|
27
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawPendle, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypePendle>;
|
28
28
|
}
|
29
29
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawPendleYT;
|
7
7
|
call: string;
|
@@ -24,6 +24,6 @@ export declare class PendleYTProcessor extends GenericProcessor<callKeysPendleYT
|
|
24
24
|
round3: callType[];
|
25
25
|
round4: callType[];
|
26
26
|
};
|
27
|
-
processingRound5(_index: number, type:
|
27
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawPendleYT, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypePendleYT>;
|
28
28
|
}
|
29
29
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawRadiant;
|
7
7
|
call: string;
|
@@ -26,7 +26,7 @@ export declare class RadiantProcessor extends GenericProcessor<callKeysRadiant,
|
|
26
26
|
round3: callType[];
|
27
27
|
round4: callType[];
|
28
28
|
};
|
29
|
-
processingRound5(_index: number, type:
|
30
|
-
computeRound3(index: number, type:
|
29
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawRadiant, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeRadiant>;
|
30
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawRadiant, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
31
31
|
}
|
32
32
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawTemplate;
|
7
7
|
call: string;
|
@@ -35,6 +35,6 @@ export declare class RfxProcessor extends GenericProcessor<callKeysRfx, dataRawT
|
|
35
35
|
round4: callType[];
|
36
36
|
};
|
37
37
|
processingRound1(typeInfo: dataRawTemplate): void;
|
38
|
-
processingRound5(index: number, type:
|
38
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeRfx>;
|
39
39
|
}
|
40
40
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawSatlayer;
|
7
7
|
call: string;
|
@@ -29,6 +29,6 @@ export declare class SatlayerProcessor extends GenericProcessor<callKeysSatlayer
|
|
29
29
|
round3: callType[];
|
30
30
|
round4: callType[];
|
31
31
|
};
|
32
|
-
processingRound5(_index: number, type:
|
32
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawSatlayer, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSatlayer>;
|
33
33
|
}
|
34
34
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawSpectra;
|
7
7
|
call: string;
|
@@ -26,6 +26,6 @@ export declare class SpectraProcessor extends GenericProcessor<callKeysSpectra,
|
|
26
26
|
round3: callType[];
|
27
27
|
round4: callType[];
|
28
28
|
};
|
29
|
-
processingRound5(_index: number, type:
|
29
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawSpectra, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeSpectra>;
|
30
30
|
}
|
31
31
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawSpectra;
|
7
7
|
call: string;
|
@@ -26,6 +26,6 @@ export declare class SpectraYTProcessor extends GenericProcessor<callKeysSpectra
|
|
26
26
|
round3: callType[];
|
27
27
|
round4: callType[];
|
28
28
|
};
|
29
|
-
processingRound5(_index: number, type:
|
29
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawSpectra, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeSpectra>;
|
30
30
|
}
|
31
31
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callKeysSplice = mandatoryCallKeys & {
|
6
6
|
priceTargetToken: string;
|
7
7
|
};
|
@@ -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(_index: number, _type:
|
14
|
-
computeRound3(index: number, type:
|
13
|
+
processingRound5(_index: number, _type: Erc20SubType, typeInfo: dataRawSplice, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeSplice>;
|
14
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawSplice, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
15
15
|
}
|
16
16
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawSturdySilo;
|
7
7
|
call: string;
|
@@ -34,6 +34,6 @@ export declare class SturdySiloProcessor extends GenericProcessor<callKeysSturdy
|
|
34
34
|
round3: callType[];
|
35
35
|
round4: callType[];
|
36
36
|
};
|
37
|
-
processingRound5(_index: number, type:
|
37
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawSturdySilo, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSturdySilo>;
|
38
38
|
}
|
39
39
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import { tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawTempest;
|
7
7
|
call: string;
|
@@ -46,7 +46,7 @@ export declare class TempestVaultProcessor extends GenericProcessor<callKeysTemp
|
|
46
46
|
round4: callType[];
|
47
47
|
};
|
48
48
|
processingRound2(typeInfo: dataRawTempest): void;
|
49
|
-
computeRound3(index: number, type:
|
50
|
-
processingRound5(_index: number, type:
|
49
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawTempest, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
50
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawTempest, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeTempest>;
|
51
51
|
}
|
52
52
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number, NULL_ADDRESS } from "@sdk";
|
3
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor } from "../GenericProcessor";
|
4
|
-
import { tokenType } from "../helpers/tokenType";
|
5
5
|
export class TempestVaultProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|
7
7
|
round1: [
|
@@ -58,7 +58,7 @@ export class TempestVaultProcessor extends GenericProcessor {
|
|
58
58
|
const decimalsToken1 = Number(typeInfo.decimalsToken1);
|
59
59
|
const amount0 = BN2Number(typeInfo.amount0Idle, decimalsToken0) + BN2Number(typeInfo.amount0Invested, decimalsToken0);
|
60
60
|
let amount1 = BN2Number(typeInfo.amount1Idle, decimalsToken1) + BN2Number(typeInfo.amount1Invested, decimalsToken1);
|
61
|
-
if (type ===
|
61
|
+
if (type === Erc20SubType.tempestStaking) {
|
62
62
|
amount1 += !!typeInfo.amountInQueue ? BN2Number(typeInfo.amountInQueue, decimalsToken1) : 0;
|
63
63
|
}
|
64
64
|
const tokenAPRice = (await pricer.get({ symbol: typeInfo.symbolToken0 })) ?? 0;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawTemplate;
|
7
7
|
call: string;
|
@@ -22,11 +22,11 @@ export declare class TemplateProcessor extends GenericProcessor<callKeysTemplate
|
|
22
22
|
processingRound2(typeInfo: dataRawTemplate): void;
|
23
23
|
processingRound3(typeInfo: dataRawTemplate): void;
|
24
24
|
processingRound4(typeInfo: dataRawTemplate): void;
|
25
|
-
processingRound5(index: number, type:
|
26
|
-
computeRound1(type:
|
27
|
-
computeRound2(index: number, type:
|
28
|
-
computeRound3(index: number, type:
|
29
|
-
computeRound4(index: number, type:
|
30
|
-
computeRound5(index: number, type:
|
25
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeTemplate>;
|
26
|
+
computeRound1(type: Erc20SubType, typeInfo: dataRawTemplate): import("../tokenTypeStruct").tokenTypeStruct;
|
27
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
28
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
29
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
|
30
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
|
31
31
|
}
|
32
32
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawToros;
|
7
7
|
call: string;
|
@@ -25,6 +25,6 @@ export declare class TorosProcessor extends GenericProcessor<callKeysToros, data
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(_index: number, type:
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawToros, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeToros>;
|
29
29
|
}
|
30
30
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawUni;
|
7
7
|
call: string;
|
@@ -38,7 +38,7 @@ export declare class UniswapProcessor extends GenericProcessor<callKeysUni, data
|
|
38
38
|
round4: callType[];
|
39
39
|
};
|
40
40
|
processingRound2(typeInfo: dataRawUni): void;
|
41
|
-
computeRound3(index: number, type:
|
42
|
-
processingRound5(_index: number, type:
|
41
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawUni, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
42
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawUni, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeUni>;
|
43
43
|
}
|
44
44
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawVicuna;
|
7
7
|
call: string;
|
@@ -23,6 +23,6 @@ export declare class VicunaProcessor extends GenericProcessor<callKeysVicuna, da
|
|
23
23
|
round3: callType[];
|
24
24
|
round4: callType[];
|
25
25
|
};
|
26
|
-
processingRound5(_index: number, type:
|
26
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawVicuna, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeVicuna>;
|
27
27
|
}
|
28
28
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawBeefy;
|
7
7
|
call: string;
|
@@ -27,6 +27,6 @@ export declare class WoofiProcessor extends GenericProcessor<callKeysBeefy, data
|
|
27
27
|
round3: callType[];
|
28
28
|
round4: callType[];
|
29
29
|
};
|
30
|
-
processingRound5(index: number, type:
|
30
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBeefy, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
|
31
31
|
}
|
32
32
|
export {};
|
package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
|
-
import type { tokenType } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawzkSwapThreePool;
|
7
7
|
call: string;
|
@@ -48,6 +48,6 @@ export declare class ZkSwapThreePoolProcessor extends GenericProcessor<callKeysZ
|
|
48
48
|
round4: callType[];
|
49
49
|
};
|
50
50
|
processingRound2(typeInfo: dataRawzkSwapThreePool): void;
|
51
|
-
processingRound5(_index: number, type:
|
51
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawzkSwapThreePool, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeZkSwapThreePool>;
|
52
52
|
}
|
53
53
|
export {};
|