@merkl/api 1.0.5 → 1.0.10
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 +754 -8976
- 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/dynamicData/implementations/default.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 +3 -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/engine/tvl/factory.d.ts +1 -1
- package/dist/src/index.d.ts +322 -75
- 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 +27 -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 +17 -3
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +9 -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 +187 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +135 -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 +68 -44
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +4 -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 +62 -30
- package/dist/src/modules/v4/payload/payload.controller.d.ts +1 -1
- package/dist/src/modules/v4/payload/payload.service.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +3 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +18 -2
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -0
- 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 +5 -1
- package/dist/src/modules/v4/router.d.ts +308 -68
- 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 +10 -2
- package/dist/src/modules/v4/token/token.model.d.ts +4 -1
- package/dist/src/modules/v4/token/token.service.d.ts +21 -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/opportunity.d.ts +1 -0
- package/dist/src/routes/v3/payload.d.ts +1 -1
- package/dist/src/routes/v3/poolInfo.d.ts +8 -2
- package/dist/src/routes/v3/router.d.ts +9 -2
- 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 +10 -80
- package/LICENSE +0 -201
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AMM, type ChainId, type MerklAPIType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { CampaignsCacheUpdaterReturnType } from "
|
3
|
-
import type { MerklChainData } from "
|
2
|
+
import type { CampaignsCacheUpdaterReturnType } from "../../jobs/update-v3-caches.js";
|
3
|
+
import type { MerklChainData } from "../../types";
|
4
4
|
export declare function getClamsInfo(chainIds?: number[] | readonly ChainId[], AMMs?: Lowercase<keyof typeof AMM>[], user?: string, onlyLive?: boolean): Promise<MerklAPIType>;
|
5
5
|
export declare function campaignsToOldFormat(campaignData: CampaignsCacheUpdaterReturnType, merklChainData: MerklChainData): MerklAPIType[number];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
import type { EigenLayerFetchedCampaign, PositionType } from "../types";
|
4
4
|
export declare function getEigenLayerUserPositions(user: string, _chainId: MerklChainId, campaigns: {
|
5
5
|
[mainparameter: string]: EigenLayerFetchedCampaign;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
import type { AjnaFetchedCampaign, PositionType } from "../types";
|
4
4
|
export declare function getAjnaUserPositions(user: string, _chainId: MerklChainId, campaigns: {
|
5
5
|
[mainparameter: string]: AjnaFetchedCampaign;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
import type { BadgerFetchedCampaign, PositionType } from "../types";
|
4
4
|
export declare function getBadgerUserPositions(user: string, _chainId: MerklChainId, campaigns: {
|
5
5
|
[mainparameter: string]: BadgerFetchedCampaign;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Forwarder, type ForwarderParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
type FetchedCampaign = {
|
4
4
|
rewardToken: string;
|
5
5
|
symbolRewardToken: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
import type { DolomitePositionFetchingDataType } from "../prepareFetch";
|
4
4
|
export type DolomitePositionType = {
|
5
5
|
[mainParameter: string]: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
export declare function getERC20UserPositions(user: string, _chainId: MerklChainId, tokens: {
|
4
4
|
[marketAddress: string]: string[];
|
5
5
|
}): Promise<UncachedResult<any>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
export declare function getEulerUserPositions(user: string, _chainId: MerklChainId, tokens: {
|
4
4
|
[marketAddress: string]: string[];
|
5
5
|
}): Promise<UncachedResult<any>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
import type { MorphoFetchedCampaign, PositionType } from "../types";
|
4
4
|
export declare function getMorphoUserPositions(user: string, _chainId: MerklChainId, campaigns: {
|
5
5
|
[mainparameter: string]: MorphoFetchedCampaign;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { UncachedResult } from "
|
2
|
+
import type { UncachedResult } from "../../../utils/execute";
|
3
3
|
export declare function getSiloUserPositions(user: string, _chainId: MerklChainId, mainParameters: {
|
4
4
|
[key: string]: any;
|
5
5
|
}): Promise<UncachedResult<any>>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { GetTransactionsQueryModel } from "
|
1
|
+
import type { GetTransactionsQueryModel } from "../../../modules/v4/accounting/accounting.model";
|
2
2
|
export declare class AccountingRepository {
|
3
3
|
static findMany(query: GetTransactionsQueryModel): Promise<{
|
4
4
|
id: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { GetTransactionsQueryModel } from "
|
2
|
+
import type { GetTransactionsQueryModel } from "../../../modules/v4/accounting/accounting.model";
|
3
3
|
export declare class AccountingService {
|
4
4
|
static hashId(chainId: ChainId, fromTokenId: string, toTokenId: string, timestamp: number): string;
|
5
5
|
static getTokenId(chainId: number, address: string): string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import type { Resource } from "
|
1
|
+
import { DistributionType } from "@package/databases/api";
|
2
|
+
import type { Resource } from "../../../modules/v4/prisma";
|
3
3
|
/**
|
4
4
|
* Apr Record
|
5
5
|
* @description Describes one apr snapshot for an opportunity
|
@@ -24,6 +24,13 @@ export declare const AprBreakdownResourceDto: import("@sinclair/typebox").TObjec
|
|
24
24
|
readonly PROTOCOL: "PROTOCOL";
|
25
25
|
}>;
|
26
26
|
value: import("@sinclair/typebox").TNumber;
|
27
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
28
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
29
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
30
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
31
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
32
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
33
|
+
}>>;
|
27
34
|
}>;
|
28
35
|
export declare const AprRecordResourceDto: import("@sinclair/typebox").TObject<{
|
29
36
|
cumulated: import("@sinclair/typebox").TNumber;
|
@@ -36,5 +43,12 @@ export declare const AprRecordResourceDto: import("@sinclair/typebox").TObject<{
|
|
36
43
|
readonly PROTOCOL: "PROTOCOL";
|
37
44
|
}>;
|
38
45
|
value: import("@sinclair/typebox").TNumber;
|
46
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
47
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
48
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
49
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
50
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
51
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
52
|
+
}>>;
|
39
53
|
}>>;
|
40
54
|
}>;
|
@@ -84,8 +84,10 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
84
84
|
verified: boolean;
|
85
85
|
} & {
|
86
86
|
price?: number | null | undefined;
|
87
|
+
isTokenWrapper?: boolean | undefined;
|
88
|
+
tokenWrapperAddress?: string | undefined;
|
87
89
|
})[];
|
88
|
-
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" | undefined;
|
90
|
+
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" | "ichi" | "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" | undefined;
|
89
91
|
description: string;
|
90
92
|
howToSteps: string[];
|
91
93
|
depositUrl: string | undefined;
|
@@ -203,8 +205,10 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
203
205
|
verified: boolean;
|
204
206
|
} & {
|
205
207
|
price?: number | null | undefined;
|
208
|
+
isTokenWrapper?: boolean | undefined;
|
209
|
+
tokenWrapperAddress?: string | undefined;
|
206
210
|
})[];
|
207
|
-
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" | undefined;
|
211
|
+
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" | "ichi" | "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" | undefined;
|
208
212
|
description: string;
|
209
213
|
howToSteps: string[];
|
210
214
|
depositUrl: string | undefined;
|
@@ -462,6 +466,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
462
466
|
creatorId?: string | null | undefined;
|
463
467
|
address: string;
|
464
468
|
} | undefined;
|
469
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
465
470
|
rootCampaignId?: string | undefined;
|
466
471
|
parentCampaignId?: string | undefined;
|
467
472
|
campaignStatus?: {
|
@@ -491,6 +496,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
491
496
|
id: string;
|
492
497
|
chainId: number;
|
493
498
|
icon: string;
|
499
|
+
isNative: boolean;
|
494
500
|
isPoint: boolean;
|
495
501
|
isPreTGE: boolean;
|
496
502
|
isTest: boolean;
|
@@ -505,6 +511,11 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
505
511
|
computeChainId: number;
|
506
512
|
distributionChainId: number;
|
507
513
|
endTimestamp: string | number;
|
514
|
+
opportunityId: string;
|
515
|
+
creatorAddress: string;
|
516
|
+
subType: number | null;
|
517
|
+
rewardTokenId: string;
|
518
|
+
createdAt: string;
|
508
519
|
chain: {
|
509
520
|
explorers?: {
|
510
521
|
chainId: number;
|
@@ -515,11 +526,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
515
526
|
id: number;
|
516
527
|
icon: string;
|
517
528
|
};
|
518
|
-
opportunityId: string;
|
519
|
-
creatorAddress: string;
|
520
|
-
subType: number | null;
|
521
|
-
rewardTokenId: string;
|
522
|
-
createdAt: string;
|
523
529
|
}[];
|
524
530
|
422: {
|
525
531
|
type: "validation";
|
@@ -549,6 +555,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
549
555
|
creatorId?: string | null | undefined;
|
550
556
|
address: string;
|
551
557
|
} | undefined;
|
558
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
552
559
|
rootCampaignId?: string | undefined;
|
553
560
|
parentCampaignId?: string | undefined;
|
554
561
|
campaignStatus?: {
|
@@ -578,6 +585,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
578
585
|
id: string;
|
579
586
|
chainId: number;
|
580
587
|
icon: string;
|
588
|
+
isNative: boolean;
|
581
589
|
isPoint: boolean;
|
582
590
|
isPreTGE: boolean;
|
583
591
|
isTest: boolean;
|
@@ -592,6 +600,11 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
592
600
|
computeChainId: number;
|
593
601
|
distributionChainId: number;
|
594
602
|
endTimestamp: string | number;
|
603
|
+
opportunityId: string;
|
604
|
+
creatorAddress: string;
|
605
|
+
subType: number | null;
|
606
|
+
rewardTokenId: string;
|
607
|
+
createdAt: string;
|
595
608
|
chain: {
|
596
609
|
explorers?: {
|
597
610
|
chainId: number;
|
@@ -602,11 +615,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
602
615
|
id: number;
|
603
616
|
icon: string;
|
604
617
|
};
|
605
|
-
opportunityId: string;
|
606
|
-
creatorAddress: string;
|
607
|
-
subType: number | null;
|
608
|
-
rewardTokenId: string;
|
609
|
-
createdAt: string;
|
610
618
|
};
|
611
619
|
422: {
|
612
620
|
type: "validation";
|
@@ -843,6 +851,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
843
851
|
creatorId?: string | null | undefined;
|
844
852
|
address: string;
|
845
853
|
} | undefined;
|
854
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
846
855
|
rootCampaignId?: string | undefined;
|
847
856
|
parentCampaignId?: string | undefined;
|
848
857
|
campaignStatus?: {
|
@@ -872,6 +881,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
872
881
|
id: string;
|
873
882
|
chainId: number;
|
874
883
|
icon: string;
|
884
|
+
isNative: boolean;
|
875
885
|
isPoint: boolean;
|
876
886
|
isPreTGE: boolean;
|
877
887
|
isTest: boolean;
|
@@ -886,6 +896,11 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
886
896
|
computeChainId: number;
|
887
897
|
distributionChainId: number;
|
888
898
|
endTimestamp: string | number;
|
899
|
+
opportunityId: string;
|
900
|
+
creatorAddress: string;
|
901
|
+
subType: number | null;
|
902
|
+
rewardTokenId: string;
|
903
|
+
createdAt: string;
|
889
904
|
chain: {
|
890
905
|
explorers?: {
|
891
906
|
chainId: number;
|
@@ -896,11 +911,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
896
911
|
id: number;
|
897
912
|
icon: string;
|
898
913
|
};
|
899
|
-
opportunityId: string;
|
900
|
-
creatorAddress: string;
|
901
|
-
subType: number | null;
|
902
|
-
rewardTokenId: string;
|
903
|
-
createdAt: string;
|
904
914
|
}[];
|
905
915
|
422: {
|
906
916
|
type: "validation";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CampaignParameters, Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Resource } from "
|
3
|
-
import { type Token } from "
|
2
|
+
import type { Resource } from "../../../modules/v4/prisma";
|
3
|
+
import { type Token } from "../../../modules/v4/token/token.model";
|
4
4
|
import { type Chain } from "../chain/chain.model";
|
5
5
|
import { type Status as StatusModel } from "../status/status.model";
|
6
6
|
/**
|
@@ -74,6 +74,7 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
|
|
74
74
|
decimals: import("@sinclair/typebox").TNumber;
|
75
75
|
icon: import("@sinclair/typebox").TString;
|
76
76
|
verified: import("@sinclair/typebox").TBoolean;
|
77
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
77
78
|
isTest: import("@sinclair/typebox").TBoolean;
|
78
79
|
isPoint: import("@sinclair/typebox").TBoolean;
|
79
80
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -93,6 +94,13 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
|
|
93
94
|
chainId: import("@sinclair/typebox").TNumber;
|
94
95
|
}>>>;
|
95
96
|
}>>;
|
97
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
98
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
99
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
100
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
101
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
102
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
103
|
+
}>>;
|
96
104
|
campaignStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
97
105
|
campaignId: import("@sinclair/typebox").TString;
|
98
106
|
computedUntil: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type ChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import { type CampaignManualOverride } from "@package/databases/api";
|
3
|
-
import type { Campaign, CampaignUnique, CampaignWithParams, GetCampaignQueryModel } from "
|
3
|
+
import type { Campaign, CampaignUnique, CampaignWithParams, GetCampaignQueryModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
export declare abstract class CampaignRepository {
|
5
5
|
static transformQueryToPrismaFilters(query: GetCampaignQueryModel): {
|
6
6
|
where: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, Campaign as CampaignType, type ChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { CampaignManualOverride } from "@package/databases/api";
|
3
|
-
import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, GetCampaignQueryModel, TransactionModel, UpdateCampaignCreatorModel, UpdateCampaignModel, UpdateMetaDataCampaignModel } from "
|
3
|
+
import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, GetCampaignQueryModel, TransactionModel, UpdateCampaignCreatorModel, UpdateCampaignModel, UpdateMetaDataCampaignModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { GetCampaignComputedValueModel } from "../computedValue/computedValue.model";
|
5
5
|
import { CampaignRepository } from "./campaign.repository";
|
6
6
|
export declare abstract class CampaignService {
|
@@ -231,8 +231,10 @@ export declare abstract class CampaignService {
|
|
231
231
|
verified: boolean;
|
232
232
|
} & {
|
233
233
|
price?: number | null | undefined;
|
234
|
+
isTokenWrapper?: boolean | undefined;
|
235
|
+
tokenWrapperAddress?: string | undefined;
|
234
236
|
})[];
|
235
|
-
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" | undefined;
|
237
|
+
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" | "ichi" | "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" | undefined;
|
236
238
|
description: string;
|
237
239
|
howToSteps: string[];
|
238
240
|
depositUrl: string | undefined;
|
@@ -326,8 +328,10 @@ export declare abstract class CampaignService {
|
|
326
328
|
verified: boolean;
|
327
329
|
} & {
|
328
330
|
price?: number | null | undefined;
|
331
|
+
isTokenWrapper?: boolean | undefined;
|
332
|
+
tokenWrapperAddress?: string | undefined;
|
329
333
|
})[];
|
330
|
-
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" | undefined;
|
334
|
+
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" | "ichi" | "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" | undefined;
|
331
335
|
description: string;
|
332
336
|
howToSteps: string[];
|
333
337
|
depositUrl: string | undefined;
|
@@ -441,6 +445,8 @@ export declare abstract class CampaignService {
|
|
441
445
|
verified: boolean;
|
442
446
|
} & {
|
443
447
|
price?: number | null | undefined;
|
448
|
+
isTokenWrapper?: boolean | undefined;
|
449
|
+
tokenWrapperAddress?: string | undefined;
|
444
450
|
};
|
445
451
|
distributionChain: {
|
446
452
|
name: string;
|
@@ -520,6 +526,8 @@ export declare abstract class CampaignService {
|
|
520
526
|
verified: boolean;
|
521
527
|
} & {
|
522
528
|
price?: number | null | undefined;
|
529
|
+
isTokenWrapper?: boolean | undefined;
|
530
|
+
tokenWrapperAddress?: string | undefined;
|
523
531
|
};
|
524
532
|
distributionChain: {
|
525
533
|
name: string;
|
@@ -600,6 +608,8 @@ export declare abstract class CampaignService {
|
|
600
608
|
verified: boolean;
|
601
609
|
} & {
|
602
610
|
price?: number | null | undefined;
|
611
|
+
isTokenWrapper?: boolean | undefined;
|
612
|
+
tokenWrapperAddress?: string | undefined;
|
603
613
|
};
|
604
614
|
distributionChain: {
|
605
615
|
name: string;
|
@@ -680,6 +690,8 @@ export declare abstract class CampaignService {
|
|
680
690
|
verified: boolean;
|
681
691
|
} & {
|
682
692
|
price?: number | null | undefined;
|
693
|
+
isTokenWrapper?: boolean | undefined;
|
694
|
+
tokenWrapperAddress?: string | undefined;
|
683
695
|
};
|
684
696
|
distributionChain: {
|
685
697
|
name: string;
|
@@ -980,6 +992,8 @@ export declare abstract class CampaignService {
|
|
980
992
|
verified: boolean;
|
981
993
|
} & {
|
982
994
|
price?: number | null | undefined;
|
995
|
+
isTokenWrapper?: boolean | undefined;
|
996
|
+
tokenWrapperAddress?: string | undefined;
|
983
997
|
};
|
984
998
|
distributionChain: {
|
985
999
|
name: string;
|
@@ -238,8 +238,10 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
238
238
|
verified: boolean;
|
239
239
|
} & {
|
240
240
|
price?: number | null | undefined;
|
241
|
+
isTokenWrapper?: boolean | undefined;
|
242
|
+
tokenWrapperAddress?: string | undefined;
|
241
243
|
})[];
|
242
|
-
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" | undefined;
|
244
|
+
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" | "ichi" | "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" | undefined;
|
243
245
|
description: string;
|
244
246
|
howToSteps: string[];
|
245
247
|
depositUrl: string | undefined;
|
@@ -359,8 +361,10 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
359
361
|
verified: boolean;
|
360
362
|
} & {
|
361
363
|
price?: number | null | undefined;
|
364
|
+
isTokenWrapper?: boolean | undefined;
|
365
|
+
tokenWrapperAddress?: string | undefined;
|
362
366
|
})[];
|
363
|
-
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" | undefined;
|
367
|
+
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" | "ichi" | "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" | undefined;
|
364
368
|
description: string;
|
365
369
|
howToSteps: string[];
|
366
370
|
depositUrl: string | undefined;
|
@@ -481,8 +485,10 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
481
485
|
verified: boolean;
|
482
486
|
} & {
|
483
487
|
price?: number | null | undefined;
|
488
|
+
isTokenWrapper?: boolean | undefined;
|
489
|
+
tokenWrapperAddress?: string | undefined;
|
484
490
|
})[];
|
485
|
-
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" | undefined;
|
491
|
+
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" | "ichi" | "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" | undefined;
|
486
492
|
description: string;
|
487
493
|
howToSteps: string[];
|
488
494
|
depositUrl: string | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { Token } from "
|
3
|
-
import type { UserUniqueModel } from "
|
2
|
+
import type { Token } from "../../../modules/v4/token/token.model";
|
3
|
+
import type { UserUniqueModel } from "../../../modules/v4/user/user.model";
|
4
4
|
import type { ClaimModel } from "./claims.model";
|
5
5
|
export declare abstract class ClaimService {
|
6
6
|
static getHistoricalClaims(params: UserUniqueModel, chainFilter?: ChainId[]): Promise<(ClaimModel & {
|