// eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-unresolved
const pkg = require('../package.json');

export const getSDKVersion = () => pkg.version;
export const DEFAULT_DOMAIN = `https://jssdk.ukey.io/${getSDKVersion()}/`;

export const whitelist = [
  // Electron local file
  { origin: 'file://' },
  // UKey App
  { origin: 'ukey.io' },
  { origin: 'ukey.dev' },
  { origin: 'ukey.com' },
  { origin: 'ukeytest.com' },
  { origin: 'localhost' },
];

export const whitelistExtension = [
  // UKey
  'jnmbobjmhlngoefaiojfljckilhhlhcj',
  // Rabby
  'acmacodkjbdgmoleebolmdjonilkdbch',
  // OKX
  'mcohilncbfahbmgdjkbpemcciiolgcge',
];
