@merkl/api 0.10.122 → 0.10.124
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/WoofiProcessor.d.ts +32 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +15 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +15 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -4
@@ -0,0 +1,32 @@
|
|
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 dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawBeefy;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysBeefy;
|
9
|
+
metaData?: keyof callKeysBeefy;
|
10
|
+
};
|
11
|
+
type callKeysBeefy = mandatoryCallKeys & {
|
12
|
+
decimalsToken: string;
|
13
|
+
underlying: string;
|
14
|
+
pricePerShare: string;
|
15
|
+
totalSupplyUnderlying: string;
|
16
|
+
symbolUnderlying: string;
|
17
|
+
};
|
18
|
+
type dataRawBeefy = callKeysBeefy & {};
|
19
|
+
type dataTypeBeefy = dataType & {
|
20
|
+
underlying: string;
|
21
|
+
pricePerShare: number;
|
22
|
+
};
|
23
|
+
export declare class WoofiProcessor extends GenericProcessor<callKeysBeefy, dataRawBeefy, dataTypeBeefy> {
|
24
|
+
rounds: {
|
25
|
+
round1: callType[];
|
26
|
+
round2: callType[];
|
27
|
+
round3: callType[];
|
28
|
+
round4: callType[];
|
29
|
+
};
|
30
|
+
processingRound5(index: number, type: tokenType, typeInfo: dataRawBeefy, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
|
31
|
+
}
|
32
|
+
export {};
|
@@ -46,6 +46,21 @@ export declare abstract class CampaignRepository {
|
|
46
46
|
campaignParameters: import("database/engine/.generated/runtime/library").JsonValue;
|
47
47
|
}[]>;
|
48
48
|
static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
|
49
|
+
static findUnique(campaign: CampaignUnique): Promise<{
|
50
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
51
|
+
id: string;
|
52
|
+
params: Prisma.JsonValue;
|
53
|
+
subType: number | null;
|
54
|
+
startTimestamp: bigint;
|
55
|
+
endTimestamp: bigint;
|
56
|
+
computeChainId: number;
|
57
|
+
distributionChainId: number;
|
58
|
+
campaignId: string;
|
59
|
+
rewardTokenId: string;
|
60
|
+
amount: string;
|
61
|
+
opportunityId: string;
|
62
|
+
creatorAddress: string;
|
63
|
+
} | null>;
|
49
64
|
static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
|
50
65
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
51
66
|
id: string;
|
@@ -72,6 +72,21 @@ export declare abstract class CampaignService {
|
|
72
72
|
*/
|
73
73
|
static countMany(query: GetCampaignQueryModel): Promise<number>;
|
74
74
|
static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
|
75
|
+
static findUnique(campaign: CampaignUnique): Promise<{
|
76
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
77
|
+
id: string;
|
78
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
79
|
+
subType: number | null;
|
80
|
+
startTimestamp: bigint;
|
81
|
+
endTimestamp: bigint;
|
82
|
+
computeChainId: number;
|
83
|
+
distributionChainId: number;
|
84
|
+
campaignId: string;
|
85
|
+
rewardTokenId: string;
|
86
|
+
amount: string;
|
87
|
+
opportunityId: string;
|
88
|
+
creatorAddress: string;
|
89
|
+
} | null>;
|
75
90
|
static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
|
76
91
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
77
92
|
id: string;
|