@merkl/api 1.1.11 → 1.1.13

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.
@@ -10,10 +10,6 @@ export declare const SORTEDCDPS_ADDRESS = "0x591AcB5AE192c147948c12651a0a5f24f05
10
10
  export declare const RFX_DATASTORE = "0x895124783008C6c68eFcccac24c482Fdf30439B2";
11
11
  export declare const constantChain: {
12
12
  1: {
13
- apw: string;
14
- convexEndpoint: string;
15
- crv: string;
16
- crv3: string;
17
13
  crvANGLESDANGLE: string;
18
14
  crvEURAEUROC: string;
19
15
  crvEURAEURe: string;
@@ -21,63 +17,6 @@ export declare const constantChain: {
21
17
  crvFRAX: string;
22
18
  crvFRAXEURA: string;
23
19
  crvLUSD3CRV: string;
24
- cvx: string;
25
- dai: string;
26
- frax: string;
27
- fxs: string;
28
- morpho: string;
29
- rKP3R: string;
30
- sdt: string;
31
- stakeEndpoint: string;
32
- sushi: string;
33
- usdc: string;
34
- weth: string;
35
- wstETH: string;
36
- };
37
- 42161: {
38
- arb: string;
39
- chr: string;
40
- convexProxy: string;
41
- crv: string;
42
- crv2Pool: string;
43
- cvx: string;
44
- frax: string;
45
- jeur: string;
46
- ram: string;
47
- sdt: string;
48
- sliz: string;
49
- stakeEndpoint: string;
50
- usdc: string;
51
- };
52
- 10: {
53
- jeur: string;
54
- mai: string;
55
- op: string;
56
- usdc: string;
57
- usdce: string;
58
- velo: string;
59
- veloV2: string;
60
- };
61
- 8453: {
62
- aero: string;
63
- usdc: string;
64
- };
65
- 137: {
66
- am3CRV: string;
67
- amDAI: string;
68
- amUSDC: string;
69
- amUSDT: string;
70
- jeur: string;
71
- jrt: string;
72
- oretro: string;
73
- usdc: string;
74
- };
75
- 43114: {
76
- glcr: string;
77
- usdc: string;
78
- };
79
- 56: {
80
- cake: string;
81
20
  };
82
21
  };
83
22
  export declare const MAVERICK_ZKSYNC_BP_LENS_ADDRESS = "0xd32CE31CaC98CAC0631764B8286358c0606D87F9";
@@ -0,0 +1,31 @@
1
+ import type { Erc20LikeCampaignEnum } from "../..";
2
+ import type { MetadataBuilder } from "../../../../../../engine/metadata/interface";
3
+ import type { CampaignWithParams } from "../../../../../../modules/v4/campaign/campaign.model";
4
+ import type { ProtocolId } from "../../../../../../modules/v4/protocol/protocol.model";
5
+ export declare class ERC4626Metadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
6
+ /**
7
+ * @notice Protocol entity ID - must be defined in the corresponding file and created in DB
8
+ */
9
+ mainProtocol: ProtocolId;
10
+ /**
11
+ * @notice Protocol name - used to create the opportunity name
12
+ */
13
+ protocolName: string;
14
+ /**
15
+ * @notice Function to generate the deposit URL for the opportunity
16
+ */
17
+ depositUrl?: (underlyingToken: string) => string;
18
+ constructor(mainProtocol: ProtocolId, protocolName: string, depositUrl?: (underlyingToken: string) => string);
19
+ build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides" | "opportunityId">, _opportunityIdentifier: string): Promise<{
20
+ action: "LEND";
21
+ mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "ekubo" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer";
22
+ name: string;
23
+ description: string;
24
+ tokens: {
25
+ chainId: number;
26
+ address: string;
27
+ }[];
28
+ depositUrl: string | undefined;
29
+ explorerAddress: string;
30
+ }>;
31
+ }
@@ -0,0 +1,6 @@
1
+ import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
2
+ import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
3
+ import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
4
+ export declare class ERC4626TVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
5
+ build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
6
+ }
@@ -1,4 +1,4 @@
1
- import { Campaign, ChainId, ComposedType, CompoundV3SubCampaignType, ComputeScoreMethod, DistributionMethod, HOOK, boostingReferralFunction, contractStateBoost, defaultReferralBoost } from "@angleprotocol/sdk/ts";
1
+ import { BorrowBLProtocols, Campaign, ChainId, ComposedType, CompoundV3SubCampaignType, ComputeScoreMethod, DistributionMethod, EulerSubCampaignType, HOOK, boostingReferralFunction, contractStateBoost, defaultReferralBoost } from "@angleprotocol/sdk/ts";
2
2
  import type { partialConfig } from "./programPayload.model";
3
3
  import { HypurrFiSubPayloads } from "./subPayloads/hypurrFi";
4
4
  import { NibiruSubPayloads } from "./subPayloads/nibiru";
@@ -31,7 +31,8 @@ export declare enum program {
31
31
  Tanssi = "Tanssi",
32
32
  Nibiru = "Nibiru",
33
33
  Saga = "Saga",
34
- Extrafi = "Extrafi"
34
+ Extrafi = "Extrafi",
35
+ EthenaUSDtb = "EthenaUSDtb"
35
36
  }
36
37
  export declare enum SagaCampaigns {
37
38
  Uniswap_SAGA_USDC_Saga = "Uniswap SAGA/USDC Saga 0xc2C5f2C94759b2829C9Fd86b8d34d33DDc4D29e4",
@@ -1715,8 +1716,211 @@ export declare enum tacCampaigns {
1715
1716
  TAC_Supply_uTAC = "TAC Supply uTAC++ 0xAF87B90E8a3035905697E07Bb813d2d59D2b0951"
1716
1717
  }
1717
1718
  export declare enum ethenaMaxAPR {
1718
- EthenaTest = "test"
1719
+ Ethena_USDTB_MaxAPR_Aave = "Ethena USDtb MAX APR Aave 0xEc4ef66D4fCeEba34aBB4dE69dB391Bc5476ccc8",
1720
+ Ethena_USDTB_MaxAPR_EulerPrime = "Ethena USDtb MAX APR Euler Prime 0x328646cdfBaD730432620d845B8F5A2f7D786C01",
1721
+ Ethena_USDTB_MaxAPR_EulerYield = "Ethena USDtb MAX APR Euler Yield 0x8d1A625517eD9120a8bA66d22db66ddf7fBC6c52",
1722
+ Ethena_USDTB_MaxAPR_Morpho = "Ethena USDtb MAX APR Morpho 0xBeEFC1CDAfc5b4a649b54D07AFc6bF0f75C6F4E2",
1723
+ Ethena_USDTB_MaxAPR_fUSDTB = "Ethena USDtb MAX APR Fluid fUSDtb 0x15e8c742614b5D8Db4083A41Df1A14F5D2bFB400",
1724
+ Ethena_USDTB_MaxAPR_USDEUSDTBUSDT = "Ethena USDtb MAX APR Fluid USDEUSDtb-USDT 0x5668c53C6188BA0a311E28b54D7822771D9BDeea",
1725
+ Ethena_USDTB_MaxAPR_USDEUSDTBUSDC = "Ethena USDtb MAX APR Fluid USDEUSDtb-USDC 0x71a3bD2B2214E51e33144590948aA88beAfF2E44",
1726
+ Ethena_USDTB_MaxAPR_USDEUSDTBGHO = "Ethena USDtb MAX APR Fluid USDEUSDtb-GHO 0x1e6ce96d65901E0779C17E83258e07D2f8962fa4"
1719
1727
  }
1728
+ declare const EthenaCampaigns: {
1729
+ "Ethena USDtb MAX APR Aave 0xEc4ef66D4fCeEba34aBB4dE69dB391Bc5476ccc8": {
1730
+ campaignType: Campaign;
1731
+ targetToken: string;
1732
+ whitelist: never[];
1733
+ blacklist: never[];
1734
+ hooks: {
1735
+ hookType: HOOK;
1736
+ protocol: BorrowBLProtocols;
1737
+ borrowBytesLike: string[];
1738
+ computeChainId: ChainId;
1739
+ }[];
1740
+ computeChainId: ChainId;
1741
+ computeScoreParameters: {
1742
+ computeMethod: ComputeScoreMethod;
1743
+ };
1744
+ distributionMethodParameters: {
1745
+ distributionMethod: DistributionMethod;
1746
+ distributionSettings: {
1747
+ apr: string;
1748
+ rewardTokenPricing: boolean;
1749
+ targetTokenPricing: boolean;
1750
+ };
1751
+ };
1752
+ };
1753
+ "Ethena USDtb MAX APR Euler Prime 0x328646cdfBaD730432620d845B8F5A2f7D786C01": {
1754
+ campaignType: Campaign;
1755
+ subCampaignType: EulerSubCampaignType;
1756
+ evkAddress: string;
1757
+ whitelist: never[];
1758
+ blacklist: never[];
1759
+ hooks: {
1760
+ hookType: HOOK;
1761
+ protocol: BorrowBLProtocols;
1762
+ borrowBytesLike: string[];
1763
+ computeChainId: ChainId;
1764
+ }[];
1765
+ computeChainId: ChainId;
1766
+ computeScoreParameters: {
1767
+ computeMethod: ComputeScoreMethod;
1768
+ };
1769
+ distributionMethodParameters: {
1770
+ distributionMethod: DistributionMethod;
1771
+ distributionSettings: {
1772
+ apr: string;
1773
+ rewardTokenPricing: boolean;
1774
+ targetTokenPricing: boolean;
1775
+ };
1776
+ };
1777
+ };
1778
+ "Ethena USDtb MAX APR Euler Yield 0x8d1A625517eD9120a8bA66d22db66ddf7fBC6c52": {
1779
+ campaignType: Campaign;
1780
+ subCampaignType: EulerSubCampaignType;
1781
+ evkAddress: string;
1782
+ whitelist: never[];
1783
+ blacklist: never[];
1784
+ hooks: {
1785
+ hookType: HOOK;
1786
+ protocol: BorrowBLProtocols;
1787
+ borrowBytesLike: string[];
1788
+ computeChainId: ChainId;
1789
+ }[];
1790
+ computeChainId: ChainId;
1791
+ computeScoreParameters: {
1792
+ computeMethod: ComputeScoreMethod;
1793
+ };
1794
+ distributionMethodParameters: {
1795
+ distributionMethod: DistributionMethod;
1796
+ distributionSettings: {
1797
+ apr: string;
1798
+ rewardTokenPricing: boolean;
1799
+ targetTokenPricing: boolean;
1800
+ };
1801
+ };
1802
+ };
1803
+ "Ethena USDtb MAX APR Morpho 0xBeEFC1CDAfc5b4a649b54D07AFc6bF0f75C6F4E2": {
1804
+ campaignType: Campaign;
1805
+ market: string;
1806
+ whitelist: never[];
1807
+ blacklist: never[];
1808
+ hooks: {
1809
+ hookType: HOOK;
1810
+ protocol: BorrowBLProtocols;
1811
+ borrowBytesLike: string[];
1812
+ computeChainId: ChainId;
1813
+ }[];
1814
+ computeChainId: ChainId;
1815
+ computeScoreParameters: {
1816
+ computeMethod: ComputeScoreMethod;
1817
+ };
1818
+ distributionMethodParameters: {
1819
+ distributionMethod: DistributionMethod;
1820
+ distributionSettings: {
1821
+ apr: string;
1822
+ rewardTokenPricing: boolean;
1823
+ targetTokenPricing: boolean;
1824
+ };
1825
+ };
1826
+ };
1827
+ "Ethena USDtb MAX APR Fluid fUSDtb 0x15e8c742614b5D8Db4083A41Df1A14F5D2bFB400": {
1828
+ campaignType: Campaign;
1829
+ targetToken: string;
1830
+ whitelist: never[];
1831
+ blacklist: never[];
1832
+ hooks: {
1833
+ hookType: HOOK;
1834
+ protocol: BorrowBLProtocols;
1835
+ borrowBytesLike: string[];
1836
+ computeChainId: ChainId;
1837
+ }[];
1838
+ computeChainId: ChainId;
1839
+ computeScoreParameters: {
1840
+ computeMethod: ComputeScoreMethod;
1841
+ };
1842
+ distributionMethodParameters: {
1843
+ distributionMethod: DistributionMethod;
1844
+ distributionSettings: {
1845
+ apr: string;
1846
+ rewardTokenPricing: boolean;
1847
+ targetTokenPricing: boolean;
1848
+ };
1849
+ };
1850
+ };
1851
+ "Ethena USDtb MAX APR Fluid USDEUSDtb-USDT 0x5668c53C6188BA0a311E28b54D7822771D9BDeea": {
1852
+ campaignType: Campaign;
1853
+ vault: string;
1854
+ whitelist: never[];
1855
+ blacklist: never[];
1856
+ hooks: {
1857
+ hookType: HOOK;
1858
+ protocol: BorrowBLProtocols;
1859
+ borrowBytesLike: string[];
1860
+ computeChainId: ChainId;
1861
+ }[];
1862
+ computeChainId: ChainId;
1863
+ computeScoreParameters: {
1864
+ computeMethod: ComputeScoreMethod;
1865
+ };
1866
+ distributionMethodParameters: {
1867
+ distributionMethod: DistributionMethod;
1868
+ distributionSettings: {
1869
+ apr: string;
1870
+ rewardTokenPricing: boolean;
1871
+ targetTokenPricing: boolean;
1872
+ };
1873
+ };
1874
+ };
1875
+ "Ethena USDtb MAX APR Fluid USDEUSDtb-USDC 0x71a3bD2B2214E51e33144590948aA88beAfF2E44": {
1876
+ campaignType: Campaign;
1877
+ vault: string;
1878
+ whitelist: never[];
1879
+ blacklist: never[];
1880
+ hooks: {
1881
+ hookType: HOOK;
1882
+ protocol: BorrowBLProtocols;
1883
+ borrowBytesLike: string[];
1884
+ computeChainId: ChainId;
1885
+ }[];
1886
+ computeChainId: ChainId;
1887
+ computeScoreParameters: {
1888
+ computeMethod: ComputeScoreMethod;
1889
+ };
1890
+ distributionMethodParameters: {
1891
+ distributionMethod: DistributionMethod;
1892
+ distributionSettings: {
1893
+ apr: string;
1894
+ rewardTokenPricing: boolean;
1895
+ targetTokenPricing: boolean;
1896
+ };
1897
+ };
1898
+ };
1899
+ "Ethena USDtb MAX APR Fluid USDEUSDtb-GHO 0x1e6ce96d65901E0779C17E83258e07D2f8962fa4": {
1900
+ campaignType: Campaign;
1901
+ vault: string;
1902
+ whitelist: never[];
1903
+ blacklist: never[];
1904
+ hooks: {
1905
+ hookType: HOOK;
1906
+ protocol: BorrowBLProtocols;
1907
+ borrowBytesLike: string[];
1908
+ computeChainId: ChainId;
1909
+ }[];
1910
+ computeChainId: ChainId;
1911
+ computeScoreParameters: {
1912
+ computeMethod: ComputeScoreMethod;
1913
+ };
1914
+ distributionMethodParameters: {
1915
+ distributionMethod: DistributionMethod;
1916
+ distributionSettings: {
1917
+ apr: string;
1918
+ rewardTokenPricing: boolean;
1919
+ targetTokenPricing: boolean;
1920
+ };
1921
+ };
1922
+ };
1923
+ };
1720
1924
  declare const AnglesInterfaceCampaigns: {
1721
1925
  "0x15E96CDecA34B9DE1B31586c1206206aDb92E69D": {
1722
1926
  campaignType: Campaign;
@@ -3710,6 +3914,6 @@ declare const stabilityCampaignsInterface: {
3710
3914
  [key in stabilityCampaigns]: partialConfig;
3711
3915
  };
3712
3916
  export declare const MerklInterfaceCampaigns: {
3713
- [key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface | typeof LiskInterfaceCampaigns | typeof TestCampaigns | typeof stabilityCampaignsInterface | typeof TanssiCampaignsInterface | typeof ExtrafiCampaignsInterface | typeof NibiruSubPayloads | typeof SagaCampaignsInterface;
3917
+ [key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface | typeof LiskInterfaceCampaigns | typeof TestCampaigns | typeof stabilityCampaignsInterface | typeof TanssiCampaignsInterface | typeof ExtrafiCampaignsInterface | typeof NibiruSubPayloads | typeof SagaCampaignsInterface | typeof EthenaCampaigns;
3714
3918
  };
3715
3919
  export {};