{"size": 510, "ext": "js", "max_stars_repo_path": "src/store/validators/index.js", "max_stars_repo_name": "Commercionetwork/Almerico", "max_stars_repo_stars_event_min_datetime": "2019-06-16T10:51:02.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-05T06:57:00.000Z", "max_issues_repo_path": "src/store/validators/index.js", "max_issues_repo_name": "Commercionetwork/Almerico", "max_issues_repo_issues_event_min_datetime": "2019-07-08T10:18:39.000Z", "max_issues_repo_issues_event_max_datetime": "2019-07-24T11:38:02.000Z", "max_forks_repo_path": "src/store/validators/index.js", "max_forks_repo_name": "Commercionetwork/Almerico", "max_forks_repo_forks_event_min_datetime": "2019-06-16T10:51:45.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-16T10:51:45.000Z"}
{"max_stars_count": 2, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 18.2142857143, "max_line_length": 41, "alphanum_fraction": 0.6549019608}
import { VALIDATORS } from '@/constants';
import actions from './actions';
import getters from './getters';
import mutations from './mutations';

export const initState = () => ({
  error: null,
  isLoading: false,
  isUpdating: false,
  detail: null,
  list: [],
  delegations: [],
  delegationsOffset: 0,
  delegationsPagination: null,
  filter: {
    status: VALIDATORS.FILTER.ACTIVE,
    query: '',
  },
});

export default {
  namespaced: true,
  state: initState(),
  getters,
  mutations,
  actions,
};
