@merkl/api 0.20.138 → 0.20.140

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.
@@ -161,6 +161,8 @@ export var swapxCampaigns;
161
161
  export var celoCampaigns;
162
162
  (function (celoCampaigns) {
163
163
  celoCampaigns["UniswapV3_cUSD_USDT_Celo"] = "UniswapV3 cUSD/USDT Celo 0x5dC631aD6C26BEA1a59fBF2C2680CF3df43d249f";
164
+ celoCampaigns["UniswapV3_USDT_WETH_Celo"] = "UniswapV3 USDT/WETH Celo 0xF55791AfBB35aD42984f18D6Fe3e1fF73D81900c";
165
+ celoCampaigns["UniswapV3_USDT_cGHS_Celo"] = "UniswapV3 USDT/cGHS Celo 0x6BAB3AfA6d0c42d539bcbc33Ffb68C0406913413";
164
166
  celoCampaigns["UniswapV3_USDC_USDT_Celo"] = "UniswapV3 USDC/USDT Celo 0x1a810e0B6c2dd5629AFa2f0c898b9512C6F78846";
165
167
  celoCampaigns["UniswapV3_cUSD_USDC_Celo"] = "UniswapV3 cUSD/USDC Celo 0x34757893070B0FC5de37AaF2844255fF90F7F1E0";
166
168
  celoCampaigns["UniswapV3_cEUR_USDT_Celo"] = "UniswapV3 cEUR/USDT Celo 0x628Cb3a5a206956423D158009612813B64B19dab";
@@ -173,7 +175,7 @@ export var celoCampaigns;
173
175
  celoCampaigns["UniswapV3_PUSO_USDC_Celo"] = "UniswapV3 PUSO/USDC Celo 0xb466d5429D6AD9999Bf112C225d9D7b15e96c658";
174
176
  celoCampaigns["UniswapV3_PUSO_USDT_Celo"] = "UniswapV3 PUSO/USDT Celo 0x87deC9a2589d9e6511Df84C193561b3A16cF6238";
175
177
  celoCampaigns["UniswapV3_cEUR_CELO_Celo"] = "UniswapV3 cEUR/CELO Celo 0xf130F72F8190f662522774C3367E6e8814f5e219";
176
- celoCampaigns["UniswapV3_cCOP_USDT_Celo"] = "UniswapV3 cCOP/USDT Celo 0x40b3737B8984D14a2E8f96D8c680B2d475719fdF";
178
+ celoCampaigns["UniswapV3_cCOP_USDT_Celo"] = "UniswapV3 cCOP/USDT Celo 0x2ac5baa668a8a58fd0e302b9896717484fd217b0";
177
179
  celoCampaigns["UniswapV3_cREAL_cUSD_Celo"] = "UniswapV3 cREAL/cUSD Celo 0x72Dd8fe09B5b493012e5816068Dfc6Fb26a2A9e6";
178
180
  celoCampaigns["UniswapV3_cEUR_cREAL_Celo"] = "UniswapV3 cEUR/cREAL Celo 0xb6c8f9490314394CFc6EDacb8717bFDC1EB8dab5";
179
181
  celoCampaigns["UniswapV3_BRLA_USDT_Celo"] = "UniswapV3 BRLA/USDT Celo 0x14E577e42d45Fd2200A9B0e31D87Fe826467111a";
@@ -604,6 +606,10 @@ export var tacCampaigns;
604
606
  tacCampaigns["TAC_Supply_ctTACUSDB"] = "TAC Supply ctTACUSDB 0x729fcddf4cbbc9dce721a8378c25a726fe7e43d3";
605
607
  tacCampaigns["TAC_Supply_ylFBTC"] = "TAC Supply ylFBTC 0x6945f516413cB2d7311297e8A39E7D004dEB5566";
606
608
  tacCampaigns["TAC_Supply_ylMBTC"] = "TAC Supply ylMBTC 0x2B11527e1fab84a5382D20efD198BF3d332f7E73";
609
+ tacCampaigns["TAC_Supply_tacUSN"] = "TAC Supply tacUSN 0x7895A046b26CC07272B022a0C9BAFC046E6F6396";
610
+ tacCampaigns["TAC_Supply_TACyUSD"] = "TAC Supply TACyUSD 0x2799dE2E1e769fA58dd3787F70BcD839AF3a1F39";
611
+ tacCampaigns["TAC_Supply_tacETH9s"] = "TAC Supply tacETH9s 0xDe7CFf032D453Ce6B0a796043E75d380Df258812";
612
+ tacCampaigns["TAC_Supply_ylSolvBTCtac"] = "TAC Supply ylSolvBTC.tac 0x34d16e4fB8757A88D986f9EfE2484F0badBF22C1";
607
613
  })(tacCampaigns || (tacCampaigns = {}));
608
614
  const AnglesInterfaceCampaigns = {
609
615
  [anglesCampaigns.Angles_supply_in_angles_liquid]: {
@@ -1553,6 +1559,34 @@ const CeloInterfaceCampaigns = {
1553
1559
  weightToken0: 500,
1554
1560
  weightToken1: 500,
1555
1561
  },
1562
+ [celoCampaigns.UniswapV3_USDT_WETH_Celo]: {
1563
+ campaignType: Campaign.CLAMM,
1564
+ computeChainId: ChainId.CELO,
1565
+ hooks: [],
1566
+ poolAddress: "0xF55791AfBB35aD42984f18D6Fe3e1fF73D81900c",
1567
+ whitelist: [],
1568
+ blacklist: [],
1569
+ url: "https://app.uniswap.org/explore/pools/celo/0xF55791AfBB35aD42984f18D6Fe3e1fF73D81900c",
1570
+ forwarders: [],
1571
+ isOutOfRangeIncentivized: false,
1572
+ weightFees: 5000,
1573
+ weightToken0: 2500,
1574
+ weightToken1: 2500,
1575
+ },
1576
+ [celoCampaigns.UniswapV3_USDT_cGHS_Celo]: {
1577
+ campaignType: Campaign.CLAMM,
1578
+ computeChainId: ChainId.CELO,
1579
+ hooks: [],
1580
+ poolAddress: "0x6BAB3AfA6d0c42d539bcbc33Ffb68C0406913413",
1581
+ whitelist: [],
1582
+ blacklist: [],
1583
+ url: "https://app.uniswap.org/explore/pools/celo/0x6BAB3AfA6d0c42d539bcbc33Ffb68C0406913413",
1584
+ forwarders: [],
1585
+ isOutOfRangeIncentivized: false,
1586
+ weightFees: 5000,
1587
+ weightToken0: 2500,
1588
+ weightToken1: 2500,
1589
+ },
1556
1590
  [celoCampaigns.UniswapV3_USDC_USDT_Celo]: {
1557
1591
  campaignType: Campaign.CLAMM,
1558
1592
  computeChainId: ChainId.CELO,
@@ -1619,9 +1653,9 @@ const CeloInterfaceCampaigns = {
1619
1653
  url: "https://app.uniswap.org/explore/pools/celo/0x61Ef8708fc240DC7f9F2c0d81c3124Df2fd8829F",
1620
1654
  forwarders: [],
1621
1655
  isOutOfRangeIncentivized: false,
1622
- weightFees: 6000,
1623
- weightToken0: 2000,
1624
- weightToken1: 2000,
1656
+ weightFees: 5000,
1657
+ weightToken0: 2500,
1658
+ weightToken1: 2500,
1625
1659
  },
1626
1660
  [celoCampaigns.UniswapV3_USDGLO_cUSD_Celo]: {
1627
1661
  campaignType: Campaign.CLAMM,
@@ -1725,10 +1759,10 @@ const CeloInterfaceCampaigns = {
1725
1759
  campaignType: Campaign.CLAMM,
1726
1760
  computeChainId: ChainId.CELO,
1727
1761
  hooks: [],
1728
- poolAddress: "0x40b3737B8984D14a2E8f96D8c680B2d475719fdF",
1762
+ poolAddress: "0x2ac5baa668a8a58fd0e302b9896717484fd217b0",
1729
1763
  whitelist: [],
1730
1764
  blacklist: [],
1731
- url: "https://app.uniswap.org/explore/pools/celo/0x40b3737B8984D14a2E8f96D8c680B2d475719fdF",
1765
+ url: "https://app.uniswap.org/explore/pools/celo/0x2ac5baa668a8a58fd0e302b9896717484fd217b0",
1732
1766
  forwarders: [],
1733
1767
  isOutOfRangeIncentivized: false,
1734
1768
  weightFees: 5000,
@@ -1801,9 +1835,9 @@ const CeloInterfaceCampaigns = {
1801
1835
  url: "https://app.uniswap.org/explore/pools/celo/0x1625fE58Cdb3726e5841Fb2bb367Dde9AAa009B3",
1802
1836
  forwarders: [],
1803
1837
  isOutOfRangeIncentivized: false,
1804
- weightFees: 6000,
1805
- weightToken0: 2000,
1806
- weightToken1: 2000,
1838
+ weightFees: 5000,
1839
+ weightToken0: 2500,
1840
+ weightToken1: 2500,
1807
1841
  },
1808
1842
  [celoCampaigns.UniswapV3_cKES_cREAL_Celo]: {
1809
1843
  campaignType: Campaign.CLAMM,
@@ -5967,6 +6001,10 @@ const ylxSolvBTCMultiplier = 1.5;
5967
6001
  const ctTACUSDBMultiplier = 1.5;
5968
6002
  const ylFBTCMultiplier = 1.5;
5969
6003
  const ylMBTCMultiplier = 1.5;
6004
+ const tacUSNMultiplier = 2.5;
6005
+ const tacyUSDMultiplier = 2.5;
6006
+ const tacETH9sMultiplier = 1.75;
6007
+ const tacylSolvBTCMultiplier = 1.5;
5970
6008
  const TACInterfaceCampaigns = {
5971
6009
  [tacCampaigns.TAC_Supply_TACETH]: {
5972
6010
  campaignType: Campaign.ERC20_FIX_APR,
@@ -6268,6 +6306,66 @@ const TACInterfaceCampaigns = {
6268
6306
  targetTokenPricing: true,
6269
6307
  apr: ((BaseTACREWARDS * ylMBTCMultiplier * 365) / DAILYREWARDSINDOLLAR).toFixed(2).toString(),
6270
6308
  },
6309
+ [tacCampaigns.TAC_Supply_tacUSN]: {
6310
+ campaignType: Campaign.ERC20_FIX_APR,
6311
+ computeChainId: ChainId.MAINNET,
6312
+ distributionChainId: ChainId.GNOSIS,
6313
+ targetToken: "0x7895A046b26CC07272B022a0C9BAFC046E6F6396",
6314
+ rewardToken: "0xf2401de511DC0D1ad4762588722f5B0574A56b60",
6315
+ creator: "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
6316
+ hooks: [],
6317
+ whitelist: [],
6318
+ blacklist: [],
6319
+ forwarders: [],
6320
+ rewardTokenPricing: false,
6321
+ targetTokenPricing: true,
6322
+ apr: ((BaseTACREWARDS * tacUSNMultiplier * 365) / DAILYREWARDSINDOLLAR).toFixed(2).toString(),
6323
+ },
6324
+ [tacCampaigns.TAC_Supply_TACyUSD]: {
6325
+ campaignType: Campaign.ERC20_FIX_APR,
6326
+ computeChainId: ChainId.MAINNET,
6327
+ distributionChainId: ChainId.GNOSIS,
6328
+ targetToken: "0x2799dE2E1e769fA58dd3787F70BcD839AF3a1F39",
6329
+ rewardToken: "0xf2401de511DC0D1ad4762588722f5B0574A56b60",
6330
+ creator: "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
6331
+ hooks: [],
6332
+ whitelist: [],
6333
+ blacklist: [],
6334
+ forwarders: [],
6335
+ rewardTokenPricing: false,
6336
+ targetTokenPricing: true,
6337
+ apr: ((BaseTACREWARDS * tacyUSDMultiplier * 365) / DAILYREWARDSINDOLLAR).toFixed(2).toString(),
6338
+ },
6339
+ [tacCampaigns.TAC_Supply_tacETH9s]: {
6340
+ campaignType: Campaign.ERC20_FIX_APR,
6341
+ computeChainId: ChainId.MAINNET,
6342
+ distributionChainId: ChainId.GNOSIS,
6343
+ targetToken: "0xDe7CFf032D453Ce6B0a796043E75d380Df258812",
6344
+ rewardToken: "0xf2401de511DC0D1ad4762588722f5B0574A56b60",
6345
+ creator: "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
6346
+ hooks: [],
6347
+ whitelist: [],
6348
+ blacklist: [],
6349
+ forwarders: [],
6350
+ rewardTokenPricing: false,
6351
+ targetTokenPricing: true,
6352
+ apr: ((BaseTACREWARDS * tacETH9sMultiplier * 365) / DAILYREWARDSINDOLLAR).toFixed(2).toString(),
6353
+ },
6354
+ [tacCampaigns.TAC_Supply_ylSolvBTCtac]: {
6355
+ campaignType: Campaign.ERC20_FIX_APR,
6356
+ computeChainId: ChainId.MAINNET,
6357
+ distributionChainId: ChainId.GNOSIS,
6358
+ targetToken: "0x34d16e4fB8757A88D986f9EfE2484F0badBF22C1",
6359
+ rewardToken: "0xf2401de511DC0D1ad4762588722f5B0574A56b60",
6360
+ creator: "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
6361
+ hooks: [],
6362
+ whitelist: [],
6363
+ blacklist: [],
6364
+ forwarders: [],
6365
+ rewardTokenPricing: false,
6366
+ targetTokenPricing: true,
6367
+ apr: ((BaseTACREWARDS * tacylSolvBTCMultiplier * 365) / DAILYREWARDSINDOLLAR).toFixed(2).toString(),
6368
+ },
6271
6369
  };
6272
6370
  export const MerklInterfaceCampaigns = {
6273
6371
  [program.Puffer]: PufferInterfaceCampaigns,
@@ -34,7 +34,7 @@ export class ProtocolService {
34
34
  }
35
35
  static async upsert(data) {
36
36
  const env = process.env.ENV === "prod" ? "production" : process.env.ENV;
37
- const iconUri = await IconService.pullPush(data.icon, new BucketService(`merkl-${env}-tokens`, `angle-${env}-1`), {
37
+ const iconUri = await IconService.pullPush(data.icon, new BucketService("merkl-static-assets", `angle-${env}-1`), {
38
38
  name: `protocols/${data.id}`,
39
39
  });
40
40
  return await ProtocolRepository.upsert({
@@ -335,7 +335,7 @@ export declare const v4: Elysia<"/v4", false, {
335
335
  tags?: string | undefined;
336
336
  identifier?: string | undefined;
337
337
  page?: number | undefined;
338
- action?: string | undefined;
338
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
339
339
  campaignId?: string | undefined;
340
340
  creatorAddress?: string | undefined;
341
341
  chainId?: string | undefined;
@@ -548,7 +548,7 @@ export declare const v4: Elysia<"/v4", false, {
548
548
  tags?: string | undefined;
549
549
  identifier?: string | undefined;
550
550
  page?: number | undefined;
551
- action?: string | undefined;
551
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
552
552
  campaignId?: string | undefined;
553
553
  creatorAddress?: string | undefined;
554
554
  chainId?: string | undefined;
@@ -1070,7 +1070,7 @@ export declare const v4: Elysia<"/v4", false, {
1070
1070
  tags?: string | undefined;
1071
1071
  identifier?: string | undefined;
1072
1072
  page?: number | undefined;
1073
- action?: string | undefined;
1073
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
1074
1074
  campaignId?: string | undefined;
1075
1075
  creatorAddress?: string | undefined;
1076
1076
  chainId?: string | undefined;
@@ -1113,7 +1113,7 @@ export declare const v4: Elysia<"/v4", false, {
1113
1113
  tags?: string | undefined;
1114
1114
  identifier?: string | undefined;
1115
1115
  page?: number | undefined;
1116
- action?: string | undefined;
1116
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
1117
1117
  campaignId?: string | undefined;
1118
1118
  creatorAddress?: string | undefined;
1119
1119
  chainId?: string | undefined;
@@ -1157,7 +1157,7 @@ export declare const v4: Elysia<"/v4", false, {
1157
1157
  tags?: string | undefined;
1158
1158
  identifier?: string | undefined;
1159
1159
  page?: number | undefined;
1160
- action?: string | undefined;
1160
+ action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
1161
1161
  campaignId?: string | undefined;
1162
1162
  creatorAddress?: string | undefined;
1163
1163
  chainId?: string | undefined;
@@ -4923,6 +4923,7 @@ export declare const v4: Elysia<"/v4", false, {
4923
4923
  forwarders?: (string | {})[] | undefined;
4924
4924
  targetToken?: string | undefined;
4925
4925
  evkAddress?: string | undefined;
4926
+ subCampaignType?: number | undefined;
4926
4927
  whitelist?: string[] | undefined;
4927
4928
  isOutOfRangeIncentivized?: boolean | undefined;
4928
4929
  weightFees?: number | undefined;
@@ -4932,7 +4933,6 @@ export declare const v4: Elysia<"/v4", false, {
4932
4933
  snapshotTimestamp?: number | undefined;
4933
4934
  snapshotBlockNumber?: number | undefined;
4934
4935
  jsonUrl?: string | undefined;
4935
- subCampaignType?: number | undefined;
4936
4936
  repository?: string | undefined;
4937
4937
  capInUSD?: string | undefined;
4938
4938
  compFork?: number | undefined;
@@ -354,10 +354,10 @@ export class TokenService {
354
354
  if (!token || !token.name)
355
355
  throw new HttpError(`Failed to fetch on-chain data for token ${token?.symbol} (${address} on chainId ${chainId}).`);
356
356
  try {
357
- await IconService.pullPush(iconURL, new BucketService(`merkl-${env}-tokens`, `angle-${env}-1`), {
357
+ await IconService.pullPush(iconURL, new BucketService("merkl-static-assets", `angle-${env}-1`), {
358
358
  name: `${chainId}/${address}`,
359
359
  });
360
- token.icon = `${process.env.GCS_ENDPOINT}/merkl-${env}-tokens/${chainId}/${address}.${extension}`;
360
+ token.icon = `${process.env.GCS_ENDPOINT}/merkl-static-assets/tokens/${chainId}/${address}.${extension}`;
361
361
  }
362
362
  catch (err) {
363
363
  log.error(`[${token.id} (${chainId} | ${address})] Failed to pull / push from Notion to GCP. Using Notion URI for now.`, err);