@merkl/api 0.20.101 → 0.20.103
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 +54 -36
- package/dist/src/engine/campaignTVL/factory.d.ts +1 -1
- package/dist/src/engine/campaignTVL/factory.js +9 -3
- package/dist/src/engine/{erc20SubTypeProcessors/helpers/tokenType.d.ts → campaignTVL/implementations/Erc20/Erc20SubType.d.ts} +7 -13
- package/dist/src/engine/campaignTVL/implementations/Erc20/Erc20SubType.js +106 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.d.ts +8 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.js +128 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/factory.d.ts +3 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/factory.js +13 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +6 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +27 -0
- package/dist/src/engine/dynamicData/implementations/Erc20.d.ts +4 -4
- package/dist/src/engine/dynamicData/implementations/Erc20.js +5 -11
- package/dist/src/engine/dynamicData/implementations/Radiant.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +19 -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 +2 -1
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +87 -87
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +2 -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/factory.js +4 -2
- package/dist/src/engine/opportunityMetadata/implementations/ERCMultiToken.d.ts +14 -2
- package/dist/src/engine/opportunityMetadata/implementations/ERCMultiToken.js +52 -2
- 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 +18 -12
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +6 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +9 -0
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.test.controller.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.js +2 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.js +5 -10
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +7 -7
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/router.d.ts +18 -12
- package/dist/src/modules/v4/token/token.controller.d.ts +6 -0
- package/dist/src/modules/v4/token/token.controller.js +1 -1
- package/dist/src/modules/v4/token/token.model.d.ts +3 -0
- package/dist/src/modules/v4/token/token.model.js +3 -0
- package/dist/src/modules/v4/token/token.repository.js +47 -25
- package/dist/src/modules/v4/token/token.service.d.ts +27 -6
- package/dist/src/modules/v4/token/token.service.js +29 -79
- 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
- package/dist/src/modules/v4/computedValue/index.d.ts +0 -2
- package/dist/src/modules/v4/computedValue/index.js +0 -2
@@ -1,13 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
2
2
|
const ownerAddresses = {
|
3
|
-
"0xbF7E49483881C76487b0989CD7d9A8239B20CA41":
|
4
|
-
"0x42a856dbEBB97AbC1269EAB32f3bb40C15102819":
|
5
|
-
"0x4C911bf7A008C497719CBEb1a376f1cEc9e2c1d6":
|
6
|
-
"0x6e9d701fB6478Ed5972a37886C2BA6C82a4cBb4C":
|
3
|
+
"0xbF7E49483881C76487b0989CD7d9A8239B20CA41": Erc20SubType.curve_2,
|
4
|
+
"0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": Erc20SubType.satlayer,
|
5
|
+
"0x4C911bf7A008C497719CBEb1a376f1cEc9e2c1d6": Erc20SubType.hanji_liquidity_vault_token,
|
6
|
+
"0x6e9d701fB6478Ed5972a37886C2BA6C82a4cBb4C": Erc20SubType.gamma, // Gamma Bob owner
|
7
7
|
};
|
8
8
|
export function getTypeFromOwnerAddress(address) {
|
9
9
|
if (ownerAddresses[address]) {
|
10
10
|
return ownerAddresses[address];
|
11
11
|
}
|
12
|
-
return
|
12
|
+
return Erc20SubType.unknown;
|
13
13
|
}
|
@@ -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 dataRawAave;
|
7
7
|
call: string;
|
@@ -25,6 +25,6 @@ export declare class AaveProcessor extends GenericProcessor<callKeysAave, dataRa
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(_index: number, type:
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAave, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
|
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 dataRawAnglesLiquid;
|
7
7
|
call: string;
|
@@ -25,11 +25,11 @@ export declare class AnglesLiquidProcessor extends GenericProcessor<callKeysAngl
|
|
25
25
|
round3: callType[];
|
26
26
|
round4: callType[];
|
27
27
|
};
|
28
|
-
processingRound5(_index: number, type:
|
29
|
-
computeRound1(type:
|
30
|
-
computeRound2(index: number, type:
|
31
|
-
computeRound3(index: number, type:
|
32
|
-
computeRound4(index: number, type:
|
33
|
-
computeRound5(index: number, type:
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAnglesLiquid>;
|
29
|
+
computeRound1(type: Erc20SubType, typeInfo: dataRawAnglesLiquid): import("../tokenTypeStruct").tokenTypeStruct;
|
30
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
31
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
32
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
|
33
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
|
34
34
|
}
|
35
35
|
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 dataRawAsset;
|
7
7
|
call: string;
|
@@ -30,6 +30,6 @@ export declare class AssetProcessor extends GenericProcessor<callKeysAsset, data
|
|
30
30
|
round4: callType[];
|
31
31
|
};
|
32
32
|
processingRound2(typeInfo: dataRawAsset): void;
|
33
|
-
processingRound5(index: number, type:
|
33
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawAsset, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAsset>;
|
34
34
|
}
|
35
35
|
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 AssetProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|
7
7
|
round1: [
|
@@ -25,7 +25,7 @@ export class AssetProcessor extends GenericProcessor {
|
|
25
25
|
async processingRound5(index, type, typeInfo, calls, campaign, pricer) {
|
26
26
|
const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
|
27
27
|
let exchangeRate = BN2Number(typeInfo.exchangeRate);
|
28
|
-
if (type ===
|
28
|
+
if (type === Erc20SubType.moonwell || type === Erc20SubType.venus) {
|
29
29
|
exchangeRate =
|
30
30
|
exchangeRate /
|
31
31
|
10 ** (Number(typeInfo.decimalsUnderlyingToken) - campaign.campaignParameters.decimalsTargetToken);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { 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, tokenTypeStruct } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawAura;
|
8
8
|
call: string;
|
@@ -64,7 +64,44 @@ export declare class AuraProcessor extends GenericProcessor<callKeysAura, dataRa
|
|
64
64
|
round4: callType[];
|
65
65
|
};
|
66
66
|
processingRound4(typeInfo: dataRawAura): void;
|
67
|
-
processingRound5(index: number, type:
|
68
|
-
computeRound4(index: number, type:
|
67
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAura>;
|
68
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
|
69
|
+
type: Erc20SubType;
|
70
|
+
calls: CallDto[];
|
71
|
+
typeInfo: {
|
72
|
+
type: Erc20SubType;
|
73
|
+
protocol: string;
|
74
|
+
tokenAddress: string;
|
75
|
+
blacklistedSupply: string;
|
76
|
+
totalSupply: string;
|
77
|
+
whitelistedSupply: string;
|
78
|
+
lockNFT: string;
|
79
|
+
eip712DomainName: string;
|
80
|
+
stakingName: string;
|
81
|
+
stakingSymbol: string;
|
82
|
+
isStaking: string;
|
83
|
+
balancerPool: string;
|
84
|
+
vault: string;
|
85
|
+
auraOperator: string;
|
86
|
+
poolId: string;
|
87
|
+
totalSupplyBalancerPool: string;
|
88
|
+
gaugeContract: string;
|
89
|
+
auraStaker: string;
|
90
|
+
totalSupplyGauge: string;
|
91
|
+
pid: string;
|
92
|
+
gaugeBalance: string;
|
93
|
+
auraBalance: string;
|
94
|
+
vaultBalance: string;
|
95
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
96
|
+
poolTokens: Array<{
|
97
|
+
token: string;
|
98
|
+
balance: string;
|
99
|
+
amountInPool: number;
|
100
|
+
symbol: string;
|
101
|
+
decimals: number;
|
102
|
+
price: number;
|
103
|
+
}>;
|
104
|
+
};
|
105
|
+
};
|
69
106
|
}
|
70
107
|
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 type { 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, tokenTypeStruct } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBG;
|
8
8
|
call: string;
|
@@ -50,7 +50,36 @@ export declare class BEXRewardGaugeProcessor extends GenericProcessor<callKeysBG
|
|
50
50
|
};
|
51
51
|
processingRound2(typeInfo: dataRawBG): void;
|
52
52
|
processingRound4(typeInfo: dataRawBG): void;
|
53
|
-
processingRound5(index: number, type:
|
54
|
-
computeRound4(index: number, type:
|
53
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
|
54
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
|
55
|
+
type: Erc20SubType;
|
56
|
+
calls: CallDto[];
|
57
|
+
typeInfo: {
|
58
|
+
type: Erc20SubType;
|
59
|
+
protocol: string;
|
60
|
+
tokenAddress: string;
|
61
|
+
blacklistedSupply: string;
|
62
|
+
totalSupply: string;
|
63
|
+
whitelistedSupply: string;
|
64
|
+
lockNFT: string;
|
65
|
+
eip712DomainName: string;
|
66
|
+
stakingName: string;
|
67
|
+
stakingSymbol: string;
|
68
|
+
isStaking: string;
|
69
|
+
gyroscopeToken: string;
|
70
|
+
balanceUnderlyingPoolTokens: string;
|
71
|
+
totalSupplyUnderlyingPoolTokens: string;
|
72
|
+
poolId: string;
|
73
|
+
vault: string;
|
74
|
+
vaultBalance: string;
|
75
|
+
poolHolder: string;
|
76
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
77
|
+
poolTokens: Array<{
|
78
|
+
token: string;
|
79
|
+
balance: string;
|
80
|
+
}>;
|
81
|
+
poolHolderBalance: string;
|
82
|
+
};
|
83
|
+
};
|
55
84
|
}
|
56
85
|
export {};
|
@@ -58,11 +58,11 @@ export class BEXRewardGaugeProcessor extends GenericProcessor {
|
|
58
58
|
tokensDisplay.push({ symbol: symbol, address: poolToken.token });
|
59
59
|
}
|
60
60
|
let adjustedPoolTotalSupply = BN2Number(typeInfo.totalSupplyUnderlyingPoolTokens, 18);
|
61
|
-
// if (type ===
|
61
|
+
// if (type === Erc20SubType.beratrax_vault) {
|
62
62
|
// // Weird edge case where a lot of the supply is in a weird contract
|
63
63
|
// adjustedPoolTotalSupply -= BN2Number(typeInfo.poolHolderBalance, 18);
|
64
64
|
// }
|
65
|
-
// if (type ===
|
65
|
+
// if (type === Erc20SubType.beraborrow_gauge) {
|
66
66
|
// Remove tokens in the vault from the total supply
|
67
67
|
adjustedPoolTotalSupply -= BN2Number(typeInfo.vaultBalance, 18);
|
68
68
|
let percentageOfSupplyUnderlyingPoolTokens = 1;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { 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, tokenTypeStruct } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBG;
|
8
8
|
call: string;
|
@@ -43,7 +43,33 @@ export declare class BalancerGaugeProcessor extends GenericProcessor<callKeysBG,
|
|
43
43
|
round4: callType[];
|
44
44
|
};
|
45
45
|
processingRound4(typeInfo: dataRawBG): void;
|
46
|
-
processingRound5(index: number, type:
|
47
|
-
computeRound4(index: number, type:
|
46
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
|
47
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
|
48
|
+
type: Erc20SubType;
|
49
|
+
calls: CallDto[];
|
50
|
+
typeInfo: {
|
51
|
+
type: Erc20SubType;
|
52
|
+
protocol: string;
|
53
|
+
tokenAddress: string;
|
54
|
+
blacklistedSupply: string;
|
55
|
+
totalSupply: string;
|
56
|
+
whitelistedSupply: string;
|
57
|
+
lockNFT: string;
|
58
|
+
eip712DomainName: string;
|
59
|
+
stakingName: string;
|
60
|
+
stakingSymbol: string;
|
61
|
+
isStaking: string;
|
62
|
+
gyroscopeToken: string;
|
63
|
+
balanceUnderlyingPoolTokens: string;
|
64
|
+
totalSupplyUnderlyingPoolTokens: string;
|
65
|
+
poolId: string;
|
66
|
+
vault: string;
|
67
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
68
|
+
poolTokens: Array<{
|
69
|
+
token: string;
|
70
|
+
balance: string;
|
71
|
+
}>;
|
72
|
+
};
|
73
|
+
};
|
48
74
|
}
|
49
75
|
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, tokenTypeStruct } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBP;
|
8
8
|
call: string;
|
@@ -53,8 +53,36 @@ export declare class BalancerPoolProcessor extends GenericProcessor<callKeysBP,
|
|
53
53
|
round3: callType[];
|
54
54
|
round4: callType[];
|
55
55
|
};
|
56
|
-
processingRound5(index: number, type:
|
56
|
+
processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBP>;
|
57
57
|
processingRound4(typeInfo: dataRawBP): void;
|
58
|
-
computeRound4(index: number, type:
|
58
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
|
59
|
+
type: Erc20SubType;
|
60
|
+
calls: CallDto[];
|
61
|
+
typeInfo: {
|
62
|
+
type: Erc20SubType;
|
63
|
+
protocol: string;
|
64
|
+
tokenAddress: string;
|
65
|
+
blacklistedSupply: string;
|
66
|
+
totalSupply: string;
|
67
|
+
whitelistedSupply: string;
|
68
|
+
lockNFT: string;
|
69
|
+
eip712DomainName: string;
|
70
|
+
stakingName: string;
|
71
|
+
stakingSymbol: string;
|
72
|
+
isStaking: string;
|
73
|
+
poolId: string;
|
74
|
+
vault: string;
|
75
|
+
vaultBalance: string;
|
76
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
77
|
+
poolTokens: Array<{
|
78
|
+
token: string;
|
79
|
+
balance: string;
|
80
|
+
amountInPool: number;
|
81
|
+
symbol: string;
|
82
|
+
decimals: number;
|
83
|
+
price: number;
|
84
|
+
}>;
|
85
|
+
};
|
86
|
+
};
|
59
87
|
}
|
60
88
|
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 type { 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, tokenTypeStruct } from "../helpers/tokenType";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBalancerV3;
|
8
8
|
call: string;
|
@@ -38,7 +38,7 @@ export declare class BalancerV3PoolProcessor extends GenericProcessor<callKeysBa
|
|
38
38
|
round4: callType[];
|
39
39
|
};
|
40
40
|
processingRound2(typeInfo: dataRawBalancerV3): void;
|
41
|
-
computeRound3(index: number, type:
|
42
|
-
processingRound5(_index: number, type:
|
41
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawBalancerV3, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
42
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBalancerV3, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBalancerV3>;
|
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 } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawBeefy;
|
7
7
|
call: 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(_index: number, type:
|
46
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBeefy, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
|
47
47
|
}
|
48
48
|
export {};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters, type UniswapV4PoolKey } from "@sdk";
|
3
3
|
import type { PoolStateStructOutput } from "libs/sdk/src/generated/BunniV2Hub";
|
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 dataRawBunniV2;
|
8
8
|
call: string;
|
@@ -40,6 +40,6 @@ export declare class BunniV2Processor extends GenericProcessor<callKeysBunniV2,
|
|
40
40
|
round4: callType[];
|
41
41
|
};
|
42
42
|
processingRound2(typeInfo: dataRawBunniV2): void;
|
43
|
-
processingRound5(_index: number, type:
|
43
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBunniV2, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBunniV2>;
|
44
44
|
}
|
45
45
|
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 dataRawCompound;
|
7
7
|
call: string;
|
@@ -39,6 +39,6 @@ export declare class CompoundProcessor extends GenericProcessor<callKeysCompound
|
|
39
39
|
round3: callType[];
|
40
40
|
round4: callType[];
|
41
41
|
};
|
42
|
-
processingRound5(_index: number, type:
|
42
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawCompound, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCompound>;
|
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 } from "../helpers/tokenType";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawERC4626;
|
7
7
|
call: string;
|
@@ -29,6 +29,6 @@ export declare class ERC4626Processor extends GenericProcessor<callKeysERC4626,
|
|
29
29
|
round3: callType[];
|
30
30
|
round4: callType[];
|
31
31
|
};
|
32
|
-
processingRound5(_index: number, type:
|
32
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawERC4626, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeERC4626>;
|
33
33
|
}
|
34
34
|
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 dataRawEnzyme;
|
7
7
|
call: 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(_index: number, type:
|
36
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawEnzyme, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEnzyme>;
|
37
37
|
processingRound2(typeInfo: dataRawEnzyme): void;
|
38
|
-
computeRound3(index: number, type:
|
38
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawEnzyme, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
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 dataRawEqualizerGauge;
|
7
7
|
call: string;
|
@@ -23,6 +23,6 @@ export declare class EqualizerGaugeProcessor extends GenericProcessor<callKeysEq
|
|
23
23
|
round3: callType[];
|
24
24
|
round4: callType[];
|
25
25
|
};
|
26
|
-
processingRound5(_index: number, type:
|
26
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawEqualizerGauge, _calls: string[], campaign: CampaignParameters<Campaign.ERC20>, _pricer: Pricer): Promise<dataTypeEqualizerGauge>;
|
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 dataRawEuler;
|
7
7
|
call: string;
|
@@ -31,6 +31,6 @@ export declare class EulerBorrowProcessor 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 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 {};
|