{"version":3,"sources":["../../src/utils/productEngineTypeMappers.ts"],"sourcesContent":["import { ProductEngineType } from '@vertex-protocol/contracts';\nimport { EngineServerProductType } from '../types';\n\nexport function mapProductEngineType(\n  productEngineType: ProductEngineType,\n): EngineServerProductType {\n  switch (productEngineType) {\n    case ProductEngineType.SPOT:\n      return 'spot';\n    case ProductEngineType.PERP:\n      return 'perp';\n  }\n}\n\nexport function mapEngineServerProductType(\n  productEngineServerType: EngineServerProductType,\n): ProductEngineType {\n  switch (productEngineServerType) {\n    case 'spot':\n      return ProductEngineType.SPOT;\n    case 'perp':\n      return ProductEngineType.PERP;\n  }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAkC;AAG3B,SAAS,qBACd,mBACyB;AACzB,UAAQ,mBAAmB;AAAA,IACzB,KAAK,mCAAkB;AACrB,aAAO;AAAA,IACT,KAAK,mCAAkB;AACrB,aAAO;AAAA,EACX;AACF;AAEO,SAAS,2BACd,yBACmB;AACnB,UAAQ,yBAAyB;AAAA,IAC/B,KAAK;AACH,aAAO,mCAAkB;AAAA,IAC3B,KAAK;AACH,aAAO,mCAAkB;AAAA,EAC7B;AACF;","names":[]}