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 247a5aac5..5aa0f3dbc 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'; @@ -134,7 +135,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