@merkl/api 1.0.4 → 1.0.8
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.
- package/dist/src/eden/index.d.ts +692 -8972
- package/dist/src/eden/index.js +0 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +2 -2
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Ambient/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Badger/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Compound/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Default/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +5 -5
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +2 -2
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Invalid/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ion/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Locker/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Silo/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Vest/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +3 -3
- package/dist/src/index.d.ts +290 -72
- package/dist/src/libs/deprecated-merklv3/index.d.ts +2 -2
- package/dist/src/libs/positions/EigenLayer/index.d.ts +1 -1
- package/dist/src/libs/positions/ajna/index.d.ts +1 -1
- package/dist/src/libs/positions/badger/index.d.ts +1 -1
- package/dist/src/libs/positions/compound/index.d.ts +1 -1
- package/dist/src/libs/positions/dolomite/index.d.ts +1 -1
- package/dist/src/libs/positions/erc20/index.d.ts +1 -1
- package/dist/src/libs/positions/euler/index.d.ts +1 -1
- package/dist/src/libs/positions/morpho/index.d.ts +1 -1
- package/dist/src/libs/positions/silo/index.d.ts +1 -1
- package/dist/src/libs/tokens/balances.d.ts +1 -1
- package/dist/src/libs/tokens/tokenInfo.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/apr/apr.model.d.ts +16 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +23 -17
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +10 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +3 -3
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +3 -3
- package/dist/src/modules/v4/chain/chain.model.d.ts +1 -1
- package/dist/src/modules/v4/claims/claims.service.d.ts +2 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +183 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +131 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +1 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +64 -44
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +67 -27
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +42 -30
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +3 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +5 -2
- package/dist/src/modules/v4/reward/reward.model.d.ts +18 -7
- package/dist/src/modules/v4/reward/reward.service.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +278 -66
- package/dist/src/modules/v4/status/status.model.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.d.ts +1 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
- package/dist/src/modules/v4/token/token.model.d.ts +2 -1
- package/dist/src/modules/v4/token/token.service.d.ts +3 -3
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/plugins/error-handling.plugin.d.ts +1 -1
- package/dist/src/routes/v1/allowances.d.ts +2 -2
- package/dist/src/routes/v3/poolInfo.d.ts +8 -2
- package/dist/src/routes/v3/router.d.ts +7 -1
- package/dist/src/utils/decodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.d.ts +1 -1
- package/dist/src/utils/error.d.ts +1 -1
- package/dist/src/utils/generateCardName.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -82
- package/LICENSE +0 -201
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { ResultDto } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20SubType } from "
|
2
|
+
import type { Erc20SubType } from "../../../engine/implementations/Erc20/subTypes";
|
3
3
|
export declare function getTokenTypeRound3(index: number, type: Erc20SubType, typeInfo: any, calls: ResultDto[]): import("./tokenTypeStruct").tokenTypeStruct;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { Campaign, CampaignParameters, ResultDto } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20SubType } from "
|
2
|
+
import type { Erc20SubType } from "../../../engine/implementations/Erc20/subTypes";
|
3
3
|
export declare function getTokenTypeRound4(index: number, type: Erc20SubType, typeInfo: any, calls: ResultDto[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): import("./tokenTypeStruct").tokenTypeStruct;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { CallDto } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20SubType } from "
|
2
|
+
import type { Erc20SubType } from "../../../engine/implementations/Erc20/subTypes";
|
3
3
|
export type tokenTypeStruct = {
|
4
4
|
type: Erc20SubType;
|
5
5
|
calls: CallDto[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OpportunityAction } from "@package/databases/api";
|
2
|
-
import { Erc20SubType } from "
|
3
|
-
import type { ProtocolId } from "
|
2
|
+
import { Erc20SubType } from "../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
4
4
|
export declare const tokenTypeToProtocolAndAction: Record<Erc20SubType, {
|
5
5
|
protocol: ProtocolId | undefined;
|
6
6
|
action: OpportunityAction;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type CampaignParameters, type Campaign as CampaignType, type ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import type { ProtocolId } 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
5
|
type campaignType = CampaignType.AJNA;
|
6
6
|
export declare class AjnaMetadata implements MetadataBuilder<campaignType> {
|
7
7
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Campaign, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { TVLBuilder, TVLData } from "../../../engine/tvl/interface";
|
3
3
|
type campaignType = Campaign.AJNA;
|
4
4
|
export declare class AjnaTVLBuilder implements TVLBuilder<campaignType> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<TVLData<Campaign.AJNA>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type CampaignParameters, type Campaign as CampaignType, type ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import type { ProtocolId } 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
5
|
type campaignType = CampaignType.AMBIENTPROCESSOR;
|
6
6
|
export declare class AmbientMetadata implements MetadataBuilder<campaignType> {
|
7
7
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Campaign, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { TVLBuilder, TVLData } from "../../../engine/tvl/interface";
|
3
3
|
type campaignType = Campaign.AMBIENTPROCESSOR;
|
4
4
|
export declare class AmbiantTVLBuilder implements TVLBuilder<campaignType> {
|
5
5
|
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<TVLData<Campaign.AMBIENTPROCESSOR>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CampaignParameters, Campaign as CampaignType, ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { CampaignWithParams } from "
|
3
|
-
import type { ProtocolId } from "
|
2
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
3
|
+
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
4
4
|
import type { MetadataBuilder } from "../../metadata/interface";
|
5
5
|
type campaignType = CampaignType.BADGER;
|
6
6
|
export declare class BadgerMetadata implements MetadataBuilder<campaignType> {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type CampaignParameters, type Campaign as CampaignType, ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import { type ProtocolId } 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
5
|
type campaignType = CampaignType.CLAMM;
|
6
6
|
export declare const uniswapV3OkuChains: {
|
7
7
|
81457: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.COMPOUND;
|
6
6
|
export declare class CompoundMetadata implements MetadataBuilder<campaignType> {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.COMPOUND_V3;
|
6
6
|
export declare class CompoundV3Metadata implements MetadataBuilder<campaignType> {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
type campaignType = CampaignType;
|
5
5
|
export declare class DefaultMetadata implements MetadataBuilder<campaignType> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import type { ProtocolId } 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
5
|
type campaignType = CampaignType.DOLOMITE;
|
6
6
|
export declare class DolomiteMetadata implements MetadataBuilder<campaignType> {
|
7
7
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import type { ProtocolId } 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
5
|
type campaignType = CampaignType.EIGENLAYER;
|
6
6
|
export declare class EigenLayerMetadata implements MetadataBuilder<campaignType> {
|
7
7
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Campaign, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { TVLBuilder, TVLData } from "../../../engine/tvl/interface";
|
3
3
|
type campaignType = Campaign.EIGENLAYER;
|
4
4
|
export declare class EigenLayerTVLBuilder implements TVLBuilder<campaignType> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<TVLData<Campaign.EIGENLAYER>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
type campaignType = CampaignType.ENCOMPASSING;
|
5
5
|
export declare class EncompassingMetadata implements MetadataBuilder<campaignType> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Erc20LikeCampaignEnum } from "
|
2
|
-
import type { CampaignWithParams } from "
|
1
|
+
import type { Erc20LikeCampaignEnum } from "../../../engine/implementations/Erc20/subTypes";
|
2
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
3
3
|
import type { MetadataBuilder } from "../../metadata/interface";
|
4
4
|
type campaignType = Erc20LikeCampaignEnum;
|
5
5
|
export declare class Erc20Metadata implements MetadataBuilder<campaignType> {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import { type Erc20LikeCampaignEnum, Erc20SubType } from "
|
2
|
+
import { type Erc20LikeCampaignEnum, Erc20SubType } from "../../../../engine/implementations/Erc20/subTypes";
|
3
3
|
/**
|
4
4
|
* @notice Compute the subtypes of the campaigns
|
5
5
|
* @warning
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
1
|
import { type Erc20LikeCampaignEnum, Erc20SubType } from ".";
|
2
|
+
import type { MetadataBuilder } from "../../../../engine/metadata/interface";
|
3
3
|
import type { TVLBuilder } from "../../../tvl/interface";
|
4
4
|
export declare const erc20SubTypeTVLBuilderFactory: (erc20Subtype: Erc20SubType) => TVLBuilder<Erc20LikeCampaignEnum> | null;
|
5
5
|
export declare const erc20SubTypeMetadataBuilderFactory: (erc20Subtype: Erc20SubType) => MetadataBuilder<Erc20LikeCampaignEnum> | null;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class AaveMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
/**
|
7
7
|
* @notice Protocol entity ID - must be defined in the corresponding file and created in DB
|
@@ -18,7 +18,7 @@ export declare class AaveMetadata implements MetadataBuilder<Erc20LikeCampaignEn
|
|
18
18
|
constructor(mainProtocol: ProtocolId, protocolName: string, depositUrl: (underlyingToken: string) => string);
|
19
19
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
20
20
|
action: "LEND" | "BORROW";
|
21
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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";
|
21
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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
22
|
name: string;
|
23
23
|
tokens: {
|
24
24
|
chainId: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class AaveTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
4
|
-
import type { ProtocolId } 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
5
|
type campaignType = CampaignType.EULER;
|
6
6
|
export declare class EulerMetadata implements MetadataBuilder<campaignType> {
|
7
7
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { type CampaignParameters, type Campaign as CampaignType, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { TVLBuilder, TVLData } from "
|
1
|
+
import { type Campaign, type CampaignParameters, type Campaign as CampaignType, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { TVLBuilder, TVLData } from "../../../../../tvl/interface";
|
3
3
|
export declare class EulerTVLBuilder implements TVLBuilder<CampaignType.EULER> {
|
4
|
-
build(computeChainId: MerklChainId, campaigns: CampaignParameters<CampaignType.EULER>[]): Promise<TVLData<
|
4
|
+
build(computeChainId: MerklChainId, campaigns: CampaignParameters<CampaignType.EULER>[]): Promise<TVLData<Campaign.EULER>>;
|
5
5
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class GearboxMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "LEND";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class GearboxTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class HypurrFiIsolatedMarketMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
/**
|
7
7
|
* @notice Protocol entity ID - must be defined in the corresponding file and created in DB
|
@@ -18,7 +18,7 @@ export declare class HypurrFiIsolatedMarketMetadata implements MetadataBuilder<E
|
|
18
18
|
constructor(mainProtocol: ProtocolId, protocolName: string, depositUrl: (underlyingToken: string) => string);
|
19
19
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
20
20
|
action: "LEND";
|
21
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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";
|
21
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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
22
|
name: string;
|
23
23
|
tokens: {
|
24
24
|
chainId: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class HypurrFiIsolatedMarketTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class LendleMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "LEND";
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class LendleTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class MetamorphoMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "LEND";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class MetamorphoTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class PinoMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "POOL";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class PinoTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class TermMaxMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "HOLD";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class TermMaxTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class TermMaxVaultMetadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
7
7
|
action: "LEND";
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class TermMaxVaultTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { MetadataBuilder } from "#engine/metadata/interface";
|
2
|
-
import type { CampaignWithParams } from "#modules/v4/campaign/campaign.model";
|
3
|
-
import type { ProtocolId } from "#modules/v4/protocol/protocol.model";
|
4
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
5
|
export declare class UniswapV2Metadata implements MetadataBuilder<Erc20LikeCampaignEnum> {
|
6
6
|
/**
|
7
7
|
* @notice Protocol entity ID - must be defined in the corresponding file and created in DB
|
@@ -18,7 +18,7 @@ export declare class UniswapV2Metadata implements MetadataBuilder<Erc20LikeCampa
|
|
18
18
|
constructor(mainProtocol: ProtocolId, protocolName: string, depositUrl?: (underlyingToken: string) => string);
|
19
19
|
build(campaign: Omit<CampaignWithParams<Erc20LikeCampaignEnum>, "manualOverrides">, _opportunityIdentifier: string): Promise<{
|
20
20
|
action: "POOL";
|
21
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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";
|
21
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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
22
|
name: string;
|
23
23
|
tokens: {
|
24
24
|
chainId: number;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { Erc20LikeCampaignEnum } from "../../..";
|
2
|
+
import type { CampaignWithParams } from "../../../../../../../modules/v4/campaign/campaign.model";
|
3
|
+
import type { ProtocolId } from "../../../../../../../modules/v4/protocol/protocol.model";
|
4
|
+
import type { MetadataBuilder } from "../../../../../../metadata/interface";
|
5
|
+
export declare class MimSwapMetadata 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">, _opportunityIdentifier: string): Promise<{
|
20
|
+
action: "POOL";
|
21
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "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" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "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
|
+
tokens: {
|
24
|
+
chainId: number;
|
25
|
+
address: string;
|
26
|
+
}[];
|
27
|
+
depositUrl: string | undefined;
|
28
|
+
explorerAddress: string;
|
29
|
+
}>;
|
30
|
+
}
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { TVLBuilder, TVLData } from "../../../../../../tvl/interface";
|
3
|
+
import type { Erc20LikeCampaignEnum } from "../../../index.ts";
|
4
|
+
export declare class MimSwapTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
|
+
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../../../../engine/tvl/interface";
|
4
4
|
export declare class UniswapV2TVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Erc20LikeCampaignEnum } from "
|
3
|
-
import type { TVLBuilder, TVLData } from "
|
2
|
+
import type { Erc20LikeCampaignEnum } from "../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { TVLBuilder, TVLData } from "../../../engine/tvl/interface";
|
4
4
|
export declare class Erc20TVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
type campaignType = CampaignType.ERC20_SNAPSHOT;
|
5
5
|
export declare class Erc20SnapshotMetadata implements MetadataBuilder<campaignType> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { MetadataBuilder } from "
|
3
|
-
import type { CampaignWithParams } from "
|
2
|
+
import type { MetadataBuilder } from "../../../engine/metadata/interface";
|
3
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
type campaignType = CampaignType.ERC721 | CampaignType.ERC721FIXAPR;
|
5
5
|
export declare class Erc721Metadata implements MetadataBuilder<campaignType> {
|
6
6
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { CampaignWithParams } from "
|
3
|
-
import type { ProtocolId } from "
|
2
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
3
|
+
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
4
4
|
import type { MetadataBuilder } from "../../metadata/interface";
|
5
5
|
type campaignType = CampaignType.ERC1155 | CampaignType.ERC1155FIXAPR | CampaignType.ERC6909 | CampaignType.ERC6909FIXAPR;
|
6
6
|
export declare class ErcMultiTokenMetadata implements MetadataBuilder<campaignType> {
|