From 3792147f523666577654cc75562bea5e41f734ae Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Thu, 7 Dec 2023 12:17:33 +0100 Subject: [PATCH] prettier --- modules/pool/lib/pool-creator.service.ts | 12 ++++----- modules/sor/utils.ts | 4 +-- tsconfig.json | 32 +++++++++++------------- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/modules/pool/lib/pool-creator.service.ts b/modules/pool/lib/pool-creator.service.ts index 1350b6815..9235162e1 100644 --- a/modules/pool/lib/pool-creator.service.ts +++ b/modules/pool/lib/pool-creator.service.ts @@ -16,7 +16,7 @@ export class PoolCreatorService { } private get chain() { - return networkContext.chain + return networkContext.chain; } public async syncAllPoolsFromSubgraph(blockNumber: number): Promise { @@ -60,15 +60,15 @@ export class PoolCreatorService { z: subgraphPool.z || '', dSq: subgraphPool.dSq || '', }, - } + }, }, where: { id_chain: { id: subgraphPool.id, - chain: networkContext.chain - } - } - }) + chain: this.chain, + }, + }, + }); } } diff --git a/modules/sor/utils.ts b/modules/sor/utils.ts index 9e88f04c3..1be0ad8ba 100644 --- a/modules/sor/utils.ts +++ b/modules/sor/utils.ts @@ -1,10 +1,8 @@ -import { TokenAmount, Token, Address, ChainId } from '@balancer/sdk'; +import { TokenAmount, Token, Address } from '@balancer/sdk'; import { tokenService } from '../token/token.service'; -import { networkContext } from '../network/network-context.service'; import { Chain } from '@prisma/client'; import { chainToIdMap } from '../network/network-config'; - export async function getTokenAmountHuman(tokenAddr: string, humanAmount: string, chain: Chain): Promise { const chainId = Number(chainToIdMap[chain]); const prismaToken = await tokenService.getToken(tokenAddr, chain); diff --git a/tsconfig.json b/tsconfig.json index 817776afd..a9c4bc4b4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,16 @@ { - "compilerOptions": { - "esModuleInterop": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "lib": ["es2018"], - "module": "commonjs", - "strict": true, - "target": "ES2020", - "resolveJsonModule": true, - "outDir": "./dist", - "skipLibCheck": true - }, - "exclude": [ - "node_modules", - "debug", - "**/*.spec.ts", - "**/*.test.ts" - ] + "compilerOptions": { + "esModuleInterop": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": ["es2018"], + "module": "commonjs", + "strict": true, + "target": "ES2020", + "resolveJsonModule": true, + "outDir": "./dist", + "skipLibCheck": true, + "sourceMap": true + }, + "exclude": ["node_modules", "debug", "**/*.spec.ts", "**/*.test.ts"] }