@merkl/api 1.0.81 → 1.0.82

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.
@@ -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 IchiMetadata 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: "POOL";
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" | "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;
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 IchiTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
5
+ build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
6
+ }
@@ -121,5 +121,6 @@ export declare enum Erc20SubType {
121
121
  mimswap = "mimswap",
122
122
  ichi = "ichi",
123
123
  swapx = "swapx",
124
- rooster = "rooster"
124
+ rooster = "rooster",
125
+ ichi_vault = "ichi_vault"
125
126
  }
@@ -6,7 +6,7 @@ type campaignType = Campaign.MORPHOCOLLATERAL | Campaign.MORPHOCOLLATERAL_FIXAPR
6
6
  * @dev important: using the most recent state save with current prices
7
7
  * it's only an estimate
8
8
  */
9
- export declare function computeMorphoCollateralTVLFromMostRecentStateSave(computeChainId: MerklChainId, market: string, campaign: CampaignParameters<campaignType | Campaign.MORPHOCOLLATERAL_SINGLETOKEN>): Promise<{
9
+ export declare function computeMorphoCollateralTVLFromMostRecentStateSave(computeChainId: MerklChainId, market: string, campaign: CampaignParameters<campaignType | Campaign.MORPHOCOLLATERAL_SINGLETOKEN>, computeMethod?: string): Promise<{
10
10
  totalCollateral: bigint;
11
11
  blockNumber: number;
12
12
  }>;