From 3a58b18e54f3dcc6339545fa41b8390cedb25c17 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 5 Jun 2022 05:35:40 +0000 Subject: [PATCH] Fix code style issues with Prettier --- bin/stacks/routing-api-stack.ts | 2 +- bin/stacks/routing-lambda-stack.ts | 4 ++-- lib/handlers/injector-sor.ts | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bin/stacks/routing-api-stack.ts b/bin/stacks/routing-api-stack.ts index b763aae5a8..69f8bb8ee1 100644 --- a/bin/stacks/routing-api-stack.ts +++ b/bin/stacks/routing-api-stack.ts @@ -20,7 +20,7 @@ export class RoutingAPIStack extends cdk.Stack { parent: Construct, name: string, props: cdk.StackProps & { - jsonRpcProviders: {[chainName: string]:string} + jsonRpcProviders: { [chainName: string]: string } provisionedConcurrency: number throttlingOverride?: string ethGasStationInfoUrl: string diff --git a/bin/stacks/routing-lambda-stack.ts b/bin/stacks/routing-lambda-stack.ts index 786adb3e9a..4354172dab 100644 --- a/bin/stacks/routing-lambda-stack.ts +++ b/bin/stacks/routing-lambda-stack.ts @@ -15,7 +15,7 @@ export interface RoutingLambdaStackProps extends cdk.NestedStackProps { poolCacheBucket: aws_s3.Bucket poolCacheBucket2: aws_s3.Bucket poolCacheKey: string - jsonRpcProviders: {[chainName: string]:string} + jsonRpcProviders: { [chainName: string]: string } tokenListCacheBucket: aws_s3.Bucket provisionedConcurrency: number ethGasStationInfoUrl: string @@ -73,7 +73,7 @@ export class RoutingLambdaStack extends cdk.NestedStack { POOL_CACHE_KEY: poolCacheKey, TOKEN_LIST_CACHE_BUCKET: tokenListCacheBucket.bucketName, ETH_GAS_STATION_INFO_URL: ethGasStationInfoUrl, - ...jsonRpcProviders + ...jsonRpcProviders, }, layers: [ aws_lambda.LayerVersion.fromLayerVersionArn( diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index 92e728bacb..4184cf5732 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -108,10 +108,9 @@ export abstract class InjectorSOR extends Injector< _.map(SUPPORTED_CHAINS, async (chainId: ChainId) => { const url = process.env[`WEB3_RPC_${chainId.toString()}`]! - if(!url) { - log.fatal({'chainId':chainId}, `Fatal: No Web3 RPC endpoint set for chain`) - return {chainId, - dependencies: {} as ContainerDependencies} + if (!url) { + log.fatal({ chainId: chainId }, `Fatal: No Web3 RPC endpoint set for chain`) + return { chainId, dependencies: {} as ContainerDependencies } // This router instance will not be able to route through any chain // for which RPC URL is not set // This will be handled at the quote.ts and quote-to-ratio.ts