@merkl/api 0.10.80 → 0.10.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/index.d.ts +8 -53
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -2
- package/dist/src/cache/declaration.d.ts +5 -0
- package/dist/src/eden/index.d.ts +66 -316
- package/dist/src/index.d.ts +24 -120
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +16 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +30 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AssetProcessor.d.ts +35 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +61 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts +49 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts +53 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BeefyProcessor.d.ts +48 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts +44 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EnzymeProcessor.d.ts +40 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts +37 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts +37 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FluidProcessor.d.ts +39 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FraxProcessor.d.ts +33 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GearboxProcessor.d.ts +40 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +31 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +27 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RadiantProcessor.d.ts +32 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +16 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts +39 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TorosProcessor.d.ts +29 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/curveProcessor.d.ts +47 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/genericProcessor.d.ts +61 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.d.ts +6 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/templateProcessor.d.ts +32 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/uniswapProcessor.d.ts +42 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -16
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -4
- package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +126 -109
- package/dist/src/modules/v4/router.d.ts +24 -120
- package/dist/src/modules/v4/testdynamicData/dynamicData.controller.d.ts +50 -0
- package/dist/src/modules/v4/testdynamicData/dynamicData.model.d.ts +5 -0
- package/dist/src/modules/v4/testdynamicData/dynamicData.repository.d.ts +0 -0
- package/dist/src/modules/v4/testdynamicData/dynamicData.service.d.ts +12 -0
- package/dist/src/modules/v4/testdynamicData/index.d.ts +3 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +24 -120
- package/dist/src/routes/v3/blacklist.d.ts +24 -120
- package/dist/src/routes/v3/campaigns.d.ts +24 -120
- package/dist/src/routes/v3/campaignsInfo.d.ts +24 -120
- package/dist/src/routes/v3/multiChainPositions.d.ts +24 -120
- package/dist/src/routes/v3/opportunity.d.ts +24 -120
- package/dist/src/routes/v3/positions.d.ts +24 -120
- package/dist/src/routes/v3/rewards.d.ts +24 -120
- package/dist/src/routes/v3/updates.d.ts +24 -120
- package/dist/src/routes/v3/userRewards.d.ts +24 -120
- package/dist/src/utils/decodeCalls.d.ts +2 -0
- package/dist/src/utils/encodeCalls.d.ts +3 -0
- package/dist/src/utils/generateCardName.d.ts +3 -0
- package/dist/src/utils/interfaces.d.ts +39 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -0,0 +1,39 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawFluid;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysFluid;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysFluid = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
exchangeRate: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
decimalsUnderlyingToken: string;
|
16
|
+
amount: string;
|
17
|
+
toAssets: string;
|
18
|
+
};
|
19
|
+
type dataRawFluid = callKeysFluid & {};
|
20
|
+
type dataTypeFluid = dataType & {
|
21
|
+
underlying: string;
|
22
|
+
exchangeRate: number;
|
23
|
+
symbolUnderlyingToken: string;
|
24
|
+
decimalsUnderlyingToken: string;
|
25
|
+
totalSupply: number;
|
26
|
+
amount: string;
|
27
|
+
toAssets: string;
|
28
|
+
};
|
29
|
+
export declare class FluidProcessor extends GenericProcessor<callKeysFluid, dataRawFluid, dataTypeFluid> {
|
30
|
+
rounds: {
|
31
|
+
round1: callType[];
|
32
|
+
round2: callType[];
|
33
|
+
round3: callType[];
|
34
|
+
round4: callType[];
|
35
|
+
};
|
36
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawFluid, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeFluid>;
|
37
|
+
processingRound3(typeInfo: dataRawFluid): void;
|
38
|
+
}
|
39
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { tokenType } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawFrax;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysFrax;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysFrax = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
sharePrice: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
decimalsUnderlyingToken: string;
|
16
|
+
};
|
17
|
+
type dataRawFrax = callKeysFrax & {};
|
18
|
+
type dataTypeFrax = dataType & {
|
19
|
+
underlying: string;
|
20
|
+
sharePrice: number;
|
21
|
+
symbolUnderlyingToken: string;
|
22
|
+
decimalsUnderlyingToken: string;
|
23
|
+
};
|
24
|
+
export declare class FraxProcessor extends GenericProcessor<callKeysFrax, dataRawFrax, dataTypeFrax> {
|
25
|
+
rounds: {
|
26
|
+
round1: callType[];
|
27
|
+
round2: callType[];
|
28
|
+
round3: callType[];
|
29
|
+
round4: callType[];
|
30
|
+
};
|
31
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawFrax, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeFrax>;
|
32
|
+
}
|
33
|
+
export {};
|
@@ -0,0 +1,40 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawGearbox;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysGearbox;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysGearbox = callKeys & {
|
12
|
+
stakingToken: string;
|
13
|
+
balanceStakingToken: string;
|
14
|
+
underlyingToken: string;
|
15
|
+
totalSupplyStakingToken: string;
|
16
|
+
decimalsStakingToken: string;
|
17
|
+
totalAssets: string;
|
18
|
+
decimalsUnderlyingToken: string;
|
19
|
+
symbolUnderlyingToken: string;
|
20
|
+
};
|
21
|
+
type dataRawGearbox = callKeysGearbox & {};
|
22
|
+
type dataTypeGearbox = dataType & {
|
23
|
+
stakingToken: string;
|
24
|
+
balanceStakingToken: number;
|
25
|
+
underlyingToken: string;
|
26
|
+
totalSupplyStakingToken: number;
|
27
|
+
decimalsStakingToken: string;
|
28
|
+
totalAssets: number;
|
29
|
+
percentageOfSupplyUnderlyingPoolTokens: number;
|
30
|
+
};
|
31
|
+
export declare class GearboxProcessor extends GenericProcessor<callKeysGearbox, dataRawGearbox, dataTypeGearbox> {
|
32
|
+
rounds: {
|
33
|
+
round1: callType[];
|
34
|
+
round2: callType[];
|
35
|
+
round3: callType[];
|
36
|
+
round4: callType[];
|
37
|
+
};
|
38
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawGearbox, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeGearbox>;
|
39
|
+
}
|
40
|
+
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawMetamorpho;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysMetamorpho;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysMetamorpho = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
symbolUnderlyingToken: string;
|
14
|
+
};
|
15
|
+
type dataRawMetamorpho = callKeysMetamorpho & {};
|
16
|
+
type dataTypeMetamorpho = dataType & {
|
17
|
+
underlying: string;
|
18
|
+
symbolUnderlyingToken: string;
|
19
|
+
priceTargetToken: number;
|
20
|
+
};
|
21
|
+
export declare class MetamorphoProcessor extends GenericProcessor<callKeysMetamorpho, dataRawMetamorpho, dataTypeMetamorpho> {
|
22
|
+
rounds: {
|
23
|
+
round1: callType[];
|
24
|
+
round2: callType[];
|
25
|
+
round3: callType[];
|
26
|
+
round4: callType[];
|
27
|
+
};
|
28
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawMetamorpho, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeMetamorpho>;
|
29
|
+
computeRound3(index: number, type: tokenType, typeInfo: dataRawMetamorpho, calls: string[]): tokenTypeStruct;
|
30
|
+
}
|
31
|
+
export {};
|
@@ -0,0 +1,27 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawTemplate;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysTemplate;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysTemplate = callKeys & {
|
12
|
+
readTokensRaw: string[];
|
13
|
+
SYToken: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
};
|
16
|
+
type dataRawTemplate = callKeysTemplate & {};
|
17
|
+
type dataTypeTemplate = dataType & {};
|
18
|
+
export declare class PendleProcessor extends GenericProcessor<callKeysTemplate, dataRawTemplate, dataTypeTemplate> {
|
19
|
+
rounds: {
|
20
|
+
round1: callType[];
|
21
|
+
round2: callType[];
|
22
|
+
round3: callType[];
|
23
|
+
round4: callType[];
|
24
|
+
};
|
25
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeTemplate>;
|
26
|
+
}
|
27
|
+
export {};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawRadiant;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysRadiant;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysRadiant = callKeys & {
|
12
|
+
underlyingToken: string;
|
13
|
+
priceBN: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
};
|
16
|
+
type dataRawRadiant = callKeysRadiant & {};
|
17
|
+
type dataTypeRadiant = dataType & {
|
18
|
+
priceTargetToken: number;
|
19
|
+
underlyingToken: string;
|
20
|
+
symbolUnderlyingToken: string;
|
21
|
+
};
|
22
|
+
export declare class RadiantProcessor extends GenericProcessor<callKeysRadiant, dataRawRadiant, dataTypeRadiant> {
|
23
|
+
rounds: {
|
24
|
+
round1: callType[];
|
25
|
+
round2: callType[];
|
26
|
+
round3: callType[];
|
27
|
+
round4: callType[];
|
28
|
+
};
|
29
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawRadiant, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeRadiant>;
|
30
|
+
computeRound3(index: number, type: tokenType, typeInfo: dataRawRadiant, calls: string[]): tokenTypeStruct;
|
31
|
+
}
|
32
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callKeysSplice = callKeys & {
|
6
|
+
priceTargetToken: string;
|
7
|
+
};
|
8
|
+
type dataRawSplice = callKeysSplice & {};
|
9
|
+
type dataTypeSplice = dataType & {
|
10
|
+
priceTargetToken: number;
|
11
|
+
};
|
12
|
+
export declare class SpliceProcessor extends GenericProcessor<callKeysSplice, dataRawSplice, dataTypeSplice> {
|
13
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawSplice, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSplice>;
|
14
|
+
computeRound3(index: number, type: tokenType, typeInfo: dataRawSplice, calls: string[]): tokenTypeStruct;
|
15
|
+
}
|
16
|
+
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts
ADDED
@@ -0,0 +1,39 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawSturdySilo;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysSturdySilo;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysSturdySilo = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
sharePrice: string;
|
14
|
+
collateralContract: string;
|
15
|
+
collateral: string;
|
16
|
+
symbolUnderlyingToken: string;
|
17
|
+
decimalsUnderlyingToken: string;
|
18
|
+
symbolCollateral: string;
|
19
|
+
};
|
20
|
+
type dataRawSturdySilo = callKeysSturdySilo & {};
|
21
|
+
type dataTypeSturdySilo = dataType & {
|
22
|
+
underlying: string;
|
23
|
+
sharePrice: number;
|
24
|
+
collateral: string;
|
25
|
+
collateralContract: string;
|
26
|
+
symbolUnderlyingToken: string;
|
27
|
+
decimalsUnderlyingToken: string;
|
28
|
+
symbolCollateral: string;
|
29
|
+
};
|
30
|
+
export declare class SturdySiloProcessor extends GenericProcessor<callKeysSturdySilo, dataRawSturdySilo, dataTypeSturdySilo> {
|
31
|
+
rounds: {
|
32
|
+
round1: callType[];
|
33
|
+
round2: callType[];
|
34
|
+
round3: callType[];
|
35
|
+
round4: callType[];
|
36
|
+
};
|
37
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawSturdySilo, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSturdySilo>;
|
38
|
+
}
|
39
|
+
export {};
|
@@ -0,0 +1,29 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawToros;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysToros;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysToros = callKeys & {
|
12
|
+
tokenPrice: string;
|
13
|
+
};
|
14
|
+
type dataRawToros = callKeysToros & {};
|
15
|
+
type dataTypeToros = dataType & {
|
16
|
+
tokenPrice: string;
|
17
|
+
priceTargetToken: number;
|
18
|
+
symbolUnderlyingToken: string;
|
19
|
+
};
|
20
|
+
export declare class TorosProcessor extends GenericProcessor<callKeysToros, dataRawToros, dataTypeToros> {
|
21
|
+
rounds: {
|
22
|
+
round1: callType[];
|
23
|
+
round2: callType[];
|
24
|
+
round3: callType[];
|
25
|
+
round4: callType[];
|
26
|
+
};
|
27
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawToros, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeToros>;
|
28
|
+
}
|
29
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { tokenType } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawCurve;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysCurve;
|
9
|
+
metaData?: any;
|
10
|
+
optional?: boolean;
|
11
|
+
};
|
12
|
+
type callKeysCurve = callKeys & {
|
13
|
+
lp_price: string;
|
14
|
+
token0: string;
|
15
|
+
token1: string;
|
16
|
+
token2: string;
|
17
|
+
symbolToken0: string;
|
18
|
+
symbolToken1: string;
|
19
|
+
symbolToken2: string;
|
20
|
+
};
|
21
|
+
type dataRawCurve = callKeysCurve & {
|
22
|
+
poolTokens: {
|
23
|
+
[key: string]: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
type dataTypeCurve = dataType & {
|
27
|
+
lp_price: number;
|
28
|
+
token0: string;
|
29
|
+
token1: string;
|
30
|
+
token2: string;
|
31
|
+
symbolToken0: string;
|
32
|
+
symbolToken1: string;
|
33
|
+
symbolToken2: string;
|
34
|
+
poolTokens: {
|
35
|
+
[key: string]: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
export declare class CurveProcessor extends GenericProcessor<callKeysCurve, dataRawCurve, dataTypeCurve> {
|
39
|
+
rounds: {
|
40
|
+
round1: callType[];
|
41
|
+
round2: callType[];
|
42
|
+
round3: callType[];
|
43
|
+
round4: callType[];
|
44
|
+
};
|
45
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawCurve, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCurve>;
|
46
|
+
}
|
47
|
+
export {};
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
|
4
|
+
import { type tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
5
|
+
export declare enum roundType {
|
6
|
+
one = "round1",
|
7
|
+
two = "round2",
|
8
|
+
three = "round3",
|
9
|
+
four = "round4"
|
10
|
+
}
|
11
|
+
export type callType = {
|
12
|
+
key: any;
|
13
|
+
call: any;
|
14
|
+
target: any;
|
15
|
+
metaData?: any;
|
16
|
+
optional?: boolean;
|
17
|
+
};
|
18
|
+
export type callKeys = {
|
19
|
+
[key: string]: string;
|
20
|
+
tokenAddress: string;
|
21
|
+
blacklistedSupply: string;
|
22
|
+
totalSupply: string;
|
23
|
+
};
|
24
|
+
export type dataRaw = {
|
25
|
+
tokenAddress: string;
|
26
|
+
blacklistedSupply: string;
|
27
|
+
totalSupply: string;
|
28
|
+
};
|
29
|
+
export type dataType = {
|
30
|
+
tokenAddress: string;
|
31
|
+
totalSupply: number;
|
32
|
+
blacklistedSupply: number;
|
33
|
+
tvl: number;
|
34
|
+
cardName: string;
|
35
|
+
priceTargetToken: number;
|
36
|
+
};
|
37
|
+
export declare class GenericProcessor<Input extends callKeys, DataRaw extends dataRaw, Output extends dataType> {
|
38
|
+
rounds: {
|
39
|
+
round1: callType[];
|
40
|
+
round2: callType[];
|
41
|
+
round3: callType[];
|
42
|
+
round4: callType[];
|
43
|
+
};
|
44
|
+
debug: boolean;
|
45
|
+
processingRound1(typeInfo: DataRaw): void;
|
46
|
+
processingRound2(typeInfo: DataRaw): void;
|
47
|
+
processingRound3(typeInfo: DataRaw): void;
|
48
|
+
processingRound4(typeInfo: DataRaw): void;
|
49
|
+
processingRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<Output>;
|
50
|
+
computeRound1(type: tokenType, typeInfo: DataRaw): tokenTypeStruct;
|
51
|
+
computeRound2(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
52
|
+
computeRound3(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
53
|
+
computeRound4(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
54
|
+
computeRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
55
|
+
generateBlackListCall(type: tokenType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20>): Multicall3.Call3Struct[];
|
56
|
+
decodeBlackListedSupply(index: number, decimals: number, blacklist: string[], calls: string[]): string;
|
57
|
+
decodeRound(round: callType[], index: number, calls: string[], type: tokenType, data: DataRaw): void;
|
58
|
+
decodePreviousRound(round: roundType, calls: string[], data: DataRaw, type: tokenType, index: number): void;
|
59
|
+
encodeRound(round: callType[], callInfo: Input, type: tokenType): Multicall3.Call3Struct[];
|
60
|
+
encodeNextRound(round: roundType, type: tokenType, data: DataRaw): Multicall3.Call3Struct[];
|
61
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { tokenType } from "../helpers/tokenType";
|
2
|
+
import { GenericProcessor } from "./GenericProcessor";
|
3
|
+
import type { callKeys, dataRaw, dataType } from "./GenericProcessor";
|
4
|
+
export declare const processorMapping: {
|
5
|
+
[key in tokenType]: typeof GenericProcessor<callKeys, dataRaw, dataType>;
|
6
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawTemplate;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysTemplate;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysTemplate = callKeys & {};
|
12
|
+
type dataRawTemplate = callKeysTemplate & {};
|
13
|
+
type dataTypeTemplate = dataType & {};
|
14
|
+
export declare class TemplateProcessor extends GenericProcessor<callKeysTemplate, dataRawTemplate, dataTypeTemplate> {
|
15
|
+
rounds: {
|
16
|
+
round1: callType[];
|
17
|
+
round2: callType[];
|
18
|
+
round3: callType[];
|
19
|
+
round4: callType[];
|
20
|
+
};
|
21
|
+
processingRound1(typeInfo: dataRawTemplate): void;
|
22
|
+
processingRound2(typeInfo: dataRawTemplate): void;
|
23
|
+
processingRound3(typeInfo: dataRawTemplate): void;
|
24
|
+
processingRound4(typeInfo: dataRawTemplate): void;
|
25
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeTemplate>;
|
26
|
+
computeRound1(type: tokenType, typeInfo: dataRawTemplate): tokenTypeStruct;
|
27
|
+
computeRound2(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[]): tokenTypeStruct;
|
28
|
+
computeRound3(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[]): tokenTypeStruct;
|
29
|
+
computeRound4(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
30
|
+
computeRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
31
|
+
}
|
32
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
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 callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawUni;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysUni;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysUni = callKeys & {
|
12
|
+
token0: string;
|
13
|
+
token1: string;
|
14
|
+
symbolToken0: string;
|
15
|
+
symbolToken1: string;
|
16
|
+
decimalsToken0: string;
|
17
|
+
decimalsToken1: string;
|
18
|
+
balanceToken0: string;
|
19
|
+
balanceToken1: string;
|
20
|
+
};
|
21
|
+
type dataRawUni = callKeysUni & {};
|
22
|
+
type dataTypeUni = dataType & {
|
23
|
+
token0: string;
|
24
|
+
token1: string;
|
25
|
+
symbolToken0: string;
|
26
|
+
symbolToken1: string;
|
27
|
+
decimalsToken0: number;
|
28
|
+
decimalsToken1: number;
|
29
|
+
balanceToken0: number;
|
30
|
+
balanceToken1: number;
|
31
|
+
priceTargetToken: number;
|
32
|
+
};
|
33
|
+
export declare class UniswapProcessor extends GenericProcessor<callKeysUni, dataRawUni, dataTypeUni> {
|
34
|
+
rounds: {
|
35
|
+
round1: callType[];
|
36
|
+
round2: callType[];
|
37
|
+
round3: callType[];
|
38
|
+
round4: callType[];
|
39
|
+
};
|
40
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawUni, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeUni>;
|
41
|
+
}
|
42
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { Pricer } from "../../../../utils/pricer";
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "./helpers/tokenType";
|
4
|
+
export declare function getTokenPricesInfo(index: number, type: tokenType, typeInfo: any, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
|
2
|
+
import type { tokenType, tokenTypeStruct } from "./helpers/tokenType";
|
3
|
+
export declare function getTokenTypeRound2(index: number, type: tokenType, typeInfo: any, calls: Multicall3.ResultStructOutput[]): tokenTypeStruct;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
|
2
|
+
import type { tokenType, tokenTypeStruct } from "./helpers/tokenType";
|
3
|
+
export declare function getTokenTypeRound3(index: number, type: tokenType, typeInfo: any, calls: Multicall3.ResultStructOutput[]): tokenTypeStruct;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
2
|
+
import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
|
3
|
+
import type { tokenType, tokenTypeStruct } from "./helpers/tokenType";
|
4
|
+
export declare function getTokenTypeRound4(index: number, type: tokenType, typeInfo: any, calls: Multicall3.ResultStructOutput[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@sdk";
|
2
|
+
import type { UncachedResult } from "../../utils/execute";
|
3
|
+
export declare function campaignsDynamicDataRefacto<T extends Campaign>(chainId: MerklChainId, campaigns: CampaignParameters<T>[], type: T, nextVersion?: boolean): Promise<UncachedResult<Partial<CampaignDynamicData<T>[]>>>;
|
@@ -53,7 +53,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
53
53
|
200: {
|
54
54
|
aprRecord: {
|
55
55
|
cumulated: number;
|
56
|
-
cummulated: number;
|
57
56
|
timestamp: bigint;
|
58
57
|
breakdowns: {
|
59
58
|
id: number;
|
@@ -141,7 +140,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
141
140
|
200: {
|
142
141
|
aprRecord: {
|
143
142
|
cumulated: number;
|
144
|
-
cummulated: number;
|
145
143
|
timestamp: bigint;
|
146
144
|
breakdowns: {
|
147
145
|
id: number;
|
@@ -239,7 +237,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
239
237
|
200: ({
|
240
238
|
aprRecord: {
|
241
239
|
cumulated: number;
|
242
|
-
cummulated: number;
|
243
240
|
timestamp: bigint;
|
244
241
|
breakdowns: {
|
245
242
|
id: number;
|
@@ -64,7 +64,6 @@ export declare abstract class OpportunityRepository {
|
|
64
64
|
} & {
|
65
65
|
id: string;
|
66
66
|
timestamp: bigint;
|
67
|
-
cummulated: number;
|
68
67
|
cumulated: number;
|
69
68
|
opportunityId: string;
|
70
69
|
})[];
|
@@ -123,18 +122,6 @@ export declare abstract class OpportunityRepository {
|
|
123
122
|
verified: boolean;
|
124
123
|
price: number | null;
|
125
124
|
};
|
126
|
-
RewardBreakdown: {
|
127
|
-
id: number;
|
128
|
-
protocolId: string | null;
|
129
|
-
reason: string;
|
130
|
-
amount: string;
|
131
|
-
claimed: string;
|
132
|
-
pending: string;
|
133
|
-
auxiliaryData1: string | null;
|
134
|
-
auxiliaryData2: string | null;
|
135
|
-
rewardId: string;
|
136
|
-
campaignId: string;
|
137
|
-
}[];
|
138
125
|
} & {
|
139
126
|
id: string;
|
140
127
|
computeChainId: number;
|
@@ -203,7 +190,6 @@ export declare abstract class OpportunityRepository {
|
|
203
190
|
} & {
|
204
191
|
id: string;
|
205
192
|
timestamp: bigint;
|
206
|
-
cummulated: number;
|
207
193
|
cumulated: number;
|
208
194
|
opportunityId: string;
|
209
195
|
})[];
|
@@ -323,7 +309,6 @@ export declare abstract class OpportunityRepository {
|
|
323
309
|
} & {
|
324
310
|
id: string;
|
325
311
|
timestamp: bigint;
|
326
|
-
cummulated: number;
|
327
312
|
cumulated: number;
|
328
313
|
opportunityId: string;
|
329
314
|
})[];
|
@@ -369,7 +354,6 @@ export declare abstract class OpportunityRepository {
|
|
369
354
|
aprRecord: {
|
370
355
|
id: string;
|
371
356
|
timestamp: bigint;
|
372
|
-
cummulated: number;
|
373
357
|
cumulated: number;
|
374
358
|
opportunityId: string;
|
375
359
|
};
|
@@ -35,7 +35,6 @@ export declare abstract class OpportunityService {
|
|
35
35
|
static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique): Promise<({
|
36
36
|
aprRecord: {
|
37
37
|
cumulated: number;
|
38
|
-
cummulated: number;
|
39
38
|
timestamp: bigint;
|
40
39
|
breakdowns: {
|
41
40
|
id: number;
|
@@ -145,7 +144,6 @@ export declare abstract class OpportunityService {
|
|
145
144
|
static getUniqueOrThrow(opportunityId: string | OpportunityUnique): Promise<{
|
146
145
|
aprRecord: {
|
147
146
|
cumulated: number;
|
148
|
-
cummulated: number;
|
149
147
|
timestamp: bigint;
|
150
148
|
breakdowns: {
|
151
149
|
id: number;
|
@@ -222,7 +220,6 @@ export declare abstract class OpportunityService {
|
|
222
220
|
static getMany(query: GetOpportunitiesQueryEntity): Promise<({
|
223
221
|
aprRecord: {
|
224
222
|
cumulated: number;
|
225
|
-
cummulated: number;
|
226
223
|
timestamp: bigint;
|
227
224
|
breakdowns: {
|
228
225
|
id: number;
|
@@ -304,7 +301,6 @@ export declare abstract class OpportunityService {
|
|
304
301
|
static formatResponse(opportunity: Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>): {
|
305
302
|
aprRecord: {
|
306
303
|
cumulated: number;
|
307
|
-
cummulated: number;
|
308
304
|
timestamp: bigint;
|
309
305
|
breakdowns: {
|
310
306
|
id: number;
|
@@ -145,6 +145,7 @@ export declare abstract class RewardRepository {
|
|
145
145
|
rewardId: string;
|
146
146
|
campaignId: string;
|
147
147
|
}[]>;
|
148
|
+
static findManyRootsWithRewardOnChain(chainId: number): Promise<string[]>;
|
148
149
|
static breakdownForCampaigns(root: string, campaignIds: string[], query: CampaignIdListModel): Promise<{
|
149
150
|
Campaign: {
|
150
151
|
identifier: string;
|