@merkl/api 0.16.45 → 0.16.46

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.
@@ -2450,8 +2450,18 @@ declare const eden: {
2450
2450
  };
2451
2451
  fetch?: RequestInit | undefined;
2452
2452
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2453
- [x: string]: any;
2454
- 200: any;
2453
+ 200: ({
2454
+ name: string;
2455
+ url: string;
2456
+ description: string;
2457
+ id: string;
2458
+ tags: string[];
2459
+ icon: string;
2460
+ } & {
2461
+ dailyRewards?: number | undefined;
2462
+ numberOfLiveCampaigns?: number | undefined;
2463
+ opportunityLiveTags?: string[] | undefined;
2464
+ })[];
2455
2465
  }>>;
2456
2466
  };
2457
2467
  transaction: {
@@ -5722,8 +5732,18 @@ declare const eden: {
5722
5732
  };
5723
5733
  fetch?: RequestInit | undefined;
5724
5734
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5725
- [x: string]: any;
5726
- 200: any;
5735
+ 200: ({
5736
+ name: string;
5737
+ url: string;
5738
+ description: string;
5739
+ id: string;
5740
+ tags: string[];
5741
+ icon: string;
5742
+ } & {
5743
+ dailyRewards?: number | undefined;
5744
+ numberOfLiveCampaigns?: number | undefined;
5745
+ opportunityLiveTags?: string[] | undefined;
5746
+ })[];
5727
5747
  }>>;
5728
5748
  };
5729
5749
  transaction: {
@@ -10190,8 +10210,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10190
10210
  };
10191
10211
  headers: unknown;
10192
10212
  response: {
10193
- [x: string]: any;
10194
- 200: any;
10213
+ 200: ({
10214
+ name: string;
10215
+ url: string;
10216
+ description: string;
10217
+ id: string;
10218
+ tags: string[];
10219
+ icon: string;
10220
+ } & {
10221
+ dailyRewards?: number | undefined;
10222
+ numberOfLiveCampaigns?: number | undefined;
10223
+ opportunityLiveTags?: string[] | undefined;
10224
+ })[];
10195
10225
  };
10196
10226
  };
10197
10227
  };
@@ -14548,8 +14578,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14548
14578
  };
14549
14579
  fetch?: RequestInit | undefined;
14550
14580
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14551
- [x: string]: any;
14552
- 200: any;
14581
+ 200: ({
14582
+ name: string;
14583
+ url: string;
14584
+ description: string;
14585
+ id: string;
14586
+ tags: string[];
14587
+ icon: string;
14588
+ } & {
14589
+ dailyRewards?: number | undefined;
14590
+ numberOfLiveCampaigns?: number | undefined;
14591
+ opportunityLiveTags?: string[] | undefined;
14592
+ })[];
14553
14593
  }>>;
14554
14594
  };
14555
14595
  transaction: {
@@ -17820,8 +17860,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17820
17860
  };
17821
17861
  fetch?: RequestInit | undefined;
17822
17862
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17823
- [x: string]: any;
17824
- 200: any;
17863
+ 200: ({
17864
+ name: string;
17865
+ url: string;
17866
+ description: string;
17867
+ id: string;
17868
+ tags: string[];
17869
+ icon: string;
17870
+ } & {
17871
+ dailyRewards?: number | undefined;
17872
+ numberOfLiveCampaigns?: number | undefined;
17873
+ opportunityLiveTags?: string[] | undefined;
17874
+ })[];
17825
17875
  }>>;
17826
17876
  };
17827
17877
  transaction: {
@@ -2977,8 +2977,18 @@ declare const app: Elysia<"", false, {
2977
2977
  };
2978
2978
  headers: unknown;
2979
2979
  response: {
2980
- [x: string]: any;
2981
- 200: any;
2980
+ 200: ({
2981
+ name: string;
2982
+ url: string;
2983
+ description: string;
2984
+ id: string;
2985
+ tags: string[];
2986
+ icon: string;
2987
+ } & {
2988
+ dailyRewards?: number | undefined;
2989
+ numberOfLiveCampaigns?: number | undefined;
2990
+ opportunityLiveTags?: string[] | undefined;
2991
+ })[];
2982
2992
  };
2983
2993
  };
2984
2994
  };
@@ -4,7 +4,6 @@ import { TokenRepository } from "../../../modules/v4/token/token.repository";
4
4
  import { log } from "../../../utils/logger";
5
5
  import { BN2Number, BalancerPoolInterface, BalancerV3StablePoolInterface, ChainInteractionService, ERC20Interface, EnzymeInterface, FactoryInterface, LayerBankERC20Interface, MetamorphoInterface, YEAR, getEnv, } from "@sdk";
6
6
  import { Pricer } from "../../../utils/pricer";
7
- import { getTVL } from "./ERC20SubTypes/helpers/getTVL";
8
7
  import { tokenType } from "./ERC20SubTypes/helpers/tokenType";
9
8
  import { getTokenPricesInfo } from "./ERC20SubTypes/subtypesPrices";
10
9
  import { getTokenTypeRound1 } from "./ERC20SubTypes/subtypesRound1";
@@ -151,7 +150,7 @@ export async function ERC20DynamicData(chainId, campaigns) {
151
150
  campaign.campaignParameters.duration /
152
151
  (whitelistedSupplyTargetToken * priceTargetToken),
153
152
  totalSupplyTargetToken,
154
- tvl: getTVL(tokenTypesByCampaign[campaign.campaignId].typeInfo.type, tokenTypesByCampaign[campaign.campaignId].typeInfo.totalSupply, whitelistedSupplyTargetToken, priceTargetToken),
153
+ tvl: whitelistedSupplyTargetToken * priceTargetToken,
155
154
  type: tokenTypesByCampaign[campaign.campaignId].type,
156
155
  typeInfo: tokenTypesByCampaign[campaign.campaignId].typeInfo,
157
156
  priceRewardToken: priceRewardToken,
@@ -5,7 +5,18 @@ export declare abstract class EnsoService {
5
5
  #private;
6
6
  static getSlug(protocolId: ProtocolId | string): EnsoSlug | undefined;
7
7
  static getProtocolId(slug: EnsoSlug | string): ProtocolId | undefined;
8
- static getCompatibleProtocols(query: GetInteractionProtocolsQuery): Promise<any>;
8
+ static getCompatibleProtocols(query: GetInteractionProtocolsQuery): Promise<({
9
+ name: string;
10
+ url: string;
11
+ description: string;
12
+ id: string;
13
+ tags: string[];
14
+ icon: string;
15
+ } & {
16
+ dailyRewards?: number | undefined;
17
+ numberOfLiveCampaigns?: number | undefined;
18
+ opportunityLiveTags?: string[] | undefined;
19
+ })[]>;
9
20
  static getTokens(chainId: number, slug: EnsoSlug, identifier?: string): Promise<{
10
21
  type: "base" | "defi";
11
22
  chainId: number;
@@ -40,8 +40,18 @@ export declare const InteractionController: Elysia<"/interaction", false, {
40
40
  };
41
41
  headers: unknown;
42
42
  response: {
43
- [x: string]: any;
44
- 200: any;
43
+ 200: ({
44
+ name: string;
45
+ url: string;
46
+ description: string;
47
+ id: string;
48
+ tags: string[];
49
+ icon: string;
50
+ } & {
51
+ dailyRewards?: number | undefined;
52
+ numberOfLiveCampaigns?: number | undefined;
53
+ opportunityLiveTags?: string[] | undefined;
54
+ })[];
45
55
  };
46
56
  };
47
57
  };
@@ -29,11 +29,14 @@ export declare enum swapxCampaigns {
29
29
  Swapx_SWPx_Weth_Swapx = "Swapx SWPx/Weth Swapx 0x9c2a7bb01951bE15fe835886188fA13255eF9486",
30
30
  Swapx_SWPx_OS_Swapx = "Swapx SWPx/OS Swapx 0x9Cb484FAD38D953bc79e2a39bBc93655256F0B16",
31
31
  Swapx_USDCe_wS_Swapx = "Swapx USDC.e/wS Swapx 0x5C4B7d607aAF7B5CDE9F09b5F03Cf3b5c923AEEa",
32
- Swapx_USDCe_scUSD_Swapx = "Swapx USDC.e/scUSD Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
32
+ Swapx_USDCe_scUSD_USDCe_gauge_Swapx = "Swapx USDC.e/scUSD USDC.e gauge Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
33
+ Swapx_USDCe_scUSD_scUSD_gauge_Swapx = "Swapx USDC.e/scUSD scUSD gauge Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
33
34
  Swapx_scETH_wS_Swapx = "Swapx scETH/wS Swapx 0xFC64BD7c84F7Dc1387D6E752679a533F22f6F1DB",
34
- Swapx_stS_wS_Swapx = "Swapx stS/wS Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653",
35
+ Swapx_stS_wS_stS_gauge_Swapx = "Swapx stS/wS stS gauge Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653",
36
+ Swapx_stS_wS_wS_gauge_Swapx = "Swapx stS/wS wS gauge Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653",
35
37
  Swapx_WETH_USDCe_Swapx = "Swapx WETH/USDC.e Swapx 0xeC4Ee7d6988Ab06F7a8DAaf8C5FDfFdE6321Be68",
36
- Swapx_stS_USDCe_Swapx = "Swapx stS/USDC.e Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9",
38
+ Swapx_stS_USDCe_stS_gauge_Swapx = "Swapx stS/USDC.e stS gauge Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9",
39
+ Swapx_stS_USDCe_USDCe_gauge_Swapx = "Swapx stS/USDC.e USDC.e gauge Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9",
37
40
  Swapx_wETH_wS_Swapx = "Swapx wETH/wS Swapx 0xF58fC088C33aD46113940173cB0da3Dd08c4AA88",
38
41
  Swapx_ANON_USDC_Swapx = "Swapx ANON/USDC Swapx 0x6F7C5f531024216CD8156D0B4E271E0C92a8A4E6",
39
42
  Swapx_ANON_wS_Swapx = "Swapx ANON/wS Swapx 0xb73a4d63fa27EB0Ded5305C5D4D1cE488edfE2A1",
@@ -41,17 +44,21 @@ export declare enum swapxCampaigns {
41
44
  Swapx_OS_wS_Swapx = "Swapx OS/wS Swapx 0xa76Beaf111BaD5dD866fa4835D66b9aA2Eb1FdEc",
42
45
  Swapx_scETH_WETH_Swapx = "Swapx scETH/WETH Swapx 0xDa2fDdeb3D654E1F32E2664d8d95C9329e34E5c8",
43
46
  Swapx_OS_GEMSx_Swapx = "Swapx OS/GEMSx Swapx 0x9ac7F5961a452e9cD5Be5717bD2c3dF412D1c1a5",
44
- Swapx_USDT_USDC_Swapx = "Swapx USDT/USDC Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
47
+ Swapx_USDT_USDCe_USDT_gauge_Swapx = "Swapx USDT/USDC.e USDT gauge Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
48
+ Swapx_USDT_USDCe_USDCe_gauge_Swapx = "Swapx USDT/USDC.e USDC.e gauge Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
45
49
  Swapx_frxUSD_scUSD_Swapx = "Swapx frxUSD/scUSD Swapx 0x63a66Dd60b0F2812249802477adA8a890A030Eca",
46
50
  Swapx_frxETH_scETH_Swapx = "Swapx frxETH/scETH Swapx 0x77BF14037D3f72c65CbaEa92FA3f09f2f8978cBe",
47
51
  Swapx_FXS_frxETH_Swapx = "Swapx FXS/frxETH Swapx 0x3f74c162E4B2baeBA31Ac1698fEB7c5DB3aFFE4A",
48
52
  Swapx_sfrxUSD_frxUSD_Swapx = "Swapx sfrxUSD/frxUSD Swapx 0x7d709a567BA2fdBbB92E94E5fE74b9cbbc590835",
49
53
  Swapx_sfrxETH_frxETH_Swapx = "Swapx sfrxETH/frxETH Swapx 0x586C118d62664C5D253272357359A14349219EBA",
50
- Swapx_sfrxUSD_OS_Swapx = "Swapx sfrxUSD/OS Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6",
54
+ Swapx_sfrxUSD_OS_sfrxUSD_gauge_Swapx = "Swapx sfrxUSD/OS sfrxUSD gauge Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6",
55
+ Swapx_sfrxUSD_OS_OS_gauge_Swapx = "Swapx sfrxUSD/OS OS gauge Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6",
51
56
  Swapx_WBTC_SCBTC_Swapx = "Swapx WBTC/SCBTC Swapx 0xb96F401F789271bc14ADe2229E6189084805c50C",
52
57
  Swapx_ws_scbtc_Swapx = "Swapx ws/scbtc Swapx 0xcD531DAfD592be3CA9bef79cDb4C0dF8A5104b81",
53
58
  Swapx_scUSD_OS_Swapx = "Swapx scUSD/OS Swapx 0x370428430503B3b5970Ccaf530CbC71d02C3B61a",
54
- Swapx_V2_USDCe_scUSD_Swapx = "Swapx V2 USDCe/scUSD 0xBb8aE5b889243561ac9261F22F592B72250AFd1F"
59
+ Swapx_V2_USDCe_scUSD_Swapx = "Swapx V2 USDCe/scUSD 0xBb8aE5b889243561ac9261F22F592B72250AFd1F",
60
+ Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD wstkscUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
61
+ Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb"
55
62
  }
56
63
  export declare enum celoCampaigns {
57
64
  UniswapV3_cUSD_USDT_Celo = "UniswapV3 cUSD/USDT Celo 0x5dC631aD6C26BEA1a59fBF2C2680CF3df43d249f",
@@ -32,11 +32,14 @@ export var swapxCampaigns;
32
32
  swapxCampaigns["Swapx_SWPx_Weth_Swapx"] = "Swapx SWPx/Weth Swapx 0x9c2a7bb01951bE15fe835886188fA13255eF9486";
33
33
  swapxCampaigns["Swapx_SWPx_OS_Swapx"] = "Swapx SWPx/OS Swapx 0x9Cb484FAD38D953bc79e2a39bBc93655256F0B16";
34
34
  swapxCampaigns["Swapx_USDCe_wS_Swapx"] = "Swapx USDC.e/wS Swapx 0x5C4B7d607aAF7B5CDE9F09b5F03Cf3b5c923AEEa";
35
- swapxCampaigns["Swapx_USDCe_scUSD_Swapx"] = "Swapx USDC.e/scUSD Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D";
35
+ swapxCampaigns["Swapx_USDCe_scUSD_USDCe_gauge_Swapx"] = "Swapx USDC.e/scUSD USDC.e gauge Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D";
36
+ swapxCampaigns["Swapx_USDCe_scUSD_scUSD_gauge_Swapx"] = "Swapx USDC.e/scUSD scUSD gauge Swapx 0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D";
36
37
  swapxCampaigns["Swapx_scETH_wS_Swapx"] = "Swapx scETH/wS Swapx 0xFC64BD7c84F7Dc1387D6E752679a533F22f6F1DB";
37
- swapxCampaigns["Swapx_stS_wS_Swapx"] = "Swapx stS/wS Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653";
38
+ swapxCampaigns["Swapx_stS_wS_stS_gauge_Swapx"] = "Swapx stS/wS stS gauge Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653";
39
+ swapxCampaigns["Swapx_stS_wS_wS_gauge_Swapx"] = "Swapx stS/wS wS gauge Swapx 0xD760791B29e7894FB827A94Ca433254bb5aFB653";
38
40
  swapxCampaigns["Swapx_WETH_USDCe_Swapx"] = "Swapx WETH/USDC.e Swapx 0xeC4Ee7d6988Ab06F7a8DAaf8C5FDfFdE6321Be68";
39
- swapxCampaigns["Swapx_stS_USDCe_Swapx"] = "Swapx stS/USDC.e Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9";
41
+ swapxCampaigns["Swapx_stS_USDCe_stS_gauge_Swapx"] = "Swapx stS/USDC.e stS gauge Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9";
42
+ swapxCampaigns["Swapx_stS_USDCe_USDCe_gauge_Swapx"] = "Swapx stS/USDC.e USDC.e gauge Swapx 0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9";
40
43
  swapxCampaigns["Swapx_wETH_wS_Swapx"] = "Swapx wETH/wS Swapx 0xF58fC088C33aD46113940173cB0da3Dd08c4AA88";
41
44
  swapxCampaigns["Swapx_ANON_USDC_Swapx"] = "Swapx ANON/USDC Swapx 0x6F7C5f531024216CD8156D0B4E271E0C92a8A4E6";
42
45
  swapxCampaigns["Swapx_ANON_wS_Swapx"] = "Swapx ANON/wS Swapx 0xb73a4d63fa27EB0Ded5305C5D4D1cE488edfE2A1";
@@ -44,17 +47,21 @@ export var swapxCampaigns;
44
47
  swapxCampaigns["Swapx_OS_wS_Swapx"] = "Swapx OS/wS Swapx 0xa76Beaf111BaD5dD866fa4835D66b9aA2Eb1FdEc";
45
48
  swapxCampaigns["Swapx_scETH_WETH_Swapx"] = "Swapx scETH/WETH Swapx 0xDa2fDdeb3D654E1F32E2664d8d95C9329e34E5c8";
46
49
  swapxCampaigns["Swapx_OS_GEMSx_Swapx"] = "Swapx OS/GEMSx Swapx 0x9ac7F5961a452e9cD5Be5717bD2c3dF412D1c1a5";
47
- swapxCampaigns["Swapx_USDT_USDC_Swapx"] = "Swapx USDT/USDC Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6";
50
+ swapxCampaigns["Swapx_USDT_USDCe_USDT_gauge_Swapx"] = "Swapx USDT/USDC.e USDT gauge Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6";
51
+ swapxCampaigns["Swapx_USDT_USDCe_USDCe_gauge_Swapx"] = "Swapx USDT/USDC.e USDC.e gauge Swapx 0x0d13400CC7c46D77a43957fE614ba58C827dfde6";
48
52
  swapxCampaigns["Swapx_frxUSD_scUSD_Swapx"] = "Swapx frxUSD/scUSD Swapx 0x63a66Dd60b0F2812249802477adA8a890A030Eca";
49
53
  swapxCampaigns["Swapx_frxETH_scETH_Swapx"] = "Swapx frxETH/scETH Swapx 0x77BF14037D3f72c65CbaEa92FA3f09f2f8978cBe";
50
54
  swapxCampaigns["Swapx_FXS_frxETH_Swapx"] = "Swapx FXS/frxETH Swapx 0x3f74c162E4B2baeBA31Ac1698fEB7c5DB3aFFE4A";
51
55
  swapxCampaigns["Swapx_sfrxUSD_frxUSD_Swapx"] = "Swapx sfrxUSD/frxUSD Swapx 0x7d709a567BA2fdBbB92E94E5fE74b9cbbc590835";
52
56
  swapxCampaigns["Swapx_sfrxETH_frxETH_Swapx"] = "Swapx sfrxETH/frxETH Swapx 0x586C118d62664C5D253272357359A14349219EBA";
53
- swapxCampaigns["Swapx_sfrxUSD_OS_Swapx"] = "Swapx sfrxUSD/OS Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6";
57
+ swapxCampaigns["Swapx_sfrxUSD_OS_sfrxUSD_gauge_Swapx"] = "Swapx sfrxUSD/OS sfrxUSD gauge Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6";
58
+ swapxCampaigns["Swapx_sfrxUSD_OS_OS_gauge_Swapx"] = "Swapx sfrxUSD/OS OS gauge Swapx 0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6";
54
59
  swapxCampaigns["Swapx_WBTC_SCBTC_Swapx"] = "Swapx WBTC/SCBTC Swapx 0xb96F401F789271bc14ADe2229E6189084805c50C";
55
60
  swapxCampaigns["Swapx_ws_scbtc_Swapx"] = "Swapx ws/scbtc Swapx 0xcD531DAfD592be3CA9bef79cDb4C0dF8A5104b81";
56
61
  swapxCampaigns["Swapx_scUSD_OS_Swapx"] = "Swapx scUSD/OS Swapx 0x370428430503B3b5970Ccaf530CbC71d02C3B61a";
57
62
  swapxCampaigns["Swapx_V2_USDCe_scUSD_Swapx"] = "Swapx V2 USDCe/scUSD 0xBb8aE5b889243561ac9261F22F592B72250AFd1F";
63
+ swapxCampaigns["Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/scUSD wstkscUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb";
64
+ swapxCampaigns["Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx"] = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb";
58
65
  })(swapxCampaigns || (swapxCampaigns = {}));
59
66
  export var celoCampaigns;
60
67
  (function (celoCampaigns) {
@@ -610,12 +617,26 @@ const SwapxInterfaceCampaigns = {
610
617
  weightToken0: 4000,
611
618
  weightToken1: 4000,
612
619
  },
613
- [swapxCampaigns.Swapx_USDCe_scUSD_Swapx]: {
620
+ [swapxCampaigns.Swapx_USDCe_scUSD_USDCe_gauge_Swapx]: {
614
621
  campaignType: Campaign.CLAMM,
615
622
  computeChainId: ChainId.SONIC,
616
623
  hooks: [],
617
624
  poolAddress: "0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
618
- whitelist: ["0x640429B0633851F487639BcDd8Ed523DDf1Bbff8", "0x4604782BcD6F749B271Fc9d14BFd583be6e5a6cf"],
625
+ whitelist: ["0x640429B0633851F487639BcDd8Ed523DDf1Bbff8"],
626
+ blacklist: [],
627
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
628
+ forwarders: [],
629
+ isOutOfRangeIncentivized: false,
630
+ weightFees: 2000,
631
+ weightToken0: 4000,
632
+ weightToken1: 4000,
633
+ },
634
+ [swapxCampaigns.Swapx_USDCe_scUSD_scUSD_gauge_Swapx]: {
635
+ campaignType: Campaign.CLAMM,
636
+ computeChainId: ChainId.SONIC,
637
+ hooks: [],
638
+ poolAddress: "0xDd35c88B1754879EF86BBF3A24F81fCCA5Eb6B5D",
639
+ whitelist: ["0x4604782BcD6F749B271Fc9d14BFd583be6e5a6cf"],
619
640
  blacklist: [],
620
641
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
621
642
  forwarders: [],
@@ -638,12 +659,26 @@ const SwapxInterfaceCampaigns = {
638
659
  weightToken0: 4000,
639
660
  weightToken1: 4000,
640
661
  },
641
- [swapxCampaigns.Swapx_stS_wS_Swapx]: {
662
+ [swapxCampaigns.Swapx_stS_wS_stS_gauge_Swapx]: {
642
663
  campaignType: Campaign.CLAMM,
643
664
  computeChainId: ChainId.SONIC,
644
665
  hooks: [],
645
666
  poolAddress: "0xD760791B29e7894FB827A94Ca433254bb5aFB653",
646
- whitelist: ["0x2f9e2852de03c42c13d3dCdD2C57c0b3cF0382c1", "0xC693c6fc1d2b44DfB5C5aa05Ca2b02A91DB97528"],
667
+ whitelist: ["0x2f9e2852de03c42c13d3dCdD2C57c0b3cF0382c1"],
668
+ blacklist: [],
669
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
670
+ forwarders: [],
671
+ isOutOfRangeIncentivized: false,
672
+ weightFees: 2000,
673
+ weightToken0: 4000,
674
+ weightToken1: 4000,
675
+ },
676
+ [swapxCampaigns.Swapx_stS_wS_wS_gauge_Swapx]: {
677
+ campaignType: Campaign.CLAMM,
678
+ computeChainId: ChainId.SONIC,
679
+ hooks: [],
680
+ poolAddress: "0xD760791B29e7894FB827A94Ca433254bb5aFB653",
681
+ whitelist: ["0xC693c6fc1d2b44DfB5C5aa05Ca2b02A91DB97528"],
647
682
  blacklist: [],
648
683
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
649
684
  forwarders: [],
@@ -666,12 +701,26 @@ const SwapxInterfaceCampaigns = {
666
701
  weightToken0: 4000,
667
702
  weightToken1: 4000,
668
703
  },
669
- [swapxCampaigns.Swapx_stS_USDCe_Swapx]: {
704
+ [swapxCampaigns.Swapx_stS_USDCe_stS_gauge_Swapx]: {
705
+ campaignType: Campaign.CLAMM,
706
+ computeChainId: ChainId.SONIC,
707
+ hooks: [],
708
+ poolAddress: "0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9",
709
+ whitelist: ["0x7791ECC02Ce43f877DF2D39d8073572Ded64617e"],
710
+ blacklist: [],
711
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
712
+ forwarders: [],
713
+ isOutOfRangeIncentivized: false,
714
+ weightFees: 2000,
715
+ weightToken0: 4000,
716
+ weightToken1: 4000,
717
+ },
718
+ [swapxCampaigns.Swapx_stS_USDCe_USDCe_gauge_Swapx]: {
670
719
  campaignType: Campaign.CLAMM,
671
720
  computeChainId: ChainId.SONIC,
672
721
  hooks: [],
673
722
  poolAddress: "0x5DDbeF774488cc68266d5F15bFB08eaA7cd513F9",
674
- whitelist: ["0x7791ECC02Ce43f877DF2D39d8073572Ded64617e", "0x6bd21754fB317ABA1F112c3d01904669e7D34803"],
723
+ whitelist: ["0x6bd21754fB317ABA1F112c3d01904669e7D34803"],
675
724
  blacklist: [],
676
725
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
677
726
  forwarders: [],
@@ -778,12 +827,26 @@ const SwapxInterfaceCampaigns = {
778
827
  weightToken0: 4000,
779
828
  weightToken1: 4000,
780
829
  },
781
- [swapxCampaigns.Swapx_USDT_USDC_Swapx]: {
830
+ [swapxCampaigns.Swapx_USDT_USDCe_USDT_gauge_Swapx]: {
831
+ campaignType: Campaign.CLAMM,
832
+ computeChainId: ChainId.SONIC,
833
+ hooks: [],
834
+ poolAddress: "0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
835
+ whitelist: ["0x29985EE262a4C9D878AA6A9B9dC43f2FC87a81c6"],
836
+ blacklist: [],
837
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
838
+ forwarders: [],
839
+ isOutOfRangeIncentivized: false,
840
+ weightFees: 2000,
841
+ weightToken0: 4000,
842
+ weightToken1: 4000,
843
+ },
844
+ [swapxCampaigns.Swapx_USDT_USDCe_USDCe_gauge_Swapx]: {
782
845
  campaignType: Campaign.CLAMM,
783
846
  computeChainId: ChainId.SONIC,
784
847
  hooks: [],
785
848
  poolAddress: "0x0d13400CC7c46D77a43957fE614ba58C827dfde6",
786
- whitelist: ["0x29985EE262a4C9D878AA6A9B9dC43f2FC87a81c6", "0x30Df881606c719916b99a0b5bc89e5eB338a226C"],
849
+ whitelist: ["0x30Df881606c719916b99a0b5bc89e5eB338a226C"],
787
850
  blacklist: [],
788
851
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
789
852
  forwarders: [],
@@ -862,12 +925,26 @@ const SwapxInterfaceCampaigns = {
862
925
  weightToken0: 4000,
863
926
  weightToken1: 4000,
864
927
  },
865
- [swapxCampaigns.Swapx_sfrxUSD_OS_Swapx]: {
928
+ [swapxCampaigns.Swapx_sfrxUSD_OS_sfrxUSD_gauge_Swapx]: {
866
929
  campaignType: Campaign.CLAMM,
867
930
  computeChainId: ChainId.SONIC,
868
931
  hooks: [],
869
932
  poolAddress: "0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6",
870
- whitelist: ["0x88d6c63f1EF23bDff2bD483831074dc23d8416d4", "0x99d8E114F1a6359c6048Ae5Cce163786c0Ce97DF"],
933
+ whitelist: ["0x88d6c63f1EF23bDff2bD483831074dc23d8416d4"],
934
+ blacklist: [],
935
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
936
+ forwarders: [],
937
+ isOutOfRangeIncentivized: false,
938
+ weightFees: 2000,
939
+ weightToken0: 4000,
940
+ weightToken1: 4000,
941
+ },
942
+ [swapxCampaigns.Swapx_sfrxUSD_OS_OS_gauge_Swapx]: {
943
+ campaignType: Campaign.CLAMM,
944
+ computeChainId: ChainId.SONIC,
945
+ hooks: [],
946
+ poolAddress: "0x9255F31eF9B35d085cED6fE29F9E077EB1f513C6",
947
+ whitelist: ["0x99d8E114F1a6359c6048Ae5Cce163786c0Ce97DF"],
871
948
  blacklist: [],
872
949
  url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
873
950
  forwarders: [],
@@ -918,6 +995,34 @@ const SwapxInterfaceCampaigns = {
918
995
  weightToken0: 4000,
919
996
  weightToken1: 4000,
920
997
  },
998
+ [swapxCampaigns.Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx]: {
999
+ campaignType: Campaign.CLAMM,
1000
+ computeChainId: ChainId.SONIC,
1001
+ hooks: [],
1002
+ poolAddress: "0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
1003
+ whitelist: ["0xA57898F2076277670394807F0456413BF595b25D"],
1004
+ blacklist: [],
1005
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1006
+ forwarders: [],
1007
+ isOutOfRangeIncentivized: false,
1008
+ weightFees: 2000,
1009
+ weightToken0: 4000,
1010
+ weightToken1: 4000,
1011
+ },
1012
+ [swapxCampaigns.Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx]: {
1013
+ campaignType: Campaign.CLAMM,
1014
+ computeChainId: ChainId.SONIC,
1015
+ hooks: [],
1016
+ poolAddress: "0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
1017
+ whitelist: ["0xECDd1Df06b5b0C598348678F83B74ADDcbD45835"],
1018
+ blacklist: [],
1019
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
1020
+ forwarders: [],
1021
+ isOutOfRangeIncentivized: false,
1022
+ weightFees: 2000,
1023
+ weightToken0: 4000,
1024
+ weightToken1: 4000,
1025
+ },
921
1026
  [swapxCampaigns.Swapx_V2_USDCe_scUSD_Swapx]: {
922
1027
  campaignType: Campaign.ERC20,
923
1028
  computeChainId: ChainId.SONIC,
@@ -1,10 +1,10 @@
1
1
  import type { CreateProtocolModel, GetProtocolsQueryModel, Protocol, ProtocolId, UpdateProtocolModel } from "./protocol.model";
2
2
  export declare abstract class ProtocolService {
3
- findMany(query: GetProtocolsQueryModel): Promise<Protocol["model"][]>;
4
- countMany(query: GetProtocolsQueryModel): Promise<number>;
5
- getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
6
- getFromName(name: string): Promise<Protocol["model"] | null>;
7
- create(data: CreateProtocolModel): Promise<{
3
+ static findMany(query: GetProtocolsQueryModel): Promise<Protocol["model"][]>;
4
+ static countMany(query: GetProtocolsQueryModel): Promise<number>;
5
+ static getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
6
+ static getFromName(name: string): Promise<Protocol["model"] | null>;
7
+ static create(data: CreateProtocolModel): Promise<{
8
8
  name: string;
9
9
  url: string;
10
10
  description: string;
@@ -12,7 +12,7 @@ export declare abstract class ProtocolService {
12
12
  tags: string[];
13
13
  icon: string;
14
14
  }>;
15
- update(id: string, data: UpdateProtocolModel): Promise<{
15
+ static update(id: string, data: UpdateProtocolModel): Promise<{
16
16
  name: string;
17
17
  url: string;
18
18
  description: string;
@@ -20,5 +20,5 @@ export declare abstract class ProtocolService {
20
20
  tags: string[];
21
21
  icon: string;
22
22
  }>;
23
- changeLogoUrls(): Promise<void>;
23
+ static changeLogoUrls(): Promise<void>;
24
24
  }
@@ -4,7 +4,7 @@ import { ChainService } from "../chain";
4
4
  import { ProtocolRepository } from "./protocol.repository";
5
5
  // ─── Protocols Services ──────────────────────────────────────────────────────
6
6
  export class ProtocolService {
7
- async findMany(query) {
7
+ static async findMany(query) {
8
8
  const protocols = await ProtocolRepository.findMany(query);
9
9
  const enrichedProtocols = protocols.map(({ MainOpportunities, ...protocol }) => ({
10
10
  ...protocol,
@@ -14,33 +14,33 @@ export class ProtocolService {
14
14
  }));
15
15
  return enrichedProtocols;
16
16
  }
17
- async countMany(query) {
17
+ static async countMany(query) {
18
18
  return ProtocolRepository.countMany(query);
19
19
  }
20
- async getFromId(id) {
20
+ static async getFromId(id) {
21
21
  return ProtocolRepository.read(id);
22
22
  }
23
23
  // Todo : Should be a findfirst by name here
24
- async getFromName(name) {
24
+ static async getFromName(name) {
25
25
  return (await ProtocolRepository.findManyByName(name))[0];
26
26
  }
27
- async create(data) {
27
+ static async create(data) {
28
28
  return await ProtocolRepository.create(data);
29
29
  }
30
- async update(id, data) {
30
+ static async update(id, data) {
31
31
  // let iconUri = data.icon;
32
32
  // if (data.iconFile) {
33
33
  // iconUri = await BucketService.upload("merkl-assets", `/protocols/${id}`, data.iconFile.stream(), true);
34
34
  // }
35
35
  return await ProtocolRepository.update(id, data);
36
36
  }
37
- async changeLogoUrls() {
37
+ static async changeLogoUrls() {
38
38
  const oldUrl = "https://storage.googleapis.com/merkl-assets/";
39
39
  const newUrl = "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/";
40
- const protocols = await this.findMany({ items: 10_000 });
40
+ const protocols = await ProtocolService.findMany({ items: 10_000 });
41
41
  for (const protocol of protocols) {
42
42
  if (protocol.icon.includes(oldUrl)) {
43
- await this.update(protocol.id, { icon: protocol.icon.replace(oldUrl, newUrl) });
43
+ await ProtocolService.update(protocol.id, { icon: protocol.icon.replace(oldUrl, newUrl) });
44
44
  log.info(`Updated protocol ${protocol.id} icon`);
45
45
  }
46
46
  }
@@ -2847,8 +2847,18 @@ export declare const v4: Elysia<"/v4", false, {
2847
2847
  };
2848
2848
  headers: unknown;
2849
2849
  response: {
2850
- [x: string]: any;
2851
- 200: any;
2850
+ 200: ({
2851
+ name: string;
2852
+ url: string;
2853
+ description: string;
2854
+ id: string;
2855
+ tags: string[];
2856
+ icon: string;
2857
+ } & {
2858
+ dailyRewards?: number | undefined;
2859
+ numberOfLiveCampaigns?: number | undefined;
2860
+ opportunityLiveTags?: string[] | undefined;
2861
+ })[];
2852
2862
  };
2853
2863
  };
2854
2864
  };