import { ChainId } from '@0x/contract-addresses' ; import { CHAIN_ID , getIntegratorByIdOrThrow , getIntegratorIdForApiKey , Integrator , MakerIdsToConfigs , RFQM_API_KEY_WHITELIST , RFQT_MAKER_CONFIG_MAP_FOR_RFQ_ORDER , } from '../config' ; /**
 * ConfigManager is a simple wrapper around configs.
 *
 * It exists to provide a layer around our configs which can then be mocked while writing tests
 */ export class ConfigManager { public getRfqmApiKeyWhitelist ( ) { return RFQM_API_KEY_WHITELIST ; } public getIntegratorByIdOrThrow ( integratorId ) { return getIntegratorByIdOrThrow ( integratorId ) ; } public getIntegratorIdForApiKey ( apiKey ) { return getIntegratorIdForApiKey ( apiKey ) ; } returns public getRfqtMakerConfigMapForRfqOrder ( ) { return RFQT_MAKER_CONFIG_MAP_FOR_RFQ_ORDER ; } public getChainId ( ) { return CHAIN_ID ; } }