@merkl/api 0.12.5 → 0.12.7

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.
@@ -16,8 +16,11 @@ type callKeysStaking = mandatoryCallKeys & {
16
16
  };
17
17
  type dataRawStaking = callKeysStaking & {
18
18
  eip712DomainName: string;
19
+ underlying: string;
20
+ };
21
+ type dataTypeStaking = dataType & {
22
+ underlying: string;
19
23
  };
20
- type dataTypeStaking = dataType & {};
21
24
  export declare class StakingProcessor extends GenericProcessor<callKeysStaking, dataRawStaking, dataTypeStaking> {
22
25
  rounds: {
23
26
  round1: callType[];
@@ -1,3 +1,4 @@
1
+ import { generateCardName } from "../../../../../utils/generateCardName";
1
2
  import { GenericProcessor } from "./GenericProcessor";
2
3
  export class StakingProcessor extends GenericProcessor {
3
4
  rounds = {
@@ -28,12 +29,27 @@ export class StakingProcessor extends GenericProcessor {
28
29
  typeInfo.stakingContract === "0xcd28cF8f7755f03967D27E128B38022B63919836") {
29
30
  typeInfo.stakingSymbol = "Llamalend";
30
31
  }
32
+ if (typeInfo.stakingContract === "0xA55eD5808aeCDF23AE3782C1443185f5D2363ce7") {
33
+ typeInfo.underlying = "0x1b6ec227ceBeC25118270efbb4b67642fc29965E";
34
+ }
31
35
  }
32
36
  processingRound4(typeInfo) {
33
37
  super.processingRound4(typeInfo);
34
38
  }
35
39
  async processingRound5(index, type, typeInfo, calls, campaign, pricer) {
36
- return super.processingRound5(index, type, typeInfo, calls, campaign, pricer);
40
+ const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
41
+ const priceTargetToken = (await pricer.get({ symbol: campaign.campaignParameters.symbolTargetToken })) ?? 0;
42
+ const tvl = whitelistedSupplyTargetToken * priceTargetToken;
43
+ return {
44
+ ...typeInfo,
45
+ type,
46
+ whitelistedSupplyTargetToken,
47
+ totalSupply,
48
+ priceTargetToken,
49
+ tvl,
50
+ blacklistedSupply,
51
+ cardName: generateCardName(type, typeInfo, campaign),
52
+ };
37
53
  }
38
54
  computeRound1(type, typeInfo) {
39
55
  return super.computeRound1(type, typeInfo);
@@ -61,7 +61,7 @@ function satisfiesNameConditions(name, type) {
61
61
  case tokenType.beefy:
62
62
  return lowerCaseName.startsWith("moo velo");
63
63
  case tokenType.uniswapv2:
64
- return lowerCaseName.includes("uniswap");
64
+ return lowerCaseName.includes("uniswap") && lowerCaseName !== "uniswap";
65
65
  case tokenType.fenix:
66
66
  return lowerCaseName.includes("stablev1 amm");
67
67
  case tokenType.ra:
@@ -55,6 +55,7 @@ export declare enum zkSyncCampaigns {
55
55
  Zerolend_USDC = "Zerolend USDC 0x9e20e83d636870a887ce7c85cecfb8b3e95c9db2",
56
56
  Zerolend_M_BTC = "Zerolend M_BTC 0xafe91971600af83d23ab691b0a1a566d5f8e42c0",
57
57
  Zerolend_ZK = "Zerolend ZK 0x072416442a0e40135e75c0eefb4be708b74b6c8a",
58
+ Zerolend_USN = "Zerolend USN 0xe2b026b30dea792e56201308bd566c1e1f43fb2c",
58
59
  ReactorFusion_USDCe = "ReactorFusion USDCe 0x04e9db37d8ea0760072e1ace3f2a219988fdac29",
59
60
  ReactorFusion_WETH = "ReactorFusion WETH 0xc5db68f30d21cbe0c9eac7be5ea83468d69297e6",
60
61
  ReactorFusion_ZK = "ReactorFusion ZK 0x0e392b6b05c112677096920ad938a0752d1451f3",
@@ -88,6 +89,7 @@ export declare enum zkSyncCampaigns {
88
89
  Maverick_ETH_wstETH_Boosted = "Maverick ETH/wstETH Boosted Position 0.002pct Fee 0.10pct Width Both 0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c",
89
90
  Maverick_ZK_ETH_Boosted = "Maverick ZK-ETH Boosted Position 0.02% Fee 25.00% Width Mode Static Width Both 0x940350023026b52ae8b1997f15166b2060e04940",
90
91
  Maverick_ETH_zkETH_Boosted = "Maverick ETH-zkETH ETH-zkETH Boosted Position 0.03% Fee 0.10% Width Mode Static 0xf7cCdB990b31D2902D99F508bbBdd3ACb7937bcf",
92
+ Maverick_WETH_wstETH_Boosted_V2 = "Maverick WETH-wstETH Boosted Position 0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93",
91
93
  SyncSwap_wBTC_MBTC = "SyncSwap WBTC/M-BTC Stable Pool v2.1 0x57b11c2c0cdc81517662698a48473938e81d5834",
92
94
  SyncSwap_USDC_USDT = "SyncSwap USDC/USDT Stable Pool 0x0259d9dfb638775858b1d072222237e2ce7111c0",
93
95
  SyncSwap_USDC_USDCe = "SyncSwap USDC/USDC.e Stable Pool 0xa93472c1b88243793e145b237b7172f1ee547836",
@@ -103,6 +105,7 @@ export declare enum zkSyncCampaigns {
103
105
  SyncSwap_USDC_ETH_Range = "SyncSwap USDC/ETH Range Pool 0xe955c98e8411ee4c7332ebe48df7f0ca12711dc2",
104
106
  Woofi_ETH = "Woofi ETH 0x1d686250bbffa9fe120b591f5992dd7fc0fd99a4",
105
107
  Woofi_USDC = "Woofi USDC 0xdca324bdd4ebb6b8a1802959324ce125b5d57921",
108
+ Woofi_ZK = "Woofi ZK 0x85167f7f3f367e0be7b4d3a8c2b1648f56dfdb45",
106
109
  ZKSwap_wrsETH_ETH = "ZKSwap Finance wrsETH/ETH v2 0.1pct 0xeb9fd198b20dc73e63668b89a735b7dc84e13ea0",
107
110
  ZKSwap_ETH_USDCe = "ZKSwap Finance ETH/USDC.e v2 0.1pct 0x7642e38867860d4512fcce1116e2fb539c5cdd21",
108
111
  ZKSwap_USDC_USDCe_USDT = "ZKSwap Finance USDC/USDC.e/USDT Stable 0.01pct 0x15309aaf4fedf346e5204331027b4ef7b75b1dd7",
@@ -122,7 +125,9 @@ export declare enum zkSyncCampaigns {
122
125
  ZKSwap_WETH_WBTC = "ZKSwap Finance WETH/WBTC v3 0.01pct 0xb6a5cc74a348be4e999a7ba1032de390dd3e993a",
123
126
  ReactorFusion_WBTC = "ReactorFusion WBTC 0x0a976e1e7d3052beb46085acbe1e0daccf4a19cf",
124
127
  Venus_wUSDM = "Venus wUSDM 0x183de3c349fcf546aae925e1c7f364ea6fb4033c",
125
- Zerolend_WBTC = "Zerolend WBTC 0x7c65e6ec6feceb333092e6fe69672a3475c591fb"
128
+ Zerolend_WBTC = "Zerolend WBTC 0x7c65e6ec6feceb333092e6fe69672a3475c591fb",
129
+ raffle_jumper_2 = "raffle jumper 14/02/25",
130
+ airdrop_jumper_2 = "airdrop jumper 14/02/25"
126
131
  }
127
132
  export declare enum modeCampaigns {
128
133
  Steer_EES_V2_Weth_USDC_Kim_Mode = "SteerEESV2 Kim WETH/USDC 0x468cc91df6f669cae6cdce766995bd7874052fbc",
@@ -58,6 +58,7 @@ export var zkSyncCampaigns;
58
58
  zkSyncCampaigns["Zerolend_USDC"] = "Zerolend USDC 0x9e20e83d636870a887ce7c85cecfb8b3e95c9db2";
59
59
  zkSyncCampaigns["Zerolend_M_BTC"] = "Zerolend M_BTC 0xafe91971600af83d23ab691b0a1a566d5f8e42c0";
60
60
  zkSyncCampaigns["Zerolend_ZK"] = "Zerolend ZK 0x072416442a0e40135e75c0eefb4be708b74b6c8a";
61
+ zkSyncCampaigns["Zerolend_USN"] = "Zerolend USN 0xe2b026b30dea792e56201308bd566c1e1f43fb2c";
61
62
  zkSyncCampaigns["ReactorFusion_USDCe"] = "ReactorFusion USDCe 0x04e9db37d8ea0760072e1ace3f2a219988fdac29";
62
63
  zkSyncCampaigns["ReactorFusion_WETH"] = "ReactorFusion WETH 0xc5db68f30d21cbe0c9eac7be5ea83468d69297e6";
63
64
  zkSyncCampaigns["ReactorFusion_ZK"] = "ReactorFusion ZK 0x0e392b6b05c112677096920ad938a0752d1451f3";
@@ -91,6 +92,7 @@ export var zkSyncCampaigns;
91
92
  zkSyncCampaigns["Maverick_ETH_wstETH_Boosted"] = "Maverick ETH/wstETH Boosted Position 0.002pct Fee 0.10pct Width Both 0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c";
92
93
  zkSyncCampaigns["Maverick_ZK_ETH_Boosted"] = "Maverick ZK-ETH Boosted Position 0.02% Fee 25.00% Width Mode Static Width Both 0x940350023026b52ae8b1997f15166b2060e04940";
93
94
  zkSyncCampaigns["Maverick_ETH_zkETH_Boosted"] = "Maverick ETH-zkETH ETH-zkETH Boosted Position 0.03% Fee 0.10% Width Mode Static 0xf7cCdB990b31D2902D99F508bbBdd3ACb7937bcf";
95
+ zkSyncCampaigns["Maverick_WETH_wstETH_Boosted_V2"] = "Maverick WETH-wstETH Boosted Position 0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93";
94
96
  zkSyncCampaigns["SyncSwap_wBTC_MBTC"] = "SyncSwap WBTC/M-BTC Stable Pool v2.1 0x57b11c2c0cdc81517662698a48473938e81d5834";
95
97
  zkSyncCampaigns["SyncSwap_USDC_USDT"] = "SyncSwap USDC/USDT Stable Pool 0x0259d9dfb638775858b1d072222237e2ce7111c0";
96
98
  zkSyncCampaigns["SyncSwap_USDC_USDCe"] = "SyncSwap USDC/USDC.e Stable Pool 0xa93472c1b88243793e145b237b7172f1ee547836";
@@ -106,6 +108,7 @@ export var zkSyncCampaigns;
106
108
  zkSyncCampaigns["SyncSwap_USDC_ETH_Range"] = "SyncSwap USDC/ETH Range Pool 0xe955c98e8411ee4c7332ebe48df7f0ca12711dc2";
107
109
  zkSyncCampaigns["Woofi_ETH"] = "Woofi ETH 0x1d686250bbffa9fe120b591f5992dd7fc0fd99a4";
108
110
  zkSyncCampaigns["Woofi_USDC"] = "Woofi USDC 0xdca324bdd4ebb6b8a1802959324ce125b5d57921";
111
+ zkSyncCampaigns["Woofi_ZK"] = "Woofi ZK 0x85167f7f3f367e0be7b4d3a8c2b1648f56dfdb45";
109
112
  zkSyncCampaigns["ZKSwap_wrsETH_ETH"] = "ZKSwap Finance wrsETH/ETH v2 0.1pct 0xeb9fd198b20dc73e63668b89a735b7dc84e13ea0";
110
113
  zkSyncCampaigns["ZKSwap_ETH_USDCe"] = "ZKSwap Finance ETH/USDC.e v2 0.1pct 0x7642e38867860d4512fcce1116e2fb539c5cdd21";
111
114
  zkSyncCampaigns["ZKSwap_USDC_USDCe_USDT"] = "ZKSwap Finance USDC/USDC.e/USDT Stable 0.01pct 0x15309aaf4fedf346e5204331027b4ef7b75b1dd7";
@@ -126,6 +129,8 @@ export var zkSyncCampaigns;
126
129
  zkSyncCampaigns["ReactorFusion_WBTC"] = "ReactorFusion WBTC 0x0a976e1e7d3052beb46085acbe1e0daccf4a19cf";
127
130
  zkSyncCampaigns["Venus_wUSDM"] = "Venus wUSDM 0x183de3c349fcf546aae925e1c7f364ea6fb4033c";
128
131
  zkSyncCampaigns["Zerolend_WBTC"] = "Zerolend WBTC 0x7c65e6ec6feceb333092e6fe69672a3475c591fb";
132
+ zkSyncCampaigns["raffle_jumper_2"] = "raffle jumper 14/02/25";
133
+ zkSyncCampaigns["airdrop_jumper_2"] = "airdrop jumper 14/02/25";
129
134
  })(zkSyncCampaigns || (zkSyncCampaigns = {}));
130
135
  export var modeCampaigns;
131
136
  (function (modeCampaigns) {
@@ -1232,6 +1237,30 @@ const ModeInterfaceCampaigns = {
1232
1237
  },
1233
1238
  };
1234
1239
  const ZkSyncInterfaceCampaigns = {
1240
+ [zkSyncCampaigns.airdrop_jumper_2]: {
1241
+ campaignType: Campaign.JSON_AIRDROP,
1242
+ computeChainId: ChainId.ZKSYNC,
1243
+ hooks: [],
1244
+ jsonUrl: "https://angle-blog.infura-ipfs.io/ipfs/QmTeSBGB2sMt4kg8A8mHE7k1LehVeVHWwbcwvrHVh5bc73",
1245
+ }, // amount needs to be exactly 24170610000000001879390
1246
+ [zkSyncCampaigns.raffle_jumper_2]: {
1247
+ campaignType: Campaign.JSON_AIRDROP,
1248
+ computeChainId: ChainId.ZKSYNC,
1249
+ hooks: [
1250
+ {
1251
+ hookType: HOOK.RAFFLE,
1252
+ resolutionIndex: 0,
1253
+ selectionMethod: selectionRaffleMethod.RANDOM,
1254
+ numberOfWinners: 3,
1255
+ multipleWinningPossible: false,
1256
+ weightIncreasesRewards: false,
1257
+ weightedSelection: true,
1258
+ blacklistWinnersFromRounds: [],
1259
+ weightOfTotalRewards: 10000000,
1260
+ },
1261
+ ],
1262
+ jsonUrl: "https://angle-blog.infura-ipfs.io/ipfs/QmVX5h6JZetY6W71aBo9A9XUKnba6DPMom6FFaQvB3oFU6",
1263
+ }, // amount needs to be exactly 24170610000000001879390
1235
1264
  [zkSyncCampaigns.airdrop_jumper]: {
1236
1265
  campaignType: Campaign.JSON_AIRDROP,
1237
1266
  computeChainId: ChainId.ZKSYNC,
@@ -1416,6 +1445,16 @@ const ZkSyncInterfaceCampaigns = {
1416
1445
  url: "https://one.zerolend.xyz/reserve-overview/?underlyingAsset=0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4&marketName=proto_zksync_era_v3&utm_source=merkl&utm_medium=website&utm_campaign=merkl30",
1417
1446
  forwarders: [],
1418
1447
  },
1448
+ [zkSyncCampaigns.Zerolend_USN]: {
1449
+ campaignType: Campaign.ERC20,
1450
+ computeChainId: ChainId.ZKSYNC,
1451
+ hooks: [],
1452
+ targetToken: "0xe2b026b30deA792e56201308Bd566C1e1F43FB2C",
1453
+ whitelist: [],
1454
+ blacklist: [],
1455
+ url: "",
1456
+ forwarders: [],
1457
+ },
1419
1458
  [zkSyncCampaigns.Aave_WstETH]: {
1420
1459
  campaignType: Campaign.ERC20,
1421
1460
  computeChainId: ChainId.ZKSYNC,
@@ -1911,6 +1950,23 @@ const ZkSyncInterfaceCampaigns = {
1911
1950
  },
1912
1951
  ],
1913
1952
  },
1953
+ [zkSyncCampaigns.Maverick_WETH_wstETH_Boosted_V2]: {
1954
+ campaignType: Campaign.ERC20,
1955
+ computeChainId: ChainId.ZKSYNC,
1956
+ targetToken: "0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93",
1957
+ hooks: [],
1958
+ whitelist: [],
1959
+ blacklist: [],
1960
+ url: "https://app.mav.xyz/boosted-position/0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93/0xcFAAf84310bA90D28D989553913A49fd3d38bDe1?chain=324&f=true",
1961
+ forwarders: [
1962
+ {
1963
+ forwarderType: Forwarder.MAVERICK_BOOSTED_POSITIONS,
1964
+ priority: 0,
1965
+ sender: "0xcFAAf84310bA90D28D989553913A49fd3d38bDe1",
1966
+ owner: "0x135280B130672CE862653238115f23892c941a78",
1967
+ },
1968
+ ],
1969
+ },
1914
1970
  [zkSyncCampaigns.SyncSwap_wBTC_MBTC]: {
1915
1971
  campaignType: Campaign.ERC20,
1916
1972
  computeChainId: ChainId.ZKSYNC,
@@ -2307,6 +2363,16 @@ const ZkSyncInterfaceCampaigns = {
2307
2363
  url: "https://woofi.com/earn",
2308
2364
  forwarders: [],
2309
2365
  },
2366
+ [zkSyncCampaigns.Woofi_ZK]: {
2367
+ campaignType: Campaign.ERC20,
2368
+ computeChainId: ChainId.ZKSYNC,
2369
+ targetToken: "0x85167f7f3f367E0Be7b4d3a8C2B1648f56dfdB45",
2370
+ hooks: [],
2371
+ whitelist: [],
2372
+ blacklist: [],
2373
+ url: "https://woofi.com/earn",
2374
+ forwarders: [],
2375
+ },
2310
2376
  };
2311
2377
  const PufferInterfaceCampaigns = {
2312
2378
  [pufferCampaigns.CARROT_USDC]: {