From 28bcb886476b36a7d6d64fbbf7e292bc1f19274f Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:49:27 +0100 Subject: [PATCH] import all of the functions directly to have references in the header --- modules/pool/subgraph-mapper.ts | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/pool/subgraph-mapper.ts b/modules/pool/subgraph-mapper.ts index bf5dc0b02..22026a3df 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;