/* eslint-disable no-shadow */
export interface IDidStore {
  [key: string]: string;
}

export enum Methods {
  Erc725 = 'erc725',
  Erc1056 = 'ethr',
  Jolocom = 'jolo',
}

export enum Chain {
  EWC = 'ewc',
  VOLTA = 'volta',
}

export const DID_SCHEME_PATTERNS = {
  NETWORK: /^[a-z0-9]+?(:)?[a-z0-9]+?$/,
  /**
   * DID specification rule for method-specific-id
   * DID specification rule for method-name
   * The pattern allows an empty identifier to identify a method or did-registry
   * See [Issue 34] {@link https://github.com/w3c/did-core/issues/34}
   */
  ID: /^[\w.-]*(:[\w.-]*)*$/,
};

export type ChainInfo = {
  foundChainInfo: boolean;
  chainInfo: string | undefined;
};
