@merkl/api 0.10.123 → 0.10.124

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.
@@ -48,7 +48,8 @@ export declare enum tokenType {
48
48
  zkswap = "zkswap",
49
49
  pendle = "pendle",
50
50
  ironcladStaking = "ironcladStaking",
51
- rfx = "rfx"
51
+ rfx = "rfx",
52
+ woofi = "woofi"
52
53
  }
53
54
  export declare const tokenTypeToProtocol: {
54
55
  [key in tokenType]: {
@@ -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 {};