From 0248309db319fd0e8db39639c1a0a81c15881ab1 Mon Sep 17 00:00:00 2001 From: Eugene Gostkin Date: Fri, 8 Dec 2023 13:35:00 +0100 Subject: [PATCH] More lint fixes --- packages/engine/paima-funnel/src/cde/cardanoProjectedNFT.ts | 2 +- packages/engine/paima-funnel/src/funnels/BaseFunnel.ts | 2 +- packages/engine/paima-funnel/src/funnels/carp/funnel.ts | 5 +++-- packages/engine/paima-sm/src/cde-cardano-projected-nft.ts | 2 +- .../node-sdk/paima-utils-backend/src/cde-access-internals.ts | 2 +- packages/node-sdk/paima-utils-backend/src/cde-access.ts | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/engine/paima-funnel/src/cde/cardanoProjectedNFT.ts b/packages/engine/paima-funnel/src/cde/cardanoProjectedNFT.ts index 1bb57177a..990f36268 100644 --- a/packages/engine/paima-funnel/src/cde/cardanoProjectedNFT.ts +++ b/packages/engine/paima-funnel/src/cde/cardanoProjectedNFT.ts @@ -24,7 +24,7 @@ export default async function getCdeProjectedNFTData( return events .map(e => eventToCdeDatum(e, extension, getBlockNumber(e.actionSlot))) .filter(e => e != null) - .map(e => e!!); + .map(e => e!); } function eventToCdeDatum( diff --git a/packages/engine/paima-funnel/src/funnels/BaseFunnel.ts b/packages/engine/paima-funnel/src/funnels/BaseFunnel.ts index 51938b957..ca3108834 100644 --- a/packages/engine/paima-funnel/src/funnels/BaseFunnel.ts +++ b/packages/engine/paima-funnel/src/funnels/BaseFunnel.ts @@ -3,7 +3,7 @@ import type { ChainData, ChainDataExtension, PresyncChainData } from '@paima/sm' import type { PaimaL2Contract, Web3 } from '@paima/utils'; import type { FunnelCacheManager } from './FunnelCache.js'; import type { PoolClient } from 'pg'; -import { FUNNEL_PRESYNC_FINISHED } from '@paima/utils'; +import type { FUNNEL_PRESYNC_FINISHED } from '@paima/utils'; export type FunnelSharedData = { readonly web3: Web3; diff --git a/packages/engine/paima-funnel/src/funnels/carp/funnel.ts b/packages/engine/paima-funnel/src/funnels/carp/funnel.ts index 8c8be28f3..f70584d7c 100644 --- a/packages/engine/paima-funnel/src/funnels/carp/funnel.ts +++ b/packages/engine/paima-funnel/src/funnels/carp/funnel.ts @@ -8,11 +8,12 @@ import { Network, timeout, } from '@paima/utils'; +import type { + ChainDataExtensionCardanoProjectedNFT} from '@paima/sm'; import { type ChainData, type ChainDataExtension, type ChainDataExtensionCardanoDelegation, - ChainDataExtensionCardanoProjectedNFT, type ChainDataExtensionDatum, type PresyncChainData, } from '@paima/sm'; @@ -154,7 +155,7 @@ export class CarpFunnel extends BaseFunnel implements ChainFunnel { if (extension.cdeType === ChainDataExtensionType.CardanoPool) { const data = getCdePoolData( this.carpUrl, - extension as ChainDataExtensionCardanoDelegation, + extension , arg.from, Math.min(arg.to, this.cache.getState().startingSlot - 1), slot => { diff --git a/packages/engine/paima-sm/src/cde-cardano-projected-nft.ts b/packages/engine/paima-sm/src/cde-cardano-projected-nft.ts index ff5b55036..87332c9dc 100644 --- a/packages/engine/paima-sm/src/cde-cardano-projected-nft.ts +++ b/packages/engine/paima-sm/src/cde-cardano-projected-nft.ts @@ -1,5 +1,5 @@ import { ENV } from '@paima/utils'; -import type { CdeCardanoProjectedNFTDatum } from './types'; +import type { CdeCardanoProjectedNFTDatum } from './types.js'; import { createScheduledData, cdeCardanoProjectedNftInsertData, diff --git a/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts b/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts index aab373f4b..d956559b6 100644 --- a/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts +++ b/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts @@ -14,7 +14,7 @@ import { cdeErc6551GetOwner, cdeCardanoPoolGetAddressDelegation, cdeCardanoGetProjectedNft, - ICdeCardanoGetProjectedNftResult, + type ICdeCardanoGetProjectedNftResult, } from '@paima/db'; import type { OwnedNftsResponse, GenericCdeDataUnit, TokenIdPair } from './types.js'; diff --git a/packages/node-sdk/paima-utils-backend/src/cde-access.ts b/packages/node-sdk/paima-utils-backend/src/cde-access.ts index 647427f69..bdaec0bab 100644 --- a/packages/node-sdk/paima-utils-backend/src/cde-access.ts +++ b/packages/node-sdk/paima-utils-backend/src/cde-access.ts @@ -16,7 +16,7 @@ import { internalGetCardanoProjectedNft, } from './cde-access-internals.js'; import type { OwnedNftsResponse, GenericCdeDataUnit, TokenIdPair } from './types.js'; -import { ICdeCardanoGetProjectedNftResult } from '@paima/db/src'; +import type { ICdeCardanoGetProjectedNftResult } from '@paima/db/src'; /** * Fetch the owner of the NFT from the database