diff --git a/modules/pool/subgraph-mapper.ts b/modules/pool/subgraph-mapper.ts index bf5dc0b0..22026a3d 100644 --- a/modules/pool/subgraph-mapper.ts +++ b/modules/pool/subgraph-mapper.ts @@ -1,7 +1,7 @@ import { Chain, PrismaPoolType } from '@prisma/client'; import { BalancerPoolFragment } from '../subgraphs/balancer-subgraph/generated/balancer-subgraph-types'; import { AddressZero } from '@ethersproject/constants'; -import * as dataMappers from './pool-data'; +import { fx, gyro, linear, element, stableDynamic, linearDynamic } from './pool-data'; export const subgraphToPrismaCreate = ( pool: BalancerPoolFragment, @@ -266,24 +266,24 @@ const mapPoolTypeVersion = (poolType: string, poolTypeVersion: number): number = }; const dataMapper = { - ELEMENT: dataMappers.element, - FX: dataMappers.fx, - GYRO: dataMappers.gyro, - GYRO3: dataMappers.gyro, - GYROE: dataMappers.gyro, - LINEAR: dataMappers.linear, + ELEMENT: element, + FX: fx, + GYRO: gyro, + GYRO3: gyro, + GYROE: gyro, + LINEAR: linear, }; const dynamicMapper = { - STABLE: dataMappers.stableDynamic, - COMPOSABLE_STABLE: dataMappers.stableDynamic, - META_STABLE: dataMappers.stableDynamic, - LINEAR: dataMappers.linearDynamic, + STABLE: stableDynamic, + COMPOSABLE_STABLE: stableDynamic, + META_STABLE: stableDynamic, + LINEAR: linearDynamic, }; -export type FxData = ReturnType; -export type GyroData = ReturnType; -export type LinearData = ReturnType; -export type ElementData = ReturnType; -export type StableDynamicData = ReturnType; -export type LinearDynamicData = ReturnType; +export type FxData = ReturnType; +export type GyroData = ReturnType; +export type LinearData = ReturnType; +export type ElementData = ReturnType; +export type StableDynamicData = ReturnType; +export type LinearDynamicData = ReturnType;