@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
package/dist/src/index.d.ts
CHANGED
@@ -80,7 +80,6 @@ declare const app: Elysia<"", false, {
|
|
80
80
|
200: {
|
81
81
|
aprRecord: {
|
82
82
|
cumulated: number;
|
83
|
-
cummulated: number;
|
84
83
|
timestamp: bigint;
|
85
84
|
breakdowns: {
|
86
85
|
id: number;
|
@@ -168,7 +167,6 @@ declare const app: Elysia<"", false, {
|
|
168
167
|
200: {
|
169
168
|
aprRecord: {
|
170
169
|
cumulated: number;
|
171
|
-
cummulated: number;
|
172
170
|
timestamp: bigint;
|
173
171
|
breakdowns: {
|
174
172
|
id: number;
|
@@ -266,7 +264,6 @@ declare const app: Elysia<"", false, {
|
|
266
264
|
200: ({
|
267
265
|
aprRecord: {
|
268
266
|
cumulated: number;
|
269
|
-
cummulated: number;
|
270
267
|
timestamp: bigint;
|
271
268
|
breakdowns: {
|
272
269
|
id: number;
|
@@ -1184,7 +1181,7 @@ declare const app: Elysia<"", false, {
|
|
1184
1181
|
response: {
|
1185
1182
|
200: (Omit<{
|
1186
1183
|
chain: import("../database/api/.generated").Chain;
|
1187
|
-
rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["
|
1184
|
+
rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
|
1188
1185
|
}, "rewards"> & {
|
1189
1186
|
rewards: (Omit<{
|
1190
1187
|
token: {
|
@@ -1294,7 +1291,7 @@ declare const app: Elysia<"", false, {
|
|
1294
1291
|
response: {
|
1295
1292
|
200: (Omit<{
|
1296
1293
|
chain: import("../database/api/.generated").Chain;
|
1297
|
-
rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["
|
1294
|
+
rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
|
1298
1295
|
}, "rewards"> & {
|
1299
1296
|
rewards: (Omit<{
|
1300
1297
|
token: {
|
@@ -1750,127 +1747,34 @@ declare const app: Elysia<"", false, {
|
|
1750
1747
|
};
|
1751
1748
|
} & {
|
1752
1749
|
v4: {
|
1753
|
-
|
1754
|
-
|
1755
|
-
post: {
|
1756
|
-
body: {
|
1757
|
-
status: {
|
1758
|
-
value: "SUCCESS";
|
1759
|
-
computedUntil: number;
|
1760
|
-
} | {
|
1761
|
-
value: "PROCESSING";
|
1762
|
-
} | {
|
1763
|
-
error: string;
|
1764
|
-
details: string;
|
1765
|
-
value: "SKIPPED";
|
1766
|
-
} | {
|
1767
|
-
error: string;
|
1768
|
-
details: string;
|
1769
|
-
value: "FAILED";
|
1770
|
-
};
|
1771
|
-
campaignId: string;
|
1772
|
-
distributionChain: number;
|
1773
|
-
};
|
1774
|
-
params: Record<never, string>;
|
1775
|
-
query: unknown;
|
1776
|
-
headers: {
|
1777
|
-
authorization: string;
|
1778
|
-
};
|
1779
|
-
response: {
|
1780
|
-
200: void;
|
1781
|
-
};
|
1782
|
-
};
|
1783
|
-
};
|
1784
|
-
};
|
1785
|
-
} & {
|
1786
|
-
campaignStatus: {
|
1787
|
-
index: {
|
1788
|
-
get: {
|
1789
|
-
body: unknown;
|
1790
|
-
params: Record<never, string>;
|
1791
|
-
query: unknown;
|
1792
|
-
headers: unknown;
|
1793
|
-
response: {
|
1794
|
-
200: {
|
1795
|
-
campaignId: string;
|
1796
|
-
computedUntil: bigint;
|
1797
|
-
processingStarted: bigint;
|
1798
|
-
status: import("../database/api/.generated").$Enums.RunStatus;
|
1799
|
-
error: string;
|
1800
|
-
details: import("../database/api/.generated").Prisma.JsonValue;
|
1801
|
-
}[];
|
1802
|
-
};
|
1803
|
-
};
|
1804
|
-
};
|
1805
|
-
};
|
1806
|
-
} & {
|
1807
|
-
campaignStatus: {
|
1808
|
-
unique: {
|
1809
|
-
get: {
|
1810
|
-
body: unknown;
|
1811
|
-
params: Record<never, string>;
|
1812
|
-
query: {
|
1813
|
-
identifier: string;
|
1814
|
-
distributionChain: number;
|
1815
|
-
};
|
1816
|
-
headers: unknown;
|
1817
|
-
response: {
|
1818
|
-
200: {
|
1819
|
-
campaignId: string;
|
1820
|
-
computedUntil: bigint;
|
1821
|
-
processingStarted: bigint;
|
1822
|
-
status: import("../database/api/.generated").$Enums.RunStatus;
|
1823
|
-
error: string;
|
1824
|
-
details: import("../database/api/.generated").Prisma.JsonValue;
|
1825
|
-
};
|
1826
|
-
};
|
1827
|
-
};
|
1828
|
-
};
|
1829
|
-
};
|
1830
|
-
} & {
|
1831
|
-
campaignStatus: {
|
1832
|
-
computeChain: {
|
1750
|
+
dynamicData: {
|
1751
|
+
chainId: {
|
1833
1752
|
":chainId": {
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1753
|
+
token: {
|
1754
|
+
":tokenAddress": {
|
1755
|
+
get: {
|
1756
|
+
body: unknown;
|
1757
|
+
params: {
|
1758
|
+
chainId: string;
|
1759
|
+
tokenAddress: string;
|
1760
|
+
};
|
1761
|
+
query: unknown;
|
1762
|
+
headers: unknown;
|
1763
|
+
response: {
|
1764
|
+
200: {
|
1765
|
+
tvl: number;
|
1766
|
+
totalSupply: number;
|
1767
|
+
cardName: string;
|
1768
|
+
blacklistedSupply: number;
|
1769
|
+
priceTargetToken: number;
|
1770
|
+
};
|
1771
|
+
};
|
1772
|
+
};
|
1850
1773
|
};
|
1851
1774
|
};
|
1852
1775
|
};
|
1853
1776
|
};
|
1854
1777
|
};
|
1855
|
-
} & {
|
1856
|
-
campaignStatus: {
|
1857
|
-
overlaps: {
|
1858
|
-
get: {
|
1859
|
-
body: unknown;
|
1860
|
-
params: Record<never, string>;
|
1861
|
-
query: {
|
1862
|
-
identifier: string;
|
1863
|
-
distributionChain: number;
|
1864
|
-
};
|
1865
|
-
headers: {
|
1866
|
-
authorization: string;
|
1867
|
-
};
|
1868
|
-
response: {
|
1869
|
-
200: boolean;
|
1870
|
-
};
|
1871
|
-
};
|
1872
|
-
};
|
1873
|
-
};
|
1874
1778
|
};
|
1875
1779
|
}, {
|
1876
1780
|
derive: {};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@sdk";
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
|
+
export declare function ERC20DynamicDataRefacto(chainId: MerklChainId, campaigns: CampaignParameters<Campaign.ERC20>[]): Promise<UncachedResult<Partial<CampaignDynamicData<Campaign.ERC20>[]>>>;
|
@@ -36,8 +36,23 @@ export declare enum tokenType {
|
|
36
36
|
layerbank = "layerbank",
|
37
37
|
beefy = "beefy",
|
38
38
|
fenix = "fenix",
|
39
|
-
zkswap = "zkswap"
|
39
|
+
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
|
+
pendle = "pendle"
|
40
50
|
}
|
51
|
+
export declare const tokenTypeToProtocol: {
|
52
|
+
[key in tokenType]: {
|
53
|
+
[key: string]: string;
|
54
|
+
};
|
55
|
+
};
|
41
56
|
export type tokenTypeStruct = {
|
42
57
|
type: tokenType;
|
43
58
|
calls: Multicall3.Call3Struct[];
|
@@ -0,0 +1,30 @@
|
|
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 dataRawAave;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysAave;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
export type callKeysAave = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
symbolUnderlyingToken: string;
|
14
|
+
};
|
15
|
+
type dataRawAave = callKeysAave & {};
|
16
|
+
type dataTypeAave = dataType & {
|
17
|
+
underlying: string;
|
18
|
+
symbolUnderlyingToken: string;
|
19
|
+
priceTargetToken: number;
|
20
|
+
};
|
21
|
+
export declare class AaveProcessor extends GenericProcessor<callKeysAave, dataRawAave, dataTypeAave> {
|
22
|
+
rounds: {
|
23
|
+
round1: callType[];
|
24
|
+
round2: callType[];
|
25
|
+
round3: callType[];
|
26
|
+
round4: callType[];
|
27
|
+
};
|
28
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawAave, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
|
29
|
+
}
|
30
|
+
export {};
|
@@ -0,0 +1,35 @@
|
|
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 dataRawAsset;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysAsset;
|
9
|
+
metaData?: any;
|
10
|
+
optional?: boolean;
|
11
|
+
};
|
12
|
+
type callKeysAsset = callKeys & {
|
13
|
+
underlying: string;
|
14
|
+
exchangeRate: string;
|
15
|
+
symbolUnderlyingToken: string;
|
16
|
+
decimalsUnderlyingToken: string;
|
17
|
+
};
|
18
|
+
type dataRawAsset = callKeysAsset & {};
|
19
|
+
type dataTypeAsset = dataType & {
|
20
|
+
underlying: string;
|
21
|
+
exchangeRate: number;
|
22
|
+
symbolUnderlyingToken: string;
|
23
|
+
decimalsUnderlyingToken: string;
|
24
|
+
};
|
25
|
+
export declare class AssetProcessor extends GenericProcessor<callKeysAsset, dataRawAsset, dataTypeAsset> {
|
26
|
+
rounds: {
|
27
|
+
round1: callType[];
|
28
|
+
round2: callType[];
|
29
|
+
round3: callType[];
|
30
|
+
round4: callType[];
|
31
|
+
};
|
32
|
+
processingRound2(typeInfo: dataRawAsset): void;
|
33
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawAsset, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAsset>;
|
34
|
+
}
|
35
|
+
export {};
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { BigNumber } from "ethers";
|
4
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
6
|
+
type callType = {
|
7
|
+
key: keyof dataRawAura;
|
8
|
+
call: string;
|
9
|
+
target: keyof callKeysAura;
|
10
|
+
metaData?: any;
|
11
|
+
};
|
12
|
+
type callKeysAura = callKeys & {
|
13
|
+
balancerPool: string;
|
14
|
+
vault: string;
|
15
|
+
auraOperator: string;
|
16
|
+
poolId: string;
|
17
|
+
totalSupplyBalancerPool: string;
|
18
|
+
gaugeContract: string;
|
19
|
+
auraStaker: string;
|
20
|
+
totalSupplyGauge: string;
|
21
|
+
pid: string;
|
22
|
+
gaugeBalance: string;
|
23
|
+
auraBalance: string;
|
24
|
+
};
|
25
|
+
type dataRawAura = callKeysAura & {
|
26
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
27
|
+
poolTokens: Array<{
|
28
|
+
token: string;
|
29
|
+
balance: string;
|
30
|
+
}>;
|
31
|
+
};
|
32
|
+
type dataTypeAura = dataType & {
|
33
|
+
balancerPool: string;
|
34
|
+
vault: string;
|
35
|
+
auraOperator: string;
|
36
|
+
poolId: string;
|
37
|
+
totalSupplyBalancerPool: number;
|
38
|
+
gaugeContract: string;
|
39
|
+
auraStaker: string;
|
40
|
+
totalSupplyGauge: number;
|
41
|
+
pid: string;
|
42
|
+
gaugeBalance: number;
|
43
|
+
auraBalance: number;
|
44
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
45
|
+
poolTokens: Array<{
|
46
|
+
token: string;
|
47
|
+
balance: string;
|
48
|
+
}>;
|
49
|
+
};
|
50
|
+
export declare class AuraProcessor extends GenericProcessor<callKeysAura, dataRawAura, dataTypeAura> {
|
51
|
+
rounds: {
|
52
|
+
round1: callType[];
|
53
|
+
round2: callType[];
|
54
|
+
round3: callType[];
|
55
|
+
round4: callType[];
|
56
|
+
};
|
57
|
+
processingRound4(typeInfo: dataRawAura): void;
|
58
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAura>;
|
59
|
+
computeRound4(index: number, type: tokenType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
60
|
+
}
|
61
|
+
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { BigNumber } from "ethers";
|
4
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
6
|
+
type callType = {
|
7
|
+
key: keyof dataRawBG;
|
8
|
+
call: string;
|
9
|
+
target: keyof callKeysBG;
|
10
|
+
metaData?: any;
|
11
|
+
};
|
12
|
+
type callKeysBG = callKeys & {
|
13
|
+
gyroscopeToken: string;
|
14
|
+
balanceUnderlyingPoolTokens: string;
|
15
|
+
totalSupplyUnderlyingPoolTokens: string;
|
16
|
+
poolId: string;
|
17
|
+
vault: string;
|
18
|
+
};
|
19
|
+
type dataRawBG = callKeysBG & {
|
20
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
21
|
+
poolTokens: Array<{
|
22
|
+
token: string;
|
23
|
+
balance: string;
|
24
|
+
}>;
|
25
|
+
};
|
26
|
+
type dataTypeBG = dataType & {
|
27
|
+
gyroscopeToken: string;
|
28
|
+
balanceUnderlyingPoolTokens: string;
|
29
|
+
totalSupplyUnderlyingPoolTokens: string;
|
30
|
+
poolId: string;
|
31
|
+
vault: string;
|
32
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
33
|
+
poolTokens: Array<{
|
34
|
+
token: string;
|
35
|
+
balance: string;
|
36
|
+
}>;
|
37
|
+
};
|
38
|
+
export declare class BalancerGaugeProcessor extends GenericProcessor<callKeysBG, dataRawBG, dataTypeBG> {
|
39
|
+
rounds: {
|
40
|
+
round1: callType[];
|
41
|
+
round2: callType[];
|
42
|
+
round3: callType[];
|
43
|
+
round4: callType[];
|
44
|
+
};
|
45
|
+
processingRound4(typeInfo: dataRawBG): void;
|
46
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
|
47
|
+
computeRound4(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
48
|
+
}
|
49
|
+
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import { BigNumber } from "ethers";
|
4
|
+
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
5
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
6
|
+
type callType = {
|
7
|
+
key: keyof dataRawBP;
|
8
|
+
call: string;
|
9
|
+
target: keyof callKeysBP;
|
10
|
+
metaData?: any;
|
11
|
+
};
|
12
|
+
type callKeysBP = callKeys & {
|
13
|
+
tokenAddress: string;
|
14
|
+
poolId: string;
|
15
|
+
vault: string;
|
16
|
+
totalSupply: string;
|
17
|
+
vaultBalance: string;
|
18
|
+
blacklistedSupply: string;
|
19
|
+
};
|
20
|
+
type dataRawBP = callKeysBP & {
|
21
|
+
poolTokensRaw: Array<string[] | BigNumber[]>;
|
22
|
+
poolTokens: Array<{
|
23
|
+
token: string;
|
24
|
+
balance: string;
|
25
|
+
}>;
|
26
|
+
};
|
27
|
+
type dataTypeBP = dataType & {
|
28
|
+
tokenAddress: string;
|
29
|
+
poolId: string;
|
30
|
+
vault: string;
|
31
|
+
poolTokens: Array<{
|
32
|
+
token: string;
|
33
|
+
balance: string;
|
34
|
+
}>;
|
35
|
+
totalSupply: number;
|
36
|
+
blacklistedSupply: number;
|
37
|
+
tvl: number;
|
38
|
+
priceTargetToken: number;
|
39
|
+
cardName: string;
|
40
|
+
vaultBalance: number;
|
41
|
+
};
|
42
|
+
export declare class BalancerPoolProcessor extends GenericProcessor<callKeysBP, dataRawBP, dataTypeBP> {
|
43
|
+
rounds: {
|
44
|
+
round1: callType[];
|
45
|
+
round2: callType[];
|
46
|
+
round3: callType[];
|
47
|
+
round4: callType[];
|
48
|
+
};
|
49
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBP>;
|
50
|
+
processingRound4(typeInfo: dataRawBP): void;
|
51
|
+
computeRound4(index: number, type: tokenType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
|
52
|
+
}
|
53
|
+
export {};
|
@@ -0,0 +1,48 @@
|
|
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 dataRawBeefy;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysBeefy;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysBeefy = callKeys & {
|
12
|
+
underlying: string;
|
13
|
+
pricePerShare: string;
|
14
|
+
token0: string;
|
15
|
+
token1: string;
|
16
|
+
totalSupplyUnderlying: string;
|
17
|
+
symbolToken0: string;
|
18
|
+
symbolToken1: string;
|
19
|
+
decimalsToken0: string;
|
20
|
+
decimalsToken1: string;
|
21
|
+
balanceToken0: string;
|
22
|
+
balanceToken1: string;
|
23
|
+
};
|
24
|
+
type dataRawBeefy = callKeysBeefy & {};
|
25
|
+
type dataTypeBeefy = dataType & {
|
26
|
+
underlying: string;
|
27
|
+
pricePerShare: number;
|
28
|
+
token0: string;
|
29
|
+
token1: string;
|
30
|
+
totalSupplyUnderlying: string;
|
31
|
+
symbolToken0: string;
|
32
|
+
symbolToken1: string;
|
33
|
+
decimalsToken0: string;
|
34
|
+
decimalsToken1: string;
|
35
|
+
balanceToken0: string;
|
36
|
+
balanceToken1: string;
|
37
|
+
priceTargetToken: number;
|
38
|
+
};
|
39
|
+
export declare class BeefyProcessor extends GenericProcessor<callKeysBeefy, dataRawBeefy, dataTypeBeefy> {
|
40
|
+
rounds: {
|
41
|
+
round1: callType[];
|
42
|
+
round2: callType[];
|
43
|
+
round3: callType[];
|
44
|
+
round4: callType[];
|
45
|
+
};
|
46
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawBeefy, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
|
47
|
+
}
|
48
|
+
export {};
|
@@ -0,0 +1,44 @@
|
|
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 dataRawCompound;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysCompound;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysCompound = callKeys & {
|
12
|
+
tokenAddress: string;
|
13
|
+
totalBorrow: string;
|
14
|
+
balanceBaseToken: string;
|
15
|
+
symbolBaseToken: string;
|
16
|
+
decimalsBaseToken: string;
|
17
|
+
baseToken: string;
|
18
|
+
totalSupply: string;
|
19
|
+
blacklistedSupply: string;
|
20
|
+
};
|
21
|
+
type dataRawCompound = callKeysCompound & {};
|
22
|
+
type dataTypeCompound = dataType & {
|
23
|
+
tokenAddress: string;
|
24
|
+
totalBorrow: number;
|
25
|
+
balanceBaseToken: number;
|
26
|
+
symbolBaseToken: string;
|
27
|
+
decimalsBaseToken: string;
|
28
|
+
baseToken: string;
|
29
|
+
totalSupply: number;
|
30
|
+
tvl: number;
|
31
|
+
priceTargetToken: number;
|
32
|
+
cardName: string;
|
33
|
+
blacklistedSupply: number;
|
34
|
+
};
|
35
|
+
export declare class CompoundProcessor extends GenericProcessor<callKeysCompound, dataRawCompound, dataTypeCompound> {
|
36
|
+
rounds: {
|
37
|
+
round1: callType[];
|
38
|
+
round2: callType[];
|
39
|
+
round3: callType[];
|
40
|
+
round4: callType[];
|
41
|
+
};
|
42
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawCompound, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCompound>;
|
43
|
+
}
|
44
|
+
export {};
|
@@ -0,0 +1,40 @@
|
|
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 dataRawEnzyme;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysEnzyme;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysEnzyme = callKeys & {
|
12
|
+
factory: string;
|
13
|
+
underlying: string;
|
14
|
+
exchangeRate: string;
|
15
|
+
symbolUnderlyingToken: string;
|
16
|
+
fundValueCalculator: string;
|
17
|
+
dispatcher: string;
|
18
|
+
};
|
19
|
+
type dataRawEnzyme = callKeysEnzyme & {
|
20
|
+
exchangeRateRaw: Array<string>;
|
21
|
+
};
|
22
|
+
type dataTypeEnzyme = dataType & {
|
23
|
+
factory: string;
|
24
|
+
underlying: string;
|
25
|
+
exchangeRate: number;
|
26
|
+
symbolUnderlyingToken: string;
|
27
|
+
fundValueCalculator: string;
|
28
|
+
};
|
29
|
+
export declare class EnzymeProcessor extends GenericProcessor<callKeysEnzyme, dataRawEnzyme, dataTypeEnzyme> {
|
30
|
+
rounds: {
|
31
|
+
round1: callType[];
|
32
|
+
round2: callType[];
|
33
|
+
round3: callType[];
|
34
|
+
round4: callType[];
|
35
|
+
};
|
36
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawEnzyme, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEnzyme>;
|
37
|
+
processingRound2(typeInfo: callKeys): void;
|
38
|
+
computeRound3(index: number, type: tokenType, typeInfo: dataRawEnzyme, calls: string[]): tokenTypeStruct;
|
39
|
+
}
|
40
|
+
export {};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawEuler;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysEuler;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysEuler = callKeys & {
|
12
|
+
vault: string;
|
13
|
+
underlying: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
decimalsUnderlyingToken: string;
|
16
|
+
targetTotalAsset: string;
|
17
|
+
};
|
18
|
+
type dataRawEuler = callKeysEuler & {};
|
19
|
+
type dataTypeEuler = dataType & {
|
20
|
+
vault: string;
|
21
|
+
underlying: string;
|
22
|
+
symbolUnderlyingToken: string;
|
23
|
+
decimalsUnderlyingToken: string;
|
24
|
+
totalSupply: number;
|
25
|
+
targetTotalAsset: string;
|
26
|
+
totalAssets: string;
|
27
|
+
};
|
28
|
+
export declare class EulerBorrowProcessor extends GenericProcessor<callKeysEuler, dataRawEuler, dataTypeEuler> {
|
29
|
+
rounds: {
|
30
|
+
round1: callType[];
|
31
|
+
round2: callType[];
|
32
|
+
round3: callType[];
|
33
|
+
round4: callType[];
|
34
|
+
};
|
35
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawEuler, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
|
36
|
+
}
|
37
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
+
import type { tokenType } from "../helpers/tokenType";
|
4
|
+
import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawEuler;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysEuler;
|
9
|
+
metaData?: any;
|
10
|
+
};
|
11
|
+
type callKeysEuler = callKeys & {
|
12
|
+
vault: string;
|
13
|
+
underlying: string;
|
14
|
+
symbolUnderlyingToken: string;
|
15
|
+
decimalsUnderlyingToken: string;
|
16
|
+
targetTotalAsset: string;
|
17
|
+
};
|
18
|
+
type dataRawEuler = callKeysEuler & {};
|
19
|
+
type dataTypeEuler = dataType & {
|
20
|
+
vault: string;
|
21
|
+
underlying: string;
|
22
|
+
symbolUnderlyingToken: string;
|
23
|
+
decimalsUnderlyingToken: string;
|
24
|
+
totalSupply: number;
|
25
|
+
targetTotalAsset: string;
|
26
|
+
totalAssets: string;
|
27
|
+
};
|
28
|
+
export declare class EulerLendProcessor extends GenericProcessor<callKeysEuler, dataRawEuler, dataTypeEuler> {
|
29
|
+
rounds: {
|
30
|
+
round1: callType[];
|
31
|
+
round2: callType[];
|
32
|
+
round3: callType[];
|
33
|
+
round4: callType[];
|
34
|
+
};
|
35
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawEuler, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
|
36
|
+
}
|
37
|
+
export {};
|