@merkl/api 0.10.119 → 0.10.120

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.
@@ -25,6 +25,7 @@ export declare const MERKL_BLACKLIST: string[];
25
25
  export declare const EBTC_ADDRESS = "0x661c70333AA1850CcDBAe82776Bb436A0fCfeEfB";
26
26
  export declare const CDPMANAGER_ADDRESS = "0xc4cbaE499bb4Ca41E78f52F07f5d98c375711774";
27
27
  export declare const SORTEDCDPS_ADDRESS = "0x591AcB5AE192c147948c12651a0a5f24f0529BE3";
28
+ export declare const RFX_DATASTORE = "0x895124783008C6c68eFcccac24c482Fdf30439B2";
28
29
  export declare const DOPEX_OPTION_MARKET: {
29
30
  [market: string]: string;
30
31
  };
@@ -47,7 +47,8 @@ export declare enum tokenType {
47
47
  baseswap = "baseswap",
48
48
  zkswap = "zkswap",
49
49
  pendle = "pendle",
50
- ironcladStaking = "ironcladStaking"
50
+ ironcladStaking = "ironcladStaking",
51
+ rfx = "rfx"
51
52
  }
52
53
  export declare const tokenTypeToProtocol: {
53
54
  [key in tokenType]: {
@@ -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 dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
+ type callType = {
6
+ key: keyof dataRawTemplate;
7
+ call: string;
8
+ target: keyof callKeysRfx;
9
+ metaData?: keyof callKeysRfx;
10
+ };
11
+ type callKeysRfx = mandatoryCallKeys & {
12
+ shortToken: string;
13
+ longToken: string;
14
+ symbolShortToken: string;
15
+ symbolLongToken: string;
16
+ decimalsToken: string;
17
+ decimalsShortToken: string;
18
+ decimalsLongToken: string;
19
+ balanceShortToken: string;
20
+ balanceLongToken: string;
21
+ RFX_DATASTORE: string;
22
+ metaDataShort: string;
23
+ metaDataLong: string;
24
+ };
25
+ type dataRawTemplate = callKeysRfx & {};
26
+ type dataTypeRfx = dataType & {};
27
+ export declare class RfxProcessor extends GenericProcessor<callKeysRfx, dataRawTemplate, dataTypeRfx> {
28
+ rounds: {
29
+ round1: callType[];
30
+ round2: callType[];
31
+ round3: callType[];
32
+ round4: callType[];
33
+ };
34
+ processingRound1(typeInfo: dataRawTemplate): void;
35
+ processingRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeRfx>;
36
+ }
37
+ export {};