Skip to content

Commit

Permalink
More lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Dec 12, 2023
1 parent 73d76e0 commit 0248309
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/paima-funnel/src/funnels/BaseFunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions packages/engine/paima-funnel/src/funnels/carp/funnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/paima-sm/src/cde-cardano-projected-nft.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ENV } from '@paima/utils';
import type { CdeCardanoProjectedNFTDatum } from './types';
import type { CdeCardanoProjectedNFTDatum } from './types.js';
import {
createScheduledData,
cdeCardanoProjectedNftInsertData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
cdeErc6551GetOwner,
cdeCardanoPoolGetAddressDelegation,
cdeCardanoGetProjectedNft,
ICdeCardanoGetProjectedNftResult,
type ICdeCardanoGetProjectedNftResult,
} from '@paima/db';
import type { OwnedNftsResponse, GenericCdeDataUnit, TokenIdPair } from './types.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/node-sdk/paima-utils-backend/src/cde-access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0248309

Please sign in to comment.