<commit_before>/**
 * Copyright (c) 2017 Acebusters
 * Use of this source code is governed by an ISC
 * license that can be found in the LICENSE file.
 */

const DEFAULT_REF_CODE = '00000000';

export function conf() {
  let sub = '';
  if (window && window.location && window.location.host) {
    sub = window.location.host.split('.')[0];
  }
  // ### PRODUCTION ENVIRONMENT CONFIG
  if (sub === 'app') {
    return {
      defaultRefCode: DEFAULT_REF_CODE,
      etherscanUrl: 'https://etherscan.io/',
      gethUrl: '',
      oracleUrl: '',
      txUrl: '',
      accountUrl: '',
      ntzAddr: '',
      accountFactory: '',
      tableFactory: '',
      sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
      gaProperty: 'UA-98848213-1',
    };
  }

  // ### STAGING ENVIRONMENT CONFIG
  if (sub === 'beta') {
    return {
      defaultRefCode: DEFAULT_REF_CODE,
      etherscanUrl: 'https://rinkeby.etherscan.io/',
      gethUrl: 'ws://rinkeby.acebusters.com:8546',
      oracleUrl: 'https://v83iq1161a.execute-api.eu-west-1.amazonaws.com/v0',
      txUrl: 'https://h5fb9klhzc.execute-api.eu-west-1.amazonaws.com/v0',
      accountUrl: 'https://vps13t4f7e.execute-api.eu-west-1.amazonaws.com/v0',
      ntzAddr: '0xfb728026a5d90b6852338c3bfde1e76947b9bc8e',
      accountFactory: '0x2e7b835760765e6bef9e05a954ac4e901448d105',
      tableFactory: '0xd56fb602475a6bf067e5998bd02764df5219bcb5',
      sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
      gaProperty: 'UA-98848213-1',
    };
  }

  // ### SANDBOX ENVIRONMENT CONFIG
  return {
    defaultRefCode: DEFAULT_REF_CODE,
    etherscanUrl: 'https://rinkeby.etherscan.io/',
    gethUrl: 'ws://geth.ocolin.com:8546',
    oracleUrl: 'https://evm4rumeob.execute-api.eu-west-1.amazonaws.com/v0',
    txUrl: 'https://khengvfg6c.execute-api.eu-west-1.amazonaws.com/v0',
    accountUrl: 'https://hsqkzjp3m8.execute-api.eu-west-1.amazonaws.com/v0',
    ntzAddr: '0x367b75f1c23a9e6bde655eb81df49dbb28a311f2',
    accountFactory: '0xe8bd683b5aa86ccb221ad85c4a190dd75f5ec0f5',
    tableFactory: '0xcea862d3a13ce089d3c00fc407dc142c206cab9e',
    sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
    gaProperty: 'UA-XXXXX-Y',
  };
}

export const signerAddr = '0xdb2fdaf5b80c6a4c408e51b36ce7bbdd0c0852c4';
export const blocky = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAADqklEQVR4Xu3d4XUTMRBFYbkFSkgtaQFKgBZSglsIJUAL1EIJaSHU4P10jpjk8pun1b65fjPryPbt7fXX+4J/P3+/gNql37/efRFYYfr93wIAqr/WCoASwAhCtSZgCYAFKAFKAETI5CVAQyARVAsg+xoCx0/BWP/x918CIAENgQ2BiJDJGwIbAomgWgDZ1xA4fgjC+o+//xIACWgIbAhEhEzeENgQSARxC6Cr/wd/TtX9q15fwXr9AFAHUR8Ah2cIrB/LAyAAGCJZoBYg7m3QlgAlwAaMri9RAlz3bouyBCgBtoB0dZES4Kpzm3QlQAmwCaVry5QA13zbpioBSoBtMF1ZqAS44tpGTQlQAmzE6fGlSoDHPduqKAFKgK1APbrY7f78RN8PcJrgR2/4o/1/PZIWAMOJCIDhBdTtB4A6OFwfAMMLqNsPAHVwuD4AhhdQtx8A6uBwfQAML6BuPwDUweH6ABheQN1+AKiDw/UBMLyAuv0AUAeH6wNgeAF1+wGgDg7XjwdAb+D0eYTT+9frHz8PoDcQAPaDHQGALeA0wHr9AAiAs2cCleBaQC0AX8MmPw2wXr8WYPXnbwrVBAuA4d8TGAD4wRA1EAOgBNACaITp9QPg8CeDAsB++VT9awjECNACaILp9QMgAHojSBjQV2AJ0FOA8MdPIbUAst9/M+jTJwD6/+nl2oKOJ8CnryAaEABo4HR5AEyvIO4/ANDA6fIAmF5B3H8AoIHT5QEwvYK4/wBAA6fLA2B6BXH/AYAGTpcHwPQK4v4DAA2cLg+A6RXE/QcAGjhdHgDTK4j7Pw4A7p/leqBCN6AF0Ourns8D6AZUHwDmYACYf3wmDy/P8gBAC2sBaKDKawHmYAlg/tUC0D+WlwBmYQlg/pUA6B/LSwCzsAQw/0oA9I/lJYBZWAKYfyUA+sfyEsAsLAHMvxIA/WN5CWAWlgDm3/wEWGu9iwf35yeRr5c/f0n/9vqL9Cr+8uMbLXHav1sAUP1WAJQARFAJUAsggLSF1gLI/lULOB1hDYE2RJcAJUCPgcJATwE9BQg/63QLrQVQ+RoCjxPcENgQiK9hkzcDNAMQQc0AvRNIAPVOYH8NJIB6CiD7PsBTwB1/NQz9Y3kngszCTgSZf/NPBJUARkAfDzf/WF0LMAtrAeZfLQD9Y3kJYBaWAOZfCYD+sbwEMAtLAPOvBED/WF4CmIUlgPlXAqB/LC8BzMISwPwrAdA/lpcAZmEJYP6VAOgfy0sAs/Af1PKArkvqmhoAAAAASUVORK5CYII=';
export const values = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'jack', 'queen', 'king', 'ace'];
export const valuesShort = ['2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'];
export const suits = ['c', 'd', 'h', 's'];
export const timeoutSeconds = 60;<commit_msg>updated account factory address (#341)<commit_after>/**
 * Copyright (c) 2017 Acebusters
 * Use of this source code is governed by an ISC
 * license that can be found in the LICENSE file.
 */

const DEFAULT_REF_CODE = '00000000';

export function conf() {
  let sub = '';
  if (window && window.location && window.location.host) {
    sub = window.location.host.split('.')[0];
  }
  // ### PRODUCTION ENVIRONMENT CONFIG
  if (sub === 'app') {
    return {
      defaultRefCode: DEFAULT_REF_CODE,
      etherscanUrl: 'https://etherscan.io/',
      gethUrl: '',
      oracleUrl: '',
      txUrl: '',
      accountUrl: '',
      ntzAddr: '',
      accountFactory: '',
      tableFactory: '',
      sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
      gaProperty: 'UA-98848213-1',
    };
  }

  // ### STAGING ENVIRONMENT CONFIG
  if (sub === 'beta') {
    return {
      defaultRefCode: DEFAULT_REF_CODE,
      etherscanUrl: 'https://rinkeby.etherscan.io/',
      gethUrl: 'ws://rinkeby.acebusters.com:8546',
      oracleUrl: 'https://v83iq1161a.execute-api.eu-west-1.amazonaws.com/v0',
      txUrl: 'https://h5fb9klhzc.execute-api.eu-west-1.amazonaws.com/v0',
      accountUrl: 'https://vps13t4f7e.execute-api.eu-west-1.amazonaws.com/v0',
      ntzAddr: '0xfb728026a5d90b6852338c3bfde1e76947b9bc8e',
      accountFactory: '0x230bfc8f5bf0e66ee4a3a7b33fa33d16288ee588',
      tableFactory: '0xd56fb602475a6bf067e5998bd02764df5219bcb5',
      sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
      gaProperty: 'UA-98848213-1',
    };
  }

  // ### SANDBOX ENVIRONMENT CONFIG
  return {
    defaultRefCode: DEFAULT_REF_CODE,
    etherscanUrl: 'https://rinkeby.etherscan.io/',
    gethUrl: 'ws://geth.ocolin.com:8546',
    oracleUrl: 'https://evm4rumeob.execute-api.eu-west-1.amazonaws.com/v0',
    txUrl: 'https://khengvfg6c.execute-api.eu-west-1.amazonaws.com/v0',
    accountUrl: 'https://hsqkzjp3m8.execute-api.eu-west-1.amazonaws.com/v0',
    ntzAddr: '0x367b75f1c23a9e6bde655eb81df49dbb28a311f2',
    accountFactory: '0xe8bd683b5aa86ccb221ad85c4a190dd75f5ec0f5',
    tableFactory: '0xcea862d3a13ce089d3c00fc407dc142c206cab9e',
    sentryDSN: 'https://8c3e021848b247ddaf627c8040f94e07@sentry.io/153017',
    gaProperty: 'UA-XXXXX-Y',
  };
}

export const signerAddr = '0xdb2fdaf5b80c6a4c408e51b36ce7bbdd0c0852c4';
export const blocky = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAADqklEQVR4Xu3d4XUTMRBFYbkFSkgtaQFKgBZSglsIJUAL1EIJaSHU4P10jpjk8pun1b65fjPryPbt7fXX+4J/P3+/gNql37/efRFYYfr93wIAqr/WCoASwAhCtSZgCYAFKAFKAETI5CVAQyARVAsg+xoCx0/BWP/x918CIAENgQ2BiJDJGwIbAomgWgDZ1xA4fgjC+o+//xIACWgIbAhEhEzeENgQSARxC6Cr/wd/TtX9q15fwXr9AFAHUR8Ah2cIrB/LAyAAGCJZoBYg7m3QlgAlwAaMri9RAlz3bouyBCgBtoB0dZES4Kpzm3QlQAmwCaVry5QA13zbpioBSoBtMF1ZqAS44tpGTQlQAmzE6fGlSoDHPduqKAFKgK1APbrY7f78RN8PcJrgR2/4o/1/PZIWAMOJCIDhBdTtB4A6OFwfAMMLqNsPAHVwuD4AhhdQtx8A6uBwfQAML6BuPwDUweH6ABheQN1+AKiDw/UBMLyAuv0AUAeH6wNgeAF1+wGgDg7XjwdAb+D0eYTT+9frHz8PoDcQAPaDHQGALeA0wHr9AAiAs2cCleBaQC0AX8MmPw2wXr8WYPXnbwrVBAuA4d8TGAD4wRA1EAOgBNACaITp9QPg8CeDAsB++VT9awjECNACaILp9QMgAHojSBjQV2AJ0FO<KEY>';
export const values = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'jack', 'queen', 'king', 'ace'];
export const valuesShort = ['2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'];
export const suits = ['c', 'd', 'h', 's'];
export const timeoutSeconds = 60;
{'fraction_non_alphanumeric': 0.1340918325883787, 'fraction_numerical': 0.12664228633346877, 'mean_word_length': 5.294970161977835, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5584971', 'n_tokens_mistral': 4139, 'n_tokens_neox': 3689, 'n_words': 335}