'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.default = undefined;var _createClass = function () {function defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}return function (Constructor, protoProps, staticProps) {if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;};}(); // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.

// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Parity is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Parity.  If not, see <http://www.gnu.org/licenses/>.

var _dappreg = require('./dappreg');var _dappreg2 = _interopRequireDefault(_dappreg);
var _registry = require('./registry');var _registry2 = _interopRequireDefault(_registry);
var _signaturereg = require('./signaturereg');var _signaturereg2 = _interopRequireDefault(_signaturereg);
var _tokenreg = require('./tokenreg');var _tokenreg2 = _interopRequireDefault(_tokenreg);
var _githubhint = require('./githubhint');var _githubhint2 = _interopRequireDefault(_githubhint);
var _verification = require('./verification');var verification = _interopRequireWildcard(_verification);
var _badgereg = require('./badgereg');var _badgereg2 = _interopRequireDefault(_badgereg);function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];}}newObj.default = obj;return newObj;}}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}

var instance = null;var

Contracts = function () {
  function Contracts(api) {_classCallCheck(this, Contracts);
    instance = this;

    this._api = api;
    this._registry = new _registry2.default(api);
    this._dappreg = new _dappreg2.default(api, this._registry);
    this._signaturereg = new _signaturereg2.default(api, this._registry);
    this._tokenreg = new _tokenreg2.default(api, this._registry);
    this._githubhint = new _githubhint2.default(api, this._registry);
    this._badgeReg = new _badgereg2.default(api, this._registry);
  }_createClass(Contracts, [{ key: 'registry', get: function get()

    {
      return this._registry;
    } }, { key: 'badgeReg', get: function get()

    {
      return this._badgeReg;
    } }, { key: 'dappReg', get: function get()

    {
      return this._dappreg;
    } }, { key: 'signatureReg', get: function get()

    {
      return this._signaturereg;
    } }, { key: 'tokenReg', get: function get()

    {
      return this._tokenreg;
    } }, { key: 'githubHint', get: function get()

    {
      return this._githubhint;
    } }, { key: 'smsVerification', get: function get()

    {
      return verification;
    } }, { key: 'emailVerification', get: function get()

    {
      return verification;
    } }], [{ key: 'get', value: function get(

    api) {
      if (!instance) {
        instance = new Contracts(api);
      }

      return instance;
    } }]);return Contracts;}();exports.default = Contracts;