From 627d81cb9e2be2d61ae96ba99c8845186383d67b Mon Sep 17 00:00:00 2001 From: Eugene Gostkin Date: Mon, 18 Dec 2023 16:52:53 +0100 Subject: [PATCH] Fix lint --- .../engine/paima-funnel/src/funnels/carp/funnel.ts | 5 ++--- .../engine/paima-runtime/src/cde-config/utils.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/engine/paima-funnel/src/funnels/carp/funnel.ts b/packages/engine/paima-funnel/src/funnels/carp/funnel.ts index f70584d7c..0a6b6d727 100644 --- a/packages/engine/paima-funnel/src/funnels/carp/funnel.ts +++ b/packages/engine/paima-funnel/src/funnels/carp/funnel.ts @@ -8,8 +8,7 @@ import { Network, timeout, } from '@paima/utils'; -import type { - ChainDataExtensionCardanoProjectedNFT} from '@paima/sm'; +import type { ChainDataExtensionCardanoProjectedNFT } from '@paima/sm'; import { type ChainData, type ChainDataExtension, @@ -155,7 +154,7 @@ export class CarpFunnel extends BaseFunnel implements ChainFunnel { if (extension.cdeType === ChainDataExtensionType.CardanoPool) { const data = getCdePoolData( this.carpUrl, - extension , + extension, arg.from, Math.min(arg.to, this.cache.getState().startingSlot - 1), slot => { diff --git a/packages/engine/paima-runtime/src/cde-config/utils.ts b/packages/engine/paima-runtime/src/cde-config/utils.ts index 0c525ed4f..fb1b4c55b 100644 --- a/packages/engine/paima-runtime/src/cde-config/utils.ts +++ b/packages/engine/paima-runtime/src/cde-config/utils.ts @@ -7,9 +7,9 @@ import type { ChainDataExtension } from '@paima/sm'; export function getEarliestStartBlockheight(config: ChainDataExtension[]): number { const minStartBlockheight = config.reduce((min, cde) => { if ( - cde.cdeType !== ChainDataExtensionType.CardanoPool && - cde.cdeType !== ChainDataExtensionType.CardanoProjectedNFT - ) { + cde.cdeType !== ChainDataExtensionType.CardanoPool && + cde.cdeType !== ChainDataExtensionType.CardanoProjectedNFT + ) { return Math.min(min, cde.startBlockHeight); } return min; @@ -20,9 +20,9 @@ export function getEarliestStartBlockheight(config: ChainDataExtension[]): numbe export function getEarliestStartSlot(config: ChainDataExtension[]): number { const minStartSlot = config.reduce((min, cde) => { if ( - cde.cdeType === ChainDataExtensionType.CardanoPool || - cde.cdeType === ChainDataExtensionType.CardanoProjectedNFT - ) { + cde.cdeType === ChainDataExtensionType.CardanoPool || + cde.cdeType === ChainDataExtensionType.CardanoProjectedNFT + ) { return Math.min(min, cde.startSlot); } return min;