@merkl/api 0.10.93 → 0.10.94
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/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +28 -28
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +10 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,51 +1,51 @@
|
|
1
1
|
import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
|
2
2
|
export declare enum tokenType {
|
3
|
-
|
3
|
+
aura = "aura",
|
4
4
|
poolside = "poolside",
|
5
5
|
balancerGauge = "balancerGauge",
|
6
|
-
balancerPool = "balancerPool",
|
7
|
-
unknown = "unknown",
|
8
6
|
gearbox = "gearbox",
|
7
|
+
euler_borrow = "euler_borrow",
|
8
|
+
euler_lend = "euler_lend",
|
9
|
+
filament = "filament",
|
10
|
+
fluid = "fluid",
|
9
11
|
compound = "compound",
|
10
|
-
radiant_borrow = "radiant_borrow",
|
11
12
|
radiant_lend = "radiant_lend",
|
12
|
-
|
13
|
+
radiant_borrow = "radiant_borrow",
|
13
14
|
ionic = "ionic",
|
14
|
-
|
15
|
-
aerodrome = "aerodrome",
|
16
|
-
velodrome = "velodrome",
|
15
|
+
layerbank = "layerbank",
|
17
16
|
moonwell = "moonwell",
|
18
|
-
|
17
|
+
yei_borrowing = "yei_borrowing",
|
18
|
+
ironclad_borrowing = "ironclad_borrowing",
|
19
|
+
zerolend_borrowing = "zerolend_borrowing",
|
20
|
+
yei_lending = "yei_lending",
|
21
|
+
ironclad_lending = "ironclad_lending",
|
22
|
+
zerolend_lending = "zerolend_lending",
|
19
23
|
aave_borrowing = "aave_borrowing",
|
20
|
-
|
21
|
-
curve = "curve",
|
24
|
+
aave_lending = "aave_lending",
|
22
25
|
sturdy_aggregator = "sturdy_aggregator",
|
23
26
|
sturdy_silo = "sturdy_silo",
|
27
|
+
fraxlend = "fraxlend",
|
28
|
+
uniswapv2 = "uniswapv2",
|
29
|
+
fenix = "fenix",
|
30
|
+
ra = "ra",
|
31
|
+
syncswap = "syncswap",
|
32
|
+
curve_2 = "curve_2",
|
33
|
+
silostaking = "silostaking",
|
34
|
+
beefy = "beefy",
|
35
|
+
balancerPool = "balancerPool",
|
36
|
+
unknown = "unknown",
|
37
|
+
metamorpho = "metamorpho",
|
38
|
+
aerodrome = "aerodrome",
|
39
|
+
velodrome = "velodrome",
|
40
|
+
curve = "curve",
|
24
41
|
splice = "splice",// todo
|
25
42
|
toros = "toros",// todo
|
26
|
-
curve_2 = "curve_2",
|
27
|
-
aura = "aura",
|
28
43
|
akron = "akron",
|
29
44
|
enzyme = "enzyme",
|
30
45
|
dragonswap = "dragonswap",
|
31
|
-
silostaking = "silostaking",
|
32
|
-
euler_lend = "euler_lend",
|
33
|
-
euler_borrow = "euler_borrow",
|
34
46
|
koi = "koi",
|
35
47
|
baseswap = "baseswap",
|
36
|
-
layerbank = "layerbank",
|
37
|
-
beefy = "beefy",
|
38
|
-
fenix = "fenix",
|
39
48
|
zkswap = "zkswap",
|
40
|
-
filament = "filament",
|
41
|
-
syncswap = "syncswap",
|
42
|
-
ra = "ra",
|
43
|
-
yei_borrowing = "yei_borrowing",
|
44
|
-
yei_lending = "yei_lending",
|
45
|
-
zerolend_borrowing = "zerolend_borrowing",
|
46
|
-
zerolend_lending = "zerolend_lending",
|
47
|
-
ironclad_lending = "ironclad_lending",
|
48
|
-
ironclad_borrowing = "ironclad_borrowing",
|
49
49
|
pendle = "pendle",
|
50
50
|
ironcladStaking = "ironcladStaking"
|
51
51
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
-
import {
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
4
|
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
5
|
type callType = {
|
@@ -20,11 +20,13 @@ export type callKeys = {
|
|
20
20
|
tokenAddress: string;
|
21
21
|
blacklistedSupply: string;
|
22
22
|
totalSupply: string;
|
23
|
+
whitelistedSupply: string;
|
23
24
|
};
|
24
25
|
export type dataRaw = {
|
25
26
|
tokenAddress: string;
|
26
27
|
blacklistedSupply: string;
|
27
28
|
totalSupply: string;
|
29
|
+
whitelistedSupply: string;
|
28
30
|
};
|
29
31
|
export type dataType = {
|
30
32
|
tokenAddress: string;
|
@@ -33,6 +35,7 @@ export type dataType = {
|
|
33
35
|
tvl: number;
|
34
36
|
cardName: string;
|
35
37
|
priceTargetToken: number;
|
38
|
+
whitelistedSupplyTargetToken: number;
|
36
39
|
};
|
37
40
|
export declare class GenericProcessor<Input extends callKeys, DataRaw extends dataRaw, Output extends dataType> {
|
38
41
|
rounds: {
|
@@ -46,14 +49,20 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
|
|
46
49
|
processingRound2(typeInfo: DataRaw): void;
|
47
50
|
processingRound3(typeInfo: DataRaw): void;
|
48
51
|
processingRound4(typeInfo: DataRaw): void;
|
52
|
+
handleWhiteListBlacklistRound5(typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>): {
|
53
|
+
whitelistedSupplyTargetToken: number;
|
54
|
+
totalSupply: any;
|
55
|
+
blacklistedSupply: number;
|
56
|
+
};
|
49
57
|
processingRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<Output>;
|
50
58
|
computeRound1(type: tokenType, typeInfo: DataRaw): tokenTypeStruct;
|
51
59
|
computeRound2(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
52
60
|
computeRound3(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
53
61
|
computeRound4(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
54
62
|
computeRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
63
|
+
generateWhitelistCall(type: tokenType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20>): Multicall3.Call3Struct[];
|
55
64
|
generateBlackListCall(type: tokenType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20>): Multicall3.Call3Struct[];
|
56
|
-
|
65
|
+
decodeListedSupply(index: number, decimals: number, list: string[], calls: string[]): string;
|
57
66
|
decodeRound(round: callType[], index: number, calls: string[], type: tokenType, data: DataRaw): void;
|
58
67
|
decodePreviousRound(round: roundType, calls: string[], data: DataRaw, type: tokenType, index: number): void;
|
59
68
|
encodeRound(round: callType[], callInfo: Input, type: tokenType): Multicall3.Call3Struct[];
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
-
import {
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
4
|
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
5
|
type callType = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
-
import {
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
4
4
|
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
5
|
type callKeysSplice = callKeys & {
|