@merkl/api 0.19.45 → 0.19.47

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.
@@ -71,7 +71,9 @@ export declare enum swapxCampaigns {
71
71
  Swapx_scUSD_OS_Swapx = "Swapx scUSD/OS Swapx 0x370428430503B3b5970Ccaf530CbC71d02C3B61a",
72
72
  Swapx_V2_USDCe_scUSD_Swapx = "Swapx V2 USDCe/scUSD 0xBb8aE5b889243561ac9261F22F592B72250AFd1F",
73
73
  Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD wstkscUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
74
- Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb"
74
+ Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
75
+ Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 wstkscUSD gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
76
+ Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51"
75
77
  }
76
78
  export declare enum celoCampaigns {
77
79
  UniswapV3_cUSD_USDT_Celo = "UniswapV3 cUSD/USDT Celo 0x5dC631aD6C26BEA1a59fBF2C2680CF3df43d249f",
@@ -190,7 +192,10 @@ export declare enum vicunaCampaigns {
190
192
  Swapx_SWAPX_scUSD_USDC_Stable_market_Vicuna = "Swapx SWAPX scUSD-USDC Stable market Vicuna 0xb31fb82458CaD3Bfa658659ef4a464176Ff2F155",
191
193
  Swapx_SWAPX_USDC_USDT_Stable_market_Vicuna = "Swapx SWAPX USDC-USDT Stable market Vicuna 0x6895439e47C362c1fBEFCcaCB8f4CC0d36AEf231",
192
194
  Swapx_SWAPX_USDC_scUSD_Stable_market_Vicuna = "Swapx SWAPX USDC-scUSD Stable market Vicuna 0xa52d70EFf22A8302e91A86f2ac9D95318063Da10",
193
- Swapx_SWAPX_USDT_USDC_Stable_market_Vicuna = "Swapx SWAPX USDT-USDC Stable market Vicuna 0xd320C24844EADb0710B31F92E4215Dd7fE480460"
195
+ Swapx_SWAPX_USDT_USDC_Stable_market_Vicuna = "Swapx SWAPX USDT-USDC Stable market Vicuna 0xd320C24844EADb0710B31F92E4215Dd7fE480460",
196
+ Vicuna_Sonic_wOS_Sonic_Market_Vicuna = "Vicuna Sonic wOS (Sonic Market) 0xdf19a33B4f542203d1E99329694bd57882d862A6",
197
+ SWAPX_OS_wS_Sonic_Market_Vicuna = "SWAPX OS-wS (Sonic Market) 0x52E30abd7505227d6853E882fA4C71D2826f1AC4",
198
+ SWAPX_wS_OS_Sonic_Market_Vicuna = "SWAPX wS-OS(Sonic Market) 0x9a349528E79b0e773C9dAcDAAd6f56B26Eb25a71"
194
199
  }
195
200
  export declare enum pufferCampaigns {
196
201
  Zircuit_Restaking_Pool = "0xF047ab4c75cebf0eB9ed34Ae2c186f3611aEAfa6",
@@ -103,6 +103,8 @@ export var swapxCampaigns;
103
103
  swapxCampaigns["Swapx_V2_USDCe_scUSD_Swapx"] = "Swapx V2 USDCe/scUSD 0xBb8aE5b889243561ac9261F22F592B72250AFd1F";
104
104
  swapxCampaigns["Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/scUSD wstkscUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb";
105
105
  swapxCampaigns["Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx"] = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb";
106
+ swapxCampaigns["Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/bUSDC.e-20 wstkscUSD gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51";
107
+ swapxCampaigns["Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx"] = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51";
106
108
  })(swapxCampaigns || (swapxCampaigns = {}));
107
109
  export var celoCampaigns;
108
110
  (function (celoCampaigns) {
@@ -227,6 +229,9 @@ export var vicunaCampaigns;
227
229
  vicunaCampaigns["Swapx_SWAPX_USDC_USDT_Stable_market_Vicuna"] = "Swapx SWAPX USDC-USDT Stable market Vicuna 0x6895439e47C362c1fBEFCcaCB8f4CC0d36AEf231";
228
230
  vicunaCampaigns["Swapx_SWAPX_USDC_scUSD_Stable_market_Vicuna"] = "Swapx SWAPX USDC-scUSD Stable market Vicuna 0xa52d70EFf22A8302e91A86f2ac9D95318063Da10";
229
231
  vicunaCampaigns["Swapx_SWAPX_USDT_USDC_Stable_market_Vicuna"] = "Swapx SWAPX USDT-USDC Stable market Vicuna 0xd320C24844EADb0710B31F92E4215Dd7fE480460";
232
+ vicunaCampaigns["Vicuna_Sonic_wOS_Sonic_Market_Vicuna"] = "Vicuna Sonic wOS (Sonic Market) 0xdf19a33B4f542203d1E99329694bd57882d862A6";
233
+ vicunaCampaigns["SWAPX_OS_wS_Sonic_Market_Vicuna"] = "SWAPX OS-wS (Sonic Market) 0x52E30abd7505227d6853E882fA4C71D2826f1AC4";
234
+ vicunaCampaigns["SWAPX_wS_OS_Sonic_Market_Vicuna"] = "SWAPX wS-OS(Sonic Market) 0x9a349528E79b0e773C9dAcDAAd6f56B26Eb25a71";
230
235
  })(vicunaCampaigns || (vicunaCampaigns = {}));
231
236
  export var pufferCampaigns;
232
237
  (function (pufferCampaigns) {
@@ -826,7 +831,7 @@ const SwapxInterfaceCampaigns = {
826
831
  hooks: [],
827
832
  poolAddress: "0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
828
833
  whitelist: ["0x640429B0633851F487639BcDd8Ed523DDf1Bbff8"],
829
- blacklist: ["0x45D341eE986532E09266c4ff182f610FaE249b5D"],
834
+ blacklist: [],
830
835
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
831
836
  forwarders: [],
832
837
  isOutOfRangeIncentivized: false,
@@ -840,7 +845,7 @@ const SwapxInterfaceCampaigns = {
840
845
  hooks: [],
841
846
  poolAddress: "0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
842
847
  whitelist: ["0x4604782BcD6F749B271Fc9d14BFd583be6e5a6cf"],
843
- blacklist: ["0x09AcA88Fc65Ea9BC94C9DDB2C48FC4265e2ba41A"],
848
+ blacklist: [],
844
849
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
845
850
  forwarders: [],
846
851
  isOutOfRangeIncentivized: false,
@@ -868,7 +873,7 @@ const SwapxInterfaceCampaigns = {
868
873
  hooks: [],
869
874
  poolAddress: "0xD760791B29e7894FB827A94Ca433254bb5aFB653",
870
875
  whitelist: ["0x2f9e2852de03c42c13d3dCdD2C57c0b3cF0382c1"],
871
- blacklist: ["0x8dd81BA99883491Db2070F8E3aD6AAA563D71457"],
876
+ blacklist: [],
872
877
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
873
878
  forwarders: [],
874
879
  isOutOfRangeIncentivized: false,
@@ -882,7 +887,7 @@ const SwapxInterfaceCampaigns = {
882
887
  hooks: [],
883
888
  poolAddress: "0xD760791B29e7894FB827A94Ca433254bb5aFB653",
884
889
  whitelist: ["0xC693c6fc1d2b44DfB5C5aa05Ca2b02A91DB97528"],
885
- blacklist: ["0x7D2EF0fa1b7b2d237079F3e680aaFa54aA63be91"],
890
+ blacklist: [],
886
891
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
887
892
  forwarders: [],
888
893
  isOutOfRangeIncentivized: false,
@@ -1036,7 +1041,7 @@ const SwapxInterfaceCampaigns = {
1036
1041
  hooks: [],
1037
1042
  poolAddress: "0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
1038
1043
  whitelist: ["0x29985EE262a4C9D878AA6A9B9dC43f2FC87a81c6"],
1039
- blacklist: ["0x0b900e9fd1A345c643E995c6Fea4a3Ce9FaDFcdf"],
1044
+ blacklist: [],
1040
1045
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1041
1046
  forwarders: [],
1042
1047
  isOutOfRangeIncentivized: false,
@@ -1050,7 +1055,7 @@ const SwapxInterfaceCampaigns = {
1050
1055
  hooks: [],
1051
1056
  poolAddress: "0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
1052
1057
  whitelist: ["0x30Df881606c719916b99a0b5bc89e5eB338a226C"],
1053
- blacklist: ["0xE5B85B2D6A765b64d23089039bB76198Cd65e0E1"],
1058
+ blacklist: [],
1054
1059
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1055
1060
  forwarders: [],
1056
1061
  isOutOfRangeIncentivized: false,
@@ -1226,6 +1231,34 @@ const SwapxInterfaceCampaigns = {
1226
1231
  weightToken0: 4000,
1227
1232
  weightToken1: 4000,
1228
1233
  },
1234
+ [swapxCampaigns.Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx]: {
1235
+ campaignType: Campaign.CLAMM,
1236
+ computeChainId: ChainId.SONIC,
1237
+ hooks: [],
1238
+ poolAddress: "0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
1239
+ whitelist: ["0x1009f1dE14Cdb1161658F346437156dF4DBf1A38"],
1240
+ blacklist: [],
1241
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1242
+ forwarders: [],
1243
+ isOutOfRangeIncentivized: false,
1244
+ weightFees: 2000,
1245
+ weightToken0: 4000,
1246
+ weightToken1: 4000,
1247
+ },
1248
+ [swapxCampaigns.Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx]: {
1249
+ campaignType: Campaign.CLAMM,
1250
+ computeChainId: ChainId.SONIC,
1251
+ hooks: [],
1252
+ poolAddress: "0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
1253
+ whitelist: ["0xFc463D9bE936DEe0cEcBB600433aDE1b921813C7"],
1254
+ blacklist: [],
1255
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1256
+ forwarders: [],
1257
+ isOutOfRangeIncentivized: false,
1258
+ weightFees: 2000,
1259
+ weightToken0: 4000,
1260
+ weightToken1: 4000,
1261
+ },
1229
1262
  [swapxCampaigns.Swapx_V2_USDCe_scUSD_Swapx]: {
1230
1263
  campaignType: Campaign.ERC20,
1231
1264
  computeChainId: ChainId.SONIC,
@@ -2645,6 +2678,36 @@ const VicunaInterfaceCampaigns = {
2645
2678
  url: "https://vicunafinance.com/markets",
2646
2679
  forwarders: [],
2647
2680
  },
2681
+ [vicunaCampaigns.Vicuna_Sonic_wOS_Sonic_Market_Vicuna]: {
2682
+ campaignType: Campaign.ERC20,
2683
+ computeChainId: ChainId.SONIC,
2684
+ hooks: [],
2685
+ targetToken: "0xdf19a33B4f542203d1E99329694bd57882d862A6",
2686
+ whitelist: [],
2687
+ blacklist: ["0xad1bB693975C16eC2cEEF65edD540BC735F8608B"],
2688
+ url: "https://vicunafinance.com/markets",
2689
+ forwarders: [],
2690
+ },
2691
+ [vicunaCampaigns.SWAPX_OS_wS_Sonic_Market_Vicuna]: {
2692
+ campaignType: Campaign.ERC20,
2693
+ computeChainId: ChainId.SONIC,
2694
+ hooks: [],
2695
+ targetToken: "0x52E30abd7505227d6853E882fA4C71D2826f1AC4",
2696
+ whitelist: [],
2697
+ blacklist: ["0xad1bB693975C16eC2cEEF65edD540BC735F8608B"],
2698
+ url: "https://vicunafinance.com/markets",
2699
+ forwarders: [],
2700
+ },
2701
+ [vicunaCampaigns.SWAPX_wS_OS_Sonic_Market_Vicuna]: {
2702
+ campaignType: Campaign.ERC20,
2703
+ computeChainId: ChainId.SONIC,
2704
+ hooks: [],
2705
+ targetToken: "0x9a349528E79b0e773C9dAcDAAd6f56B26Eb25a71",
2706
+ whitelist: [],
2707
+ blacklist: ["0xad1bB693975C16eC2cEEF65edD540BC735F8608B"],
2708
+ url: "https://vicunafinance.com/markets",
2709
+ forwarders: [],
2710
+ },
2648
2711
  };
2649
2712
  const ModeInterfaceCampaigns = {
2650
2713
  [modeCampaigns.Steer_EES_V2_Weth_USDC_Kim_Mode]: {
@@ -14,22 +14,27 @@ export default (app) => app.get("/app", async () => {
14
14
  tokens: await getTokensListWithCache(),
15
15
  prices: await (await Pricer.load()).getArray(),
16
16
  };
17
- const v3Tokens = await TokenService.findMany({});
18
- for (const token of v3Tokens) {
19
- if (!json.tokens[token.chainId]) {
20
- json.tokens[token.chainId] = {};
21
- }
22
- if (!json.tokens[token.chainId][token.address] && token.icon?.length > 0) {
23
- json.tokens[token.chainId][token.address] = {
24
- address: token.address,
25
- chainId: token.chainId,
26
- decimals: token.decimals,
27
- name: token.name,
28
- symbol: token.symbol,
29
- logoURI: token.icon,
30
- };
17
+ try {
18
+ const v3Tokens = await TokenService.findMany({});
19
+ for (const token of v3Tokens) {
20
+ if (!json.tokens[token.chainId]) {
21
+ json.tokens[token.chainId] = {};
22
+ }
23
+ if (!json.tokens[token.chainId][token.address] && token.icon?.length > 0) {
24
+ json.tokens[token.chainId][token.address] = {
25
+ address: token.address,
26
+ chainId: token.chainId,
27
+ decimals: token.decimals,
28
+ name: token.name,
29
+ symbol: token.symbol,
30
+ logoURI: token.icon,
31
+ };
32
+ }
31
33
  }
32
34
  }
35
+ catch (e) {
36
+ console.error(e);
37
+ }
33
38
  return json;
34
39
  });
35
40
  }, {