text: import _ from "lodash";
  // TODO : use this if prod server is ready
  import config from "src/config";
  
  const api = process.env.NODE_ENV === "production" ? config.API_PROD : config.API_DEV;
  
  export default Object.freeze({
  	DEFAULT_ARRAY: [],
  	API_BINANCE_DEX: "https://www.binance.org/en/trade",
  	API_BINANCE_ACCELERATED: ["https://dex-asiapacific.binance.org/api/v1", "https://dex-atlantic.binance.org/api/v1", "https://dex-european.binance.org/api/v1"],
  	BINANCE_API_ENDPOINTS: {
  		TX: tx => `/tx/${tx}?format=json`,
  	},
  	// API_COINGECKO: {
  	// 	BASE: "https://api.coingecko.com/api/v3",
  	// 	GET_MARKET_CHART_RANGE: (id = "BNB", from, to) => `/coins/${id}/market_chart/range?vs_currency=usd&from=${from}&to=${to}`,
  	// },
  	NUM: {
  		BASE_MULT: 100000000,
  		DEFAULT_DECIMALS: 8,
  		PAGE_SIZE: 20,
  
  		SPARE_PAGE_CNT: 2, //  amount of pages to preload in pagination
  		BINACE_API_ROWS_LIMIT: 1000, //  max rows binance api allows
  		BINANCE_API_PAGES_LIMIT: 100, //  max page binance api allows
  
  		REAL_TIME_DELAY_MS: 2000, //  real-time refetch interval(for indexedPagination)
  		DASH_REAL_TIME_DELAY_MS: 3000, //  dashboard refetch interval
  		ACCOUNT_REFETCH_INTERVAL_MS: 5000, // TODO : currently not used
  		ASSET_REFETCH_INTERVAL_MS: 80000,
  		ASSET_REFETCH_PRICE_INTERVAL_MS: 80000,
  		BASIC_DATA_FETCH_INTERVAL_MS: 30000,
  	},
  	ASSET: {
  		NAME_SEARCH_PROPERTY: ["asset", "mappedAsset", "name"],
  		ORDER_COMPARE: ["mappedAsset", "marketCap", "price", "supply"],
  	},
  	GET_LOGO_LINK: symbol =>
  		_.isString(symbol) ? `https://raw.githubusercontent.com/cosmostation/cosmostation_token_resource/master/coin_image/binance/${_.split(symbol)[0]}}.png` : "",
  	API_BASE: api,
  	API: {
  		STATUS: "/status",
  		BLOCKLIST: "/blocks",
  		ACCOUNT: "/account",
  		ACCOUNT_TXS: acc => `/account/txs/${acc}?page=1&rows=20`,
  		TXLIST: "/txs",
  		TX: "/txs",
  		ORDERS: "/orders",
  		ASSET_IMAGES: "/assets-images?page=1&rows=1000",
  		ASSETS: "/assets?page=1&rows=1000",
  		ASSETS_BEP8: "/assets/mini-tokens?page=1&rows=1000",
  		ASSET_PRICES: "/assets?page=1&rows=1000&only_price=true",
  		ASSET: "/asset?asset=",
  		ASSET_TXS: "/assets/txs?page=1&rows=20&txAsset=",
  		ASSET_HOLDERS: "/asset-holders?&page=1&rows=20&asset=",
  		TOP_ASSETS: "/market/coin/list",
  		CHARTS: "/stats/assets/chart",
  		FEE: "/fees",
  		VALIDATORS: "/validators",
  	},
  	NETWORK: {
  		COSMOS: "cosmos",
  		KAVA: "kava",
  		IRIS: "iris",
  		STARNAME: "starname",
  		BAND: "band",
  		AKASH: "akash",
  		SENTINEL: "sentinel",
  		PERSISTENCE: "persistence",
  		FETCHAI: "fetch.ai",
  		CRYPTOORG: "crypto.org",
  		SIFCHAIN: "sifchain",
  		KICHAIN: "ki chain",
  		OSMOSIS: "osmosis",
  		CERTIK: "certik",
  		EMONEY: "emoney",
  		BINANCE: "binance",
  	},
  	PREFIX: {
  		COSMOS: "cosmos",
  		IRIS: "iris",
  		KAVA: "kava",
  	},
  
  	MINTSCAN_URL: {
  		COSMOS: "https://www.mintscan.io/",
  		KAVA: "https://mintscan.io/kava",
  		IRIS: "https://mintscan.io/iris",
  		STARNAME: "https://mintscan.io/starname",
  		BAND: "https://mintscan.io/band",
  		AKASH: "https://mintscan.io/akash",
  		SENTINEL: "https://mintscan.io/sentinel",
  		PERSISTENCE: "https://mintscan.io/persistence",
  		FETCHAI: "https://mintscan.io/fetchai",
  		CRYPTOORG: "https://mintscan.io/crypto-org",
  		SIFCHAIN: "https://mintscan.io/sifchain",
  		OSMOSIS: "https://mintscan.io/osmosis",
  		KICHAIN: "https://www.mintscan.io/ki-chain",
  		CERTIK: "https://www.mintscan.io/certik",
  		EMONEY: "https://www.mintscan.io/emoney",
  	},
  
  	LINK: {
  		GOOGLE: "https://play.google.com/store/apps/details?id=wannabit.io.cosmostaion",
  		IOS: "https://apple.co/2IAM3Xm",
  		WEB: "https://wallet.cosmostation.io",
  		COSMOSTATION: "https://www.cosmostation.io/",
  		BINANCEDEX: "https://www.binance.org/",
  		COINGECKO_BINANCE: "https://www.coingecko.com/en/coins/binance-coin",
  	},
  
  	MENU: [
  		{
  			display: "DASHBOARD",
  			route: "/",
  			primary: true,
  		},
  		{
  			display: "BLOCKS",
  			route: "/blocks",
  		},
  		{
  			display: "TRANSACTIONS",
  			route: "/txs",
  		},
  		{
  			display: "ASSETS",
  			route: "/assets",
  		},
  		{
  			display: "BINANCE DEX",
  			route: "/dex",
  		},
  	],
  });
  